common.go 600 字节
Newer Older
Mr.奇淼('s avatar
Mr.奇淼( 已提交
1 2
package request

Sliver_Horn's avatar
update:  
Sliver_Horn 已提交
3
// PageInfo Paging common input parameter structure
Mr.奇淼('s avatar
Mr.奇淼( 已提交
4 5 6 7 8
type PageInfo struct {
	Page     int `json:"page" form:"page"`         // 页码
	PageSize int `json:"pageSize" form:"pageSize"` // 每页大小
}

Sliver_Horn's avatar
update:  
Sliver_Horn 已提交
9
// GetById Find by id structure
Mr.奇淼('s avatar
Mr.奇淼( 已提交
10 11 12 13
type GetById struct {
	ID float64 `json:"id" form:"id"` // 主键ID
}

Sliver_Horn's avatar
update:  
Sliver_Horn 已提交
14 15 16 17
func (r *GetById) Uint() uint {
	return uint(r.ID)
}

Mr.奇淼('s avatar
Mr.奇淼( 已提交
18 19 20 21
type IdsReq struct {
	Ids []int `json:"ids" form:"ids"`
}

Sliver_Horn's avatar
update:  
Sliver_Horn 已提交
22
// GetAuthorityId Get role by id structure
Mr.奇淼('s avatar
Mr.奇淼( 已提交
23
type GetAuthorityId struct {
24
	AuthorityId string `json:"authorityId" form:"authorityId"` // 角色ID
Mr.奇淼('s avatar
Mr.奇淼( 已提交
25 26 27
}

type Empty struct{}