Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hilo-group
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujiebin
hilo-group
Commits
1f94239d
Commit
1f94239d
authored
Mar 06, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swagger
parent
328264a4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
group_power.go
route/group_power_r/group_power.go
+4
-4
group_list.go
route/group_r/group_list.go
+3
-3
group_op.go
route/group_r/group_op.go
+2
-2
No files found.
route/group_power_r/group_power.go
View file @
1f94239d
...
...
@@ -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
)
...
...
route/group_r/group_list.go
View file @
1f94239d
...
...
@@ -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
)
...
...
route/group_r/group_op.go
View file @
1f94239d
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment