初始
This commit is contained in:
38
api/app/visual_remark/req.go
Normal file
38
api/app/visual_remark/req.go
Normal file
@ -0,0 +1,38 @@
|
||||
package visual_remark
|
||||
|
||||
import "github.com/gogf/gf/v2/frame/g"
|
||||
|
||||
// 新增形象进度评论
|
||||
type CreateRemarkReq struct {
|
||||
g.Meta `path:"/remark/create" method:"post" tags:"APP(形象进度评论相关)" summary:"新增形象进度评论"`
|
||||
VisualProgressID int `json:"visualProgressId" v:"required" dc:"形象进度ID"`
|
||||
Comment string `json:"comment" v:"required" dc:"评论的内容"`
|
||||
UserID int `json:"userId" v:"required" dc:"评论的用户ID"`
|
||||
}
|
||||
|
||||
// 查看某个形象进度的评论列表
|
||||
type ListRemarksReq struct {
|
||||
g.Meta `path:"/remark/list" method:"get" tags:"APP(形象进度评论相关)" summary:"查看某个形象进度的评论列表"`
|
||||
VisualID int64 `json:"visualID" v:"required" dc:"形象进度ID"`
|
||||
}
|
||||
|
||||
// 获取形象进度评论详细信息
|
||||
type GetRemarkDetailReq struct {
|
||||
g.Meta `path:"/remark/detail" method:"get" tags:"APP(形象进度评论相关)" summary:"获取形象进度评论详细信息"`
|
||||
ID int64 `json:"id" v:"required" dc:"备注ID"`
|
||||
}
|
||||
|
||||
// 更新形象进度评论
|
||||
type UpdateRemarkReq struct {
|
||||
g.Meta `path:"/remark/update" method:"post" tags:"APP(形象进度评论相关)" summary:"更新形象进度评论"`
|
||||
ID int `json:"id" v:"required" dc:"主键ID"`
|
||||
VisualProgressID int `json:"visualProgressId" dc:"形象进度ID"`
|
||||
Comment string `json:"comment" dc:"评论的内容"`
|
||||
UserID int `json:"userId" dc:"评论的用户ID"`
|
||||
}
|
||||
|
||||
// 删除形象进度评论
|
||||
type DeleteRemarkReq struct {
|
||||
g.Meta `path:"/remark/delete" method:"delete" tags:"APP(形象进度评论相关)" summary:"删除形象进度评论"`
|
||||
ID int `json:"id" v:"required" dc:"主键ID"`
|
||||
}
|
Reference in New Issue
Block a user