2025-04-30 15:46:14 +08:00

68 lines
1.2 KiB
Go

package dto
import "admin/apps/game/api"
type NilReq struct {
}
type NilRsp = NilReq
type CommonListReq struct {
PageNo int `json:"page_no"`
PageLen int `json:"page_len"`
WhereValue1 string `json:"where_value1"`
WhereValue2 string `json:"where_value2"`
WhereValue3 string `json:"where_value3"`
}
type CommonPostReq struct {
Dto *CommonDtoValues `json:"dto"`
}
type CommonPutReq struct {
Dto *CommonDtoValues `json:"dto"`
}
type CommonDeleteReq struct {
Id int `json:"id"`
}
type CommonListRsp = CommonDtoList
type CommonPostRsp struct {
Dto *CommonDtoValues `json:"dto"`
}
type CommonPutRsp struct {
Dto *CommonDtoValues `json:"dto"`
}
type CommonDeleteRsp struct {
Id int `json:"id"`
}
type CommandListReq struct {
Addr string `json:"addr"`
}
type CommandListRsp struct {
List []*PathInfo `json:"list"`
}
type ResourceListRsp struct {
List []*api.ResourceInitInfo `json:"list"`
}
type LoginReq struct {
User string `json:"user"`
Password string `json:"password"`
}
type LoginRsp struct {
User *UserInfo `json:"user_info"`
Token *TokenInfo `json:"token_info"`
ProjectsRoutes []*api.ProjectInitInfo `json:"projects"` // 项目路由
}
type GetUserInfoRsp = LoginRsp