Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseField ¶
type BaseField struct {
Id uint `db:"id" json:"id"`
AddTime int64 `db:"add_time" json:"add_time"`
UpdateTime int64 `db:"update_time" json:"-"`
}
可能为null的字段, 用指针
func (*BaseField) AddTimeFormat ¶
func (*BaseField) UpdateTimeFormat ¶
type Dating ¶
type DatingResult ¶
type DatingResult struct {
Res bool `json:"r" info:"匹配是否成功"`
Date []int `json:"d" info:"建议时间, 放时间戳"`
}
Result的数据
type Feedback ¶
type File ¶
type User ¶
type User struct {
BaseField
NickName string `db:"nick_name" json:"nick_name" info:"昵称"`
Avatar uint `db:"avatar" json:"-" info:"头像, 关联file表"`
Gender int8 `db:"gender" json:"gender" info:"性别;0:未知;1:男;2:女"`
PhoneNumber string `db:"phone_number" json:"phoneNumber" info:"手机号"`
OpenId string `db:"openid" json:"-" info:"小程序平台的用户识别码"`
UnionId string `db:"unionid" json:"-" info:"微信用户识别码"`
SessionKey string `db:"session_key" json:"-" info:"微信Session_Key"`
}
type UserTime ¶
type UserTime struct {
BaseField
DatingId uint `db:"dating_id" json:"dating_id" info:"dating表id"`
UserId uint `db:"user_id" json:"user_id" info:"user表id"`
Info string `db:"info" json:"info" info:"空闲时间信息;{'t': [[1706978785,1706978785]]}"`
Status int8 `db:"status" json:"status" info:"状态; 0:已退出;1:加入"`
}
type UserTimeInfo ¶
type UserTimeInfo struct {
Time [][2]int64 `json:"t"`
}
Click to show internal directories.
Click to hide internal directories.