新增系统管理员获取任务列表选择下拉
This commit is contained in:
@ -1,6 +1,9 @@
|
||||
package model
|
||||
|
||||
import "github.com/gogf/gf/v2/os/gtime"
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
type Tasks struct {
|
||||
Id int64 `json:"id" orm:"id" description:"任务唯一标识符"` // 任务唯一标识符
|
||||
@ -39,7 +42,7 @@ type GetLoginTaskListIn struct {
|
||||
POpenId string `json:"POpenId"` //POpenId
|
||||
}
|
||||
|
||||
// 获取腾讯游戏任务列表已登录入参
|
||||
// GetTenCentLoginTaskListIn 获取腾讯游戏任务列表已登录入参
|
||||
type GetTenCentLoginTaskListIn struct {
|
||||
NetBarAccount string `json:"netbar_account"` //网关账号
|
||||
Pageidx string `json:"pageidx"` // 分页索引
|
||||
@ -54,7 +57,7 @@ type GetLoginTaskListOut struct {
|
||||
Data interface{} `json:"data"`
|
||||
}
|
||||
|
||||
// 定义一个与 JSON 结构匹配的结构体
|
||||
// MyData 定义一个与 JSON 结构匹配的结构体
|
||||
type MyData struct {
|
||||
TaskId string `json:"task_id"`
|
||||
//GameId int `json:"game_id"`
|
||||
@ -76,3 +79,22 @@ type TaskListOut struct {
|
||||
List interface{} `json:"list"`
|
||||
Total int `json:"total"`
|
||||
}
|
||||
|
||||
// SelectorIn 系统管理员任务列表二级选择器
|
||||
type SelectorIn struct {
|
||||
}
|
||||
|
||||
type SelectorOut struct {
|
||||
g.Meta `orm:"table:merchants"`
|
||||
Id int `json:"id" orm:"id"`
|
||||
MerchantName string `json:"merchantName" orm:"name"`
|
||||
StoreDatas []StoreData `json:"StoreDatas" orm:"with:merchant_id=id"`
|
||||
//StoreData []StoreData `json:"storeData"`
|
||||
}
|
||||
|
||||
type StoreData struct {
|
||||
g.Meta `orm:"table:stores"`
|
||||
Id int `json:"id" orm:"id"`
|
||||
MerchantId int `json:"merchantId" orm:"merchant_id"`
|
||||
StoreName string `json:"storeName" orm:"name"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user