Commit 7a630d28 authored by chenweijian's avatar chenweijian

cp

parent 401c2680
......@@ -313,6 +313,16 @@ func ReplyCpCancel(c *gin.Context) (*mycontext.MyContext, error) {
return myCtx, nil
}
type CpDetail struct {
Avatar1 string `json:"avatar1"`
Avatar2 string `json:"avatar2"`
Nick1 string `json:"nick1"`
Nick2 string `json:"nick2"`
Grade int `json:"grade"` // 等级
GradeName string `json:"gradeName"` // 等级称号
CreatedTime int64 `json:"createdTime"` // cp创建时间
}
// @Tags cp关系
// @Summary 详情页cp数据
// @Param externalId query string true "用户的externalId"
......@@ -332,16 +342,6 @@ func CpDetailPage(c *gin.Context) (*mycontext.MyContext, error) {
if err != nil {
return myCtx, err
}
type CpDetail struct {
Avatar1 string `json:"avatar1"`
Avatar2 string `json:"avatar2"`
Nick1 string `json:"nick1"`
Nick2 string `json:"nick2"`
Grade int `json:"grade"` // 等级
GradeName string `json:"gradeName"` // 等级称号
CreatedTime int64 `json:"createdTime"` // cp创建时间
}
var res *CpDetail
if cp.Id > 0 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment