22 lines
709 B
Go
22 lines
709 B
Go
package request
|
|
|
|
import (
|
|
"git.echol.cn/loser/st/server/model/common/request"
|
|
"git.echol.cn/loser/st/server/model/system"
|
|
)
|
|
|
|
// api分页条件查询及排序结构体
|
|
type SearchApiParams struct {
|
|
system.SysApi
|
|
request.PageInfo
|
|
OrderKey string `json:"orderKey"` // 排序
|
|
Desc bool `json:"desc"` // 排序方式:升序false(默认)|降序true
|
|
}
|
|
|
|
// SetApiAuthorities 通过API路径和方法全量覆盖关联角色列表
|
|
type SetApiAuthorities struct {
|
|
Path string `json:"path" form:"path"` // API路径
|
|
Method string `json:"method" form:"method"` // 请求方法
|
|
AuthorityIds []uint `json:"authorityIds" form:"authorityIds"` // 角色ID列表
|
|
}
|