新增管理员用户删除,修改反馈,任务列表
This commit is contained in:
@ -16,4 +16,5 @@ type ITaskV1 interface {
|
||||
GetLoginTaskList(ctx context.Context, req *v1.GetLoginTaskListReq) (res *v1.GetLoginTaskListRes, err error)
|
||||
List(ctx context.Context, req *v1.ListReq) (res *v1.ListRes, err error)
|
||||
Selector(ctx context.Context, req *v1.SelectorReq) (res *v1.SelectorRes, err error)
|
||||
GetTask(ctx context.Context, req *v1.GetTaskReq) (res *v1.GetTaskRes, err error)
|
||||
}
|
||||
|
||||
@ -34,7 +34,7 @@ type NonLoginTaskListRes struct {
|
||||
}
|
||||
|
||||
type GetLoginTaskListReq struct {
|
||||
g.Meta `path:"/task/getLoginTaskList" method:"get" tags:"Task" summary:"(PC)网吧未登录任务列表"`
|
||||
g.Meta `path:"/task/getLoginTaskList" method:"get" tags:"Task" summary:"(PC)网吧已登录任务列表"`
|
||||
NetBarAccount string `json:"netBarAccount" v:"required#网关账号不能为空" dc:"网关账号"`
|
||||
//Num int `json:"num" v:"required#不能为空" dc:""`
|
||||
//Pageidx string `json:"pageidx" dc:"分页索引"`
|
||||
@ -50,10 +50,10 @@ type GetLoginTaskListRes struct {
|
||||
type ListReq struct {
|
||||
g.Meta `path:"/task/list" method:"get" tags:"Task" summary:"(PC)任务列表"`
|
||||
//StoreId int `json:"storeId" dc:"门店 id"`
|
||||
StoreId int `json:"storeId" v:"required#门店 id不能为空" dc:"门店 id"`
|
||||
Gid int `json:"gid" v:"required#游戏唯一id不能为空" dc:"游戏唯一id"`
|
||||
Page int `json:"page" dc:"页数"`
|
||||
Size int `json:"size" dc:"条数"`
|
||||
StoreId int `json:"storeId" dc:"门店 id"`
|
||||
Gid int `json:"gid" dc:"游戏唯一id"`
|
||||
Page int `json:"page" dc:"页数"`
|
||||
Size int `json:"size" dc:"条数"`
|
||||
}
|
||||
|
||||
type ListRes struct {
|
||||
@ -69,3 +69,14 @@ type SelectorReq struct {
|
||||
type SelectorRes struct {
|
||||
List interface{} `json:"list"`
|
||||
}
|
||||
|
||||
// GetTaskReq 添加任务记录
|
||||
type GetTaskReq struct {
|
||||
g.Meta `path:"/task/get" method:"post" tags:"Task" summary:"(PC)任务领取"`
|
||||
TaskId int `json:"taskId" v:"required#任务id不能为空" dc:"任务id"`
|
||||
StoreId int `json:"storeId" v:"required#门店 id不能为空" dc:"门店 id"`
|
||||
}
|
||||
|
||||
type GetTaskRes struct {
|
||||
Success bool `json:"success"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user