43 lines
1.0 KiB
Go
43 lines
1.0 KiB
Go
package request
|
|
|
|
import "yintai-api/app/common/request"
|
|
|
|
type ProcessTranslation struct {
|
|
Title string `json:"title"`
|
|
Images []string `json:"images"`
|
|
Content string `json:"content"`
|
|
ProcessTime string `json:"process_time"`
|
|
}
|
|
|
|
type ProcessCreate struct {
|
|
CategoryID string `json:"category_id"`
|
|
Translations map[string]ProcessTranslation `json:"translations"`
|
|
}
|
|
|
|
type ProcessUpdate struct {
|
|
ID string `json:"id"`
|
|
ProcessCreate
|
|
}
|
|
|
|
type ProcessDelete struct {
|
|
ID string `form:"id"`
|
|
}
|
|
|
|
type ProcessList struct {
|
|
request.Paginate
|
|
Lang string `form:"lang" binding:"required"`
|
|
Title string `form:"title"`
|
|
Content string `form:"content"`
|
|
ProcessTime string `form:"process_time"`
|
|
CategoryID string `form:"category_id"`
|
|
}
|
|
|
|
type ProcessList2 struct {
|
|
request.Paginate
|
|
Lang string `form:"lang"`
|
|
Title string `form:"title"`
|
|
Content string `form:"content"`
|
|
ProcessTime string `form:"process_time"`
|
|
CategoryID string `form:"category_id"`
|
|
}
|