Documentation
¶
Index ¶
Constants ¶
View Source
const TableNameUserAddress = "user_address"
View Source
const TableNameUserInfo = "user_info"
View Source
const TableNameUserWx = "user_wx"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserAddress ¶
type UserAddress struct {
*v.Model
UserID uint `json:"userId"` // 用户ID
Contact string `json:"contact"` // 联系人
Phone string `json:"phone"` // 手机号
Province string `json:"province"` // 省
City string `json:"city"` // 市
District string `json:"district"` // 区
Address string `json:"address"` // 地址
IsDefault bool `json:"isDefault"` // 是否默认
}
UserAddress 收货地址(参照 cool-admin-midway user 模块 UserAddressEntity)
type UserInfo ¶
type UserInfo struct {
*v.Model
Unionid *string `json:"unionid"` // 登录唯一ID
AvatarUrl *string `json:"avatarUrl"` // 头像
NickName *string `json:"nickName"` // 昵称
Phone *string `json:"phone"` // 手机号
Gender int `json:"gender"` // 性别 0-未知 1-男 2-女
Status int `json:"status"` // 状态 0-禁用 1-正常 2-已注销
LoginType int `json:"loginType"` // 登录方式 0-小程序 1-公众号 2-H5
Password *string `json:"password"` // 密码
Description *string `json:"description"` // 介绍
}
UserInfo 用户信息(参照 cool-admin-midway user 模块 UserInfoEntity)
type UserWx ¶
type UserWx struct {
*v.Model
Unionid *string `json:"unionid"` // 微信unionid
Openid string `json:"openid"` // 微信openid
AvatarUrl *string `json:"avatarUrl"` // 头像
NickName *string `json:"nickName"` // 昵称
Gender int `json:"gender"` // 性别 0-未知 1-男 2-女
Language *string `json:"language"` // 语言
City *string `json:"city"` // 城市
Province *string `json:"province"` // 省份
Country *string `json:"country"` // 国家
Type int `json:"type"` // 类型 0-小程序 1-公众号 2-H5 3-APP
}
UserWx 微信用户(参照 cool-admin-midway user 模块 UserWxEntity)
Click to show internal directories.
Click to hide internal directories.