39 lines
877 B
Go
39 lines
877 B
Go
package request
|
|
|
|
import "yintai-api/app/common/request"
|
|
|
|
type DocTrans struct {
|
|
Path string `json:"path"`
|
|
FileName string `json:"file_name"`
|
|
Title string `json:"title"`
|
|
SubTitle string `json:"sub_title"`
|
|
Cover string `json:"cover"`
|
|
Desc string `json:"desc"`
|
|
Extra string `json:"extra"`
|
|
}
|
|
|
|
type DocumentCreate struct {
|
|
Trans map[string]DocTrans `json:"translations"`
|
|
CategoryID string `json:"category_id"`
|
|
Weight string `json:"weight"`
|
|
}
|
|
|
|
type DocumentUpdate struct {
|
|
ID string `json:"id"`
|
|
DocumentCreate
|
|
}
|
|
|
|
type DocumentDelete struct {
|
|
ID string `form:"id"`
|
|
}
|
|
|
|
type DocumentList struct {
|
|
request.Paginate
|
|
Lang string `form:"lang"`
|
|
Category string `form:"category_id"`
|
|
FileName string `form:"file_name"`
|
|
Title string `form:"title"`
|
|
SubTitle string `form:"sub_title"`
|
|
Desc string `form:"desc"`
|
|
}
|