From 1f94239d8e1e633f355685e6ec4e5b2412012149 Mon Sep 17 00:00:00 2001 From: hujiebin Date: Mon, 6 Mar 2023 10:31:57 +0800 Subject: [PATCH] swagger --- route/group_power_r/group_power.go | 8 ++++---- route/group_r/group_list.go | 6 +++--- route/group_r/group_op.go | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/route/group_power_r/group_power.go b/route/group_power_r/group_power.go index 1b3320d..f3e1cc4 100644 --- a/route/group_power_r/group_power.go +++ b/route/group_power_r/group_power.go @@ -128,7 +128,7 @@ func formatSeconds(seconds int) (int, string) { // @Param token header string true "token" // @Param nonce header string true "随机数字" // @Param groupPowerId path int true "国家势力ID" -// @Success 200 {object} cv.GroupPowerTitle +// @Success 200 {object} group_cv.GroupPowerTitle // @Router /v1/groupPower/title/{groupPowerId} [get] func GetGroupPowerTitle(c *gin.Context) (*mycontext.MyContext, error) { myContext := mycontext.CreateMyContext(c.Keys) @@ -233,7 +233,7 @@ func GetGroupPowerTitle(c *gin.Context) (*mycontext.MyContext, error) { // @Param pageSize query int false "分页大小 默认:10" default(10) // @Param pageIndex query int false "第几个分页,从1开始 默认:1" default(1) // @Param groupPowerId path int true "国家势力ID" -// @Success 200 {object} cv.PopularGroupInfo +// @Success 200 {object} group_cv.PopularGroupInfo // @Router /v1/groupPower/group/{groupPowerId} [get] func GetGroupPowerGroups(c *gin.Context) (*mycontext.MyContext, error) { myContext := mycontext.CreateMyContext(c.Keys) @@ -508,7 +508,7 @@ func GetGroupPowerGroups(c *gin.Context) (*mycontext.MyContext, error) { // @Param token header string true "token" // @Param nonce header string true "随机数字" // @Param groupPowerId query int true "国家势力ID" -// @Success 200 {object} cv.CvGroupPowerTeam +// @Success 200 {object} group_power_cv.CvGroupPowerTeam // @Router /v1/groupPower/team [get] func GroupPowerTeam(c *gin.Context) (*mycontext.MyContext, error) { myContext := mycontext.CreateMyContext(c.Keys) @@ -535,7 +535,7 @@ func GroupPowerTeam(c *gin.Context) (*mycontext.MyContext, error) { // @Param type query int true "week:1:thisWeek 2:lastWeek" Enums(1,2) // @Param pageSize query int true "分页大小 默认:10" default(10) // @Param pageIndex query int true "第几个分页,从1开始 默认:1" default(1) -// @Success 200 {object} cv.CvGroupPowerDiamondTotal +// @Success 200 {object} group_power_cv.CvGroupPowerDiamondTotal // @Router /v1/groupPower/billboard/week [get] func GroupPowerBillboardWeek(c *gin.Context) (*mycontext.MyContext, error) { myContext := mycontext.CreateMyContext(c.Keys) diff --git a/route/group_r/group_list.go b/route/group_r/group_list.go index c85e642..a013831 100644 --- a/route/group_r/group_list.go +++ b/route/group_r/group_list.go @@ -32,7 +32,7 @@ import ( // @Param nonce header string true "随机数字" // @Param pageSize query int false "分页大小 默认:10" default(10) // @Param pageIndex query int false "第几个分页,从1开始 默认:1" default(1) -// @Success 200 {object} cv.PopularGroupInfo +// @Success 200 {object} group_cv.PopularGroupInfo // @Router /v1/imGroup/popular [get] func GetPopularGroups(c *gin.Context) (*mycontext.MyContext, error) { start := time.Now() @@ -381,7 +381,7 @@ type GetLatestGroupsReq struct { // @Param pageSize query int false "分页大小 默认:10" default(10) // @Param pageIndex query int false "第几个分页,从1开始 默认:1" default(1) // @Param lastId query int false "上一页列表的最后一个id,避免分页重复 默认:0" default(1) -// @Success 200 {object} cv.LatestGroupInfo +// @Success 200 {object} group_cv.LatestGroupInfo // @Router /v1/imGroup/latest [get] func GetLatestGroups(c *gin.Context) (*mycontext.MyContext, error) { myContext := mycontext.CreateMyContext(c.Keys) @@ -566,7 +566,7 @@ func GetLatestGroups(c *gin.Context) (*mycontext.MyContext, error) { // @Accept application/x-www-form-urlencoded // @Param token header string true "token" // @Param nonce header string true "随机数字" -// @Success 200 {object} cv.PopularGroupInfo +// @Success 200 {object} group_cv.PopularGroupInfo // @Router /v1/imGroup/recommended [get] func GetRecommendGroup(c *gin.Context) (*mycontext.MyContext, error) { myContext := mycontext.CreateMyContext(c.Keys) diff --git a/route/group_r/group_op.go b/route/group_r/group_op.go index cbb93a2..19b9a0d 100644 --- a/route/group_r/group_op.go +++ b/route/group_r/group_op.go @@ -224,7 +224,7 @@ func DestroyGroup(c *gin.Context) (*mycontext.MyContext, error) { // @Param token header string true "token" // @Param nonce header string true "随机数字" // @Param code path string true "群CODE" -// @Success 200 {object} cv.GroupInfo +// @Success 200 {object} group_cv.GroupInfo // @Router /v1/imGroup/group/{code} [get] func GetGroupInfo(c *gin.Context) (*mycontext.MyContext, error) { myContext := mycontext.CreateMyContext(c.Keys) @@ -293,7 +293,7 @@ func GetGroupInfo(c *gin.Context) (*mycontext.MyContext, error) { // @Param token header string true "token" // @Param nonce header string true "随机数字" // @Param groupId path string true "群ID" -// @Success 200 {object} cv.GroupDetail +// @Success 200 {object} group_cv.GroupDetail // @Router /v1/imGroup/detail/{groupId} [get] func GetGroupDetail(c *gin.Context) (*mycontext.MyContext, error) { myContext := mycontext.CreateMyContext(c.Keys) -- 2.22.0