Documentation ¶
Overview ¶
自动生成模板UserBindManage
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Division ¶
type Division struct { ID uint `json:"id" gorm:"primarykey;column:id"` //主键 Bronze uint `json:"bronze" gorm:"column:bronze;comment:青铜段位"` // 青铜段位 Silver uint `json:"silver" gorm:"column:silver;comment:白银段位"` // 白银段位 Gold uint `json:"gold" gorm:"column:gold;comment:黄金段位"` // 黄金段位 }
Division 段位结构体
type UrgentCard ¶
type UrgentCard struct { U_id uint `json:"u_id" gorm:"primarykey"` //主键 Contact string `json:"contact" gorm:"column:contact;comment:紧急联系人"` ContactPhone string `json:"contact_phone" gorm:"column:phone;comment:紧急联系电话"` }
func (UrgentCard) TableName ¶
func (UrgentCard) TableName() string
type User ¶
type User struct { global.GVA_MODEL UUID uuid.UUID `json:"uuid" gorm:"index;column:uuid;comment:用户UUID"` ServiceCenterID uint `json:"service_center_id" form:"serviceCenterID" gorm:"column:service_center_id;comment:服务站id"` StewardID uint `json:"steward_id" form:"stewardID" gorm:"column:steward_id;comment:健管师id"` InviteUserID uint `json:"invite_user_id" gorm:"column:invite_user_id;comment:邀请人id"` Phone string `json:"phone" gorm:"column:phone;comment:用户手机号"` Password string `json:"password" gorm:"column:password;comment:登录密码"` Name string `json:"name" form:"name" gorm:"column:name;comment:名称"` Avatar string `json:"avatar" gorm:"column:avatar;default:https://image.cushdylm.com/app/default_avatar.jpg;comment:用户头像"` Types uint `json:"types" gorm:"column:types;default:1;comment:用户类型 1用户 2会员 3过期会员"` Sex uint `json:"sex" gorm:"column:sex;default:1;comment:性别 1男 2女"` Birthday time.Time `json:"birthday" gorm:"column:birthday;comment:生日"` Province uint `json:"province" gorm:"column:province;comment:省"` City uint `json:"city" gorm:"column:city;comment:市"` Area uint `json:"area" gorm:"column:area;comment:区/县;"` Addr string `json:"addr" gorm:"column:addr;comment:详细地址;"` Status uint `json:"status" form:"status" gorm:"column:status;comment:状态 正常1 冻结0;default:1;"` Points uint `json:"points" form:"points" gorm:"column:points;comment:积分;default:0;"` UrgentCard UrgentCard `json:"urgentCard" gorm:"foreignKey:ID;references:U_id;comment:用户紧急卡关联;"` Division Division `json:"division" gorm:"foreignKey:ID;references:ID;comment:用户段位关联;"` HealthManager manager.FdHealthManager `json:"healthManager" gorm:"->;foreignKey:StewardID;references:HmId;"` //健管师相关 ProvinceInfo model.GeoProvince `json:"provinceInfo" gorm:"->;foreignKey:Code;references:Province;"` // 省关联 CityInfo model.GeoCity `json:"cityInfo" gorm:"->;foreignKey:Code;references:City;"` // 市关联 AreaInfo model.GeoArea `json:"areaInfo" gorm:"->;foreignKey:Code;references:Area;"` // 区关联 }
type UserBindManage ¶
type UserBindManage struct { global.GVA_MODEL HmId uint `json:"hmId" form:"hm_id" gorm:"column:hm_id;comment:健康管理师ID;"` //健康管理师ID HealthManager manager.FdHealthManager `json:"healthManager" gorm:"foreignKey:HmId;references:HmId;comment:关联健管师;"` Status uint `json:"status" form:"status" gorm:"column:status;comment:审核状态 1待审核&已申请 2通过 3驳回;"` //审核状态 Uid uint `json:"uid" form:"uid" gorm:"column:uid;comment:用户ID;"` //用户ID User User `json:"user" gorm:"foreignKey:Uid;references:ID;comment:关联用户;"` }
UserBindManage 用户绑定健管师
func (UserBindManage) TableName ¶
func (UserBindManage) TableName() string
TableName 用户绑定健管师 UserBindManage自定义表名 fd_user_bind_manage
type Vip ¶
type Vip struct { ID uint `json:"id" form:"id" gorm:"primarykey"` // 主键 Uid uint `json:"uid" gorm:"column:uid"` // 用户id User User `json:"user" gorm:"foreignKey:Uid;references:ID"` // 用户关联 CreatedAt time.Time // 提交时间 UpdatedAt time.Time // 处理时间 ExpiredAt *time.Time // 过期时间 ApplyForAt time.Time `json:"applyForAt" form:"applyForAt" gorm:"column:apply_for_at"` // 申请时间 VipType uint `json:"vip_type" form:"vip_type" gorm:"column:vip_type;foreignKey:Types;references:ID;"` // 开通类型关联[字典] Status uint `json:"status" form:"status" gorm:"column:status;default:1"` // 开通状态 1待审核 2已开通 3已拒绝 }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.