From 7a630d28f0611851203fce9c10431002dd612e74 Mon Sep 17 00:00:00 2001 From: chenweijian <820961417@qq.com> Date: Fri, 2 Jun 2023 14:54:16 +0800 Subject: [PATCH] cp --- route/cp_r/cp_relation.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/route/cp_r/cp_relation.go b/route/cp_r/cp_relation.go index a19d071..7194ba9 100644 --- a/route/cp_r/cp_relation.go +++ b/route/cp_r/cp_relation.go @@ -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 { -- 2.22.0