You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.1 KiB
61 lines
1.1 KiB
package request
|
|
|
|
// Paging common input parameter structure
|
|
type PageInfo struct {
|
|
Page int `json:"page" form:"page"` // 页码
|
|
PageSize int `json:"pageSize" form:"pageSize"` // 每页大小
|
|
}
|
|
|
|
// Find by id structure
|
|
type GetById struct {
|
|
ID float64 `json:"id" form:"id"` // 主键ID
|
|
}
|
|
|
|
type IdsReq struct {
|
|
Ids []int `json:"ids" form:"ids"`
|
|
}
|
|
|
|
type IdsStrReq struct {
|
|
Ids []string `json:"ids" form:"ids"`
|
|
}
|
|
|
|
type IdReq struct {
|
|
ID uint `json:"id" form:"id"` //id
|
|
}
|
|
|
|
type IdStrReq struct {
|
|
ID string `json:"id" form:"id"`
|
|
}
|
|
|
|
type StatusParam struct {
|
|
Status string `json:"status" form:"id"`
|
|
ID string `json:"id" form:"id"`
|
|
}
|
|
|
|
type StatusParams struct {
|
|
Status string `json:"status"`
|
|
IdsStrReq
|
|
}
|
|
|
|
type StatusParamsInt struct {
|
|
Status int `json:"status"`
|
|
IdsStrReq
|
|
}
|
|
|
|
type ChannelId struct {
|
|
ChannelId string `json:"channelId" form:"channelId"`
|
|
}
|
|
|
|
type StructParams map[string]interface{}
|
|
|
|
// Get role by id structure
|
|
type GetAuthorityId struct {
|
|
AuthorityId string // 角色ID
|
|
}
|
|
|
|
type Empty struct{}
|
|
|
|
type Device struct {
|
|
OsType string
|
|
TerminalType string
|
|
}
|
|
|