Files
platforms/backend/api/internal/models/user_emergency_contact.go
czl231 3ef33b531d 已完成用户APP首期功能开发
交付用户端首期页面、配套接口、后台资源及测试文档。用户APP构建、静态分析和三个管理后台构建通过;完整测试仍有2项失败,后端模型注释检查未通过,详见交付记录。
2026-09-13 00:57:32 +08:00

16 lines
986 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// 功能保存本人紧急联系人资料不隐含设备授权或通知权限版本1.0.0。
package models
// UserEmergencyContact 联系人最多五位;归档保留幂等标识以防重试复活。
type UserEmergencyContact struct {
Entity // 公共实体字段
UserAccountID uint64 `gorm:"column:user_account_id;not null"` // 联系人资料所属用户内部主键
Name string `gorm:"column:name;type:varchar(64);not null"` // 联系人姓名
Phone string `gorm:"column:phone;type:varchar(32);not null"` // 联系人手机号
Relationship string `gorm:"column:relationship;type:varchar(32);not null"` // 与当前用户的关系描述
RequestNo string `gorm:"column:request_no;type:varchar(36);not null"` // 新增请求幂等标识
}
// TableName 返回独立用户资料表,不注册全库自动迁移。
func (*UserEmergencyContact) TableName() string { return "user_emergency_contact" }