2023-11-17 16:22:22 +08:00
|
|
|
package dto
|
|
|
|
|
|
|
|
type PagePublishedReqDto struct {
|
|
|
|
PageQueryDto
|
2023-11-22 17:05:38 +08:00
|
|
|
Name string `json:"name" form:"name"`
|
|
|
|
Release bool `json:"release" form:"release"` // 是否只要上架数据
|
2023-11-17 16:22:22 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type PublishedListReqDto struct {
|
2023-11-22 17:05:38 +08:00
|
|
|
Name string `json:"name" form:"name"`
|
|
|
|
Type int32 `json:"type" form:"type"`
|
|
|
|
Category string `json:"category" form:"category"`
|
2023-11-17 16:22:22 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type PublishedDto struct {
|
2023-11-22 17:05:38 +08:00
|
|
|
ID int32 `json:"id" form:"id"`
|
|
|
|
Name string `json:"name" form:"name"`
|
|
|
|
Proto []byte `json:"proto" form:"proto"`
|
|
|
|
UserID int32 `json:"userID" form:"userID"`
|
|
|
|
Note string `json:"note" form:"note"`
|
|
|
|
Type int32 `json:"type" form:"type"`
|
2023-11-17 16:22:22 +08:00
|
|
|
Category string `json:"category" form:"category"`
|
2023-11-22 17:05:38 +08:00
|
|
|
PublishAt JsonTime `json:"publishAt" form:"publishAt" time_format:"2006-01-02 15:04:05"`
|
|
|
|
Status int32 `json:"status" form:"status"`
|
2023-11-17 16:22:22 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type PublishReqDto struct {
|
|
|
|
//发布后的名称
|
|
|
|
Name string `json:"name" form:"name"`
|
|
|
|
//草稿数据的id
|
|
|
|
DraftId int32 `json:"draftId" form:"draftId"`
|
|
|
|
Note string `json:"note" form:"note"`
|
2023-11-22 17:05:38 +08:00
|
|
|
// 强制覆盖
|
|
|
|
Force bool `json:"force" form:"force"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type PublishChangeReqDto struct {
|
|
|
|
Id int32 `json:"id" form:"id"`
|
|
|
|
Name string `json:"name" form:"name"`
|
|
|
|
Release bool `json:"release" form:"release"`
|
2023-11-17 16:22:22 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// PublishedGiSingleQueryDto 单个查询发布地图数据
|
|
|
|
type PublishedSingleQueryDto struct {
|
|
|
|
Name string `json:"name" form:"name"`
|
|
|
|
Detail bool `json:"detail" form:"detail"`
|
|
|
|
}
|
2023-11-22 17:05:38 +08:00
|
|
|
|
|
|
|
type PublishHistoryDto struct {
|
|
|
|
Id int32 `json:"id" form:"id"`
|
|
|
|
Publisher string `json:"publisher" form:"publisher"`
|
|
|
|
PublishAt JsonTime `json:"publishAt" time_format:"2006-01-02 15:04:05"`
|
|
|
|
Version int32 `json:"version" form:"version"`
|
|
|
|
Note string `json:"note" form:"note"`
|
|
|
|
}
|