-
Notifications
You must be signed in to change notification settings - Fork 14
/
vip.go
61 lines (50 loc) · 1.48 KB
/
vip.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package v1
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/iimeta/iim-client/internal/model"
)
// 会员信息接口请求参数
type VipInfoReq struct {
g.Meta `path:"/info" tags:"vip" method:"get" summary:"会员信息接口"`
}
// 会员信息接口响应参数
type VipInfoRes struct {
g.Meta `mime:"application/json" example:"json"`
*model.VipInfo
}
// 生成密钥接口请求参数
type GenerateSecretKeyReq struct {
g.Meta `path:"/generate_secret_key" tags:"vip" method:"get" summary:"生成密钥接口"`
}
// 生成密钥接口响应参数
type GenerateSecretKeyRes struct {
g.Meta `mime:"application/json" example:"json"`
SecretKey string `json:"secret_key"`
}
// 会员权益接口请求参数
type VipsReq struct {
g.Meta `path:"/vips" tags:"vip" method:"get" summary:"会员权益接口"`
}
// 会员权益接口响应参数
type VipsRes struct {
g.Meta `mime:"application/json" example:"json"`
*model.VipsRes
}
// 邀请注册接口请求参数
type InviteRegReq struct {
g.Meta `path:"/" tags:"vip" method:"get" summary:"邀请注册接口"`
Code string `json:"code"`
}
// 邀请注册接口响应参数
type InviteRegRes struct {
g.Meta `mime:"application/json" example:"json"`
}
// 邀请好友接口请求参数
type InviteFriendsReq struct {
g.Meta `path:"/friends" tags:"vip" method:"get" summary:"邀请好友接口"`
}
// 邀请好友接口响应参数
type InviteFriendsRes struct {
g.Meta `mime:"application/json" example:"json"`
*model.InviteFriendsRes
}