2021-10-29 14:39:50 +08:00
|
|
|
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"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// Get role by id structure
|
|
|
|
type GetAuthorityId struct {
|
|
|
|
AuthorityId string `json:"authorityId" form:"authorityId"` // 角色ID
|
|
|
|
}
|
|
|
|
|
2021-11-08 15:12:15 +08:00
|
|
|
type GetByUserID struct {
|
|
|
|
UserId uint `json:"userId" form:"userId"`
|
|
|
|
}
|
|
|
|
|
2021-10-29 14:39:50 +08:00
|
|
|
type Empty struct{}
|