30 lines
495 B
Go
30 lines
495 B
Go
package request
|
|
|
|
import "yintai-api/app/common/request"
|
|
|
|
type RoleCreate struct {
|
|
Name string `json:"name"`
|
|
Desc string `json:"desc"`
|
|
Resource []string `json:"resource"`
|
|
}
|
|
|
|
type RoleUpdate struct {
|
|
ID string `json:"id"`
|
|
RoleCreate
|
|
}
|
|
|
|
type RoleDelete struct {
|
|
ID string `form:"id"`
|
|
DelAccount string `form:"del_account"`
|
|
}
|
|
|
|
type RoleList struct {
|
|
request.Paginate
|
|
Name string `form:"name"`
|
|
Desc string `form:"desc"`
|
|
}
|
|
|
|
type RoleGet struct {
|
|
ID string `form:"id"`
|
|
}
|