common.go 416 字节
Newer Older
1 2 3 4
package request

// Paging common input parameter structure
type PageInfo struct {
5 6
	Page     int `json:"page" form:"page"`
	PageSize int `json:"pageSize" form:"pageSize"`
7 8 9 10
}

// Find by id structure
type GetById struct {
11
	Id float64 `json:"id" form:"id"`
12
}
13 14 15

type IdsReq struct {
	Ids []int `json:"ids" form:"ids"`
16 17 18 19 20 21 22
}

// Get role by id structure
type GetAuthorityId struct {
	AuthorityId string
}

23
type Empty struct {}