uniugm/admin/internal/model/dto/msg_user.go

38 lines
945 B
Go

package dto
import (
"admin/apps/game/api"
)
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
type ListUserOpHistoryReq struct {
PageNo int `json:"pageNo"`
PageLen int `json:"pageLen"`
UserId int `json:"userId"`
OpResourceType string `json:"opResourceType"`
OpResourceGroup string `json:"opResourceGroup"`
OpResourceKey string `json:"opResourceKey"`
Method string `json:"method"`
}
type ListUserOpHistoryRsp struct {
List []*UserOpHistoryInfo `json:"list"`
TotalCount int `json:"totalCount"`
}