zhangqian
2024-04-19 cdb38521ea1f662b53bafb87412c38dfd0d5e11d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package request
 
// PageInfo Paging common input parameter structure
type PageInfo struct {
    Page     int    `json:"page" form:"page"`         // 页码
    PageSize int    `json:"pageSize" form:"pageSize"` // 每页大小
    Keyword  string `json:"keyword" form:"keyword"`   //关键字
}
 
// GetById Find by id structure
type GetById struct {
    ID int `json:"id" form:"id"` // 主键ID
}
 
func (r *GetById) Uint() uint {
    return uint(r.ID)
}
 
type IdsReq struct {
    Ids []int `json:"ids" form:"ids"`
}
 
// GetAuthorityId Get role by id structure
type GetAuthorityId struct {
    AuthorityId uint `json:"authorityId" form:"authorityId"` // 角色ID
}
 
type Empty struct{}