28 lines
498 B
Go
28 lines
498 B
Go
package request
|
|
|
|
import "yintai-api/app/common/request"
|
|
|
|
type CategoryCreate struct {
|
|
Name string `json:"name"`
|
|
NameEn string `json:"name_en"`
|
|
Pid string `json:"pid"`
|
|
Type string `json:"type"`
|
|
}
|
|
|
|
type CategoryUpdate struct {
|
|
ID string `json:"id"`
|
|
CategoryCreate
|
|
}
|
|
|
|
type CategoryDelete struct {
|
|
ID string `form:"id"`
|
|
}
|
|
|
|
type CategoryList struct {
|
|
request.Paginate
|
|
Pid string `form:"pid"`
|
|
Name string `form:"name"`
|
|
NameEn string `form:"name_en"`
|
|
Type string `form:"type"`
|
|
}
|