32 lines
612 B
Go
32 lines
612 B
Go
package request
|
|
|
|
import "yintai-api/app/common/request"
|
|
|
|
type ResourceCreate struct {
|
|
Name string `json:"name"`
|
|
Type string `json:"type"`
|
|
Code string `json:"code"`
|
|
Path string `json:"path"`
|
|
Method string `json:"method"`
|
|
Pid string `json:"pid"`
|
|
}
|
|
|
|
type ResourceUpdate struct {
|
|
ID string `json:"id"`
|
|
ResourceCreate
|
|
}
|
|
|
|
type ResourceDelete struct {
|
|
ID string `form:"id"`
|
|
}
|
|
|
|
type ResourceList struct {
|
|
request.Paginate
|
|
Name string `form:"name"`
|
|
Type string `form:"type"`
|
|
Code string `form:"code"`
|
|
Path string `form:"path"`
|
|
Method string `form:"method"`
|
|
Pid string `form:"pid"`
|
|
}
|