初始
This commit is contained in:
44
api/app/project/req.go
Normal file
44
api/app/project/req.go
Normal file
@ -0,0 +1,44 @@
|
||||
package project
|
||||
|
||||
import "github.com/gogf/gf/v2/frame/g"
|
||||
|
||||
// 查询所有项目列表数据
|
||||
type ProjectIndexModuleReq struct {
|
||||
g.Meta `path:"index" method:"get" tags:"APP(项目相关)" summary:"项目列表数据【首页列表】"`
|
||||
ProjectName string `json:"projectName" dc:"模糊搜索项目名"`
|
||||
PageNum int `json:"pageNum" dc:"页码" v:"required"`
|
||||
PageSize int `json:"pageSize" dc:"每页数量" v:"required"`
|
||||
}
|
||||
|
||||
// 根据项目ID查询详情【基础数据】
|
||||
type ProjectIndexModuleDetailReq struct {
|
||||
g.Meta `path:"base" method:"get" tags:"APP(项目相关)" summary:"项目详情数据【基础数据】"`
|
||||
ProjectId string `json:"projectId" v:"required" dc:"项目ID"`
|
||||
}
|
||||
|
||||
// 根据项目ID查询详情【项目计划】
|
||||
type ProjectPlanDetailReq struct {
|
||||
g.Meta `path:"plan" method:"get" tags:"APP(项目相关)" summary:"项目详情数据【项目计划】"`
|
||||
ProjectId string `json:"projectId" v:"required" dc:"项目ID"`
|
||||
}
|
||||
|
||||
// 根据项目ID查询详情【视频监控】
|
||||
type ProjectVideoDetailReq struct {
|
||||
g.Meta `path:"video" method:"get" tags:"APP(项目相关)" summary:"项目详情数据【视频监控】"`
|
||||
ProjectId string `json:"projectId" v:"required" dc:"项目ID"`
|
||||
}
|
||||
|
||||
// 根据项目ID查询详情【施工日志】
|
||||
type ProjectLogReq struct {
|
||||
g.Meta `path:"log" method:"get" tags:"APP(项目相关)" summary:"项目详情数据【施工日志】"`
|
||||
ProjectId int64 `json:"projectId" v:"required" dc:"项目ID"`
|
||||
}
|
||||
|
||||
// 根据项目ID查询详情【计划详情】
|
||||
type ProjectPlanDetailStatusReq struct {
|
||||
g.Meta `path:"/planDetail" tags:"APP(项目相关)" method:"get" summary:"项目详情数据【计划详情】"`
|
||||
ProjectID int `json:"projectId"`
|
||||
Status int `json:"status" dc:"任务状态 0:待开始 1:进行中 2:已完成 3:滞后"`
|
||||
PageNum int `json:"pageNum" dc:"页码" v:"required"`
|
||||
PageSize int `json:"pageSize" dc:"每页数量" v:"required"`
|
||||
}
|
Reference in New Issue
Block a user