Documentation
¶
Index ¶
- func Fail(ctx *gin.Context, message string)
- func FailAuth(ctx *gin.Context, message string)
- func FailAuthWs(c chan *Response, message string)
- func FailNotFound(ctx *gin.Context)
- func FailWs(c chan *Response, message string)
- func Success(ctx *gin.Context, data interface{})
- func SuccessAuth(ctx *gin.Context, token string, data interface{})
- func SuccessAuthWs(c chan *Response, token string)
- func SuccessOk(ctx *gin.Context, message string)
- func SuccessWs(c chan *Response, data interface{})
- type DatingInfo
- type DatingList
- type DatingPost
- type DatingResult
- type DatingSimple
- type DatingUser
- type DatingUserAvatar
- type DatingUserJoin
- type FeedbackPost
- type GetDatingListPost
- type GetDatingPost
- type InfoPost
- type InfoResponse
- type JwtInfo
- type LoginPost
- type QuitDatingPost
- type Response
- type UerTimePost
- type UserInfo
- type UserInfoPost
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FailNotFound ¶
func SuccessAuth ¶
func SuccessAuthWs ¶ added in v1.3.0
Types ¶
type DatingInfo ¶ added in v1.3.1
type DatingInfo struct {
Dating DatingSimple `json:"dating"`
Users []DatingUser `json:"users"`
}
getDating数据
type DatingList ¶
type DatingList struct {
Id uint `db:"id" json:"id"`
Status int8 `db:"status" json:"status"`
AddTime int64 `db:"add_time" json:"-"`
AddTimeStr string `json:"add_time"`
UtId uint `db:"ut_id" json:"ut_id"`
CreateUserId uint `db:"create_user_id" json:"create_user_id"`
AvatarUrl []string `json:"avatar_url"`
}
type DatingPost ¶
type DatingResult ¶ added in v1.2.0
Result的数据
type DatingSimple ¶ added in v1.3.1
type DatingSimple struct {
CreateUserId uint `json:"create_user_id"`
Id uint `json:"id"`
Status int8 `json:"status"`
Result DatingResult `json:"result"`
}
type DatingUser ¶
type DatingUserAvatar ¶
type DatingUserJoin ¶
type FeedbackPost ¶
type FeedbackPost struct {
Desc string `json:"desc"`
}
type GetDatingListPost ¶
type GetDatingPost ¶
type GetDatingPost struct {
Id uint `json:"id"`
}
type InfoResponse ¶ added in v1.2.0
type JwtInfo ¶
type JwtInfo struct {
jwt.RegisteredClaims
}
type QuitDatingPost ¶
type UerTimePost ¶
type UserInfoPost ¶
Click to show internal directories.
Click to hide internal directories.