Files
zmkgC/api/v1/system/bus_research_document.go
2025-07-07 20:11:59 +08:00

95 lines
3.4 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-07-29 16:04:06
// 生成路径: api/v1/system/bus_research_document.go
// 生成人gfast
// desc:科研文档相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
comModel "github.com/tiger1103/gfast/v3/internal/app/common/model"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusResearchDocumentSearchReq 分页请求参数
type BusResearchDocumentSearchReq struct {
g.Meta `path:"/list" tags:"科研文档" method:"get" summary:"科研文档列表"`
FileId string `p:"fileId" `
ProjectId string `p:"projectId" `
DocumenName string `p:"documenName"` //文档名称
CreatedAt string `p:"createdAt" v:"createdAt@datetime#上传时间需为YYYY-MM-DD hh:mm:ss格式"` //上传时间
commonApi.PageReq
commonApi.Author
}
// BusResearchDocumentSearchRes 列表返回结果
type BusResearchDocumentSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusResearchDocumentListRes `json:"list"`
}
// BusResearchDocumentAddReq 添加操作请求参数
type BusResearchDocumentAddReq struct {
g.Meta `path:"/add" tags:"科研文档" method:"post" summary:"科研文档添加"`
commonApi.Author
//DocumenName string `p:"documenName" v:"required#文档名称不能为空"`
//DocumentUrl string `p:"documentUrl" `
FileId int64 `p:"fileId" `
ProjectId int64 `p:"projectId" `
FileUrl []*comModel.UpFile `p:"fileUrl" `
}
// BusResearchDocumentAddRes 添加操作返回结果
type BusResearchDocumentAddRes struct {
commonApi.EmptyRes
}
// BusResearchDocumentEditReq 修改操作请求参数
type BusResearchDocumentEditReq struct {
g.Meta `path:"/edit" tags:"科研文档" method:"put" summary:"科研文档修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
FileUrl []*comModel.UpFile `p:"fileUrl" `
Remark string `p:"remark" `
FileId int64 `p:"fileId" `
ProjectId int64 `p:"projectId" `
//DocumenName string `p:"documenName" v:"required#文档名称不能为空"`
//DocumentUrl string `p:"documentUrl" `
}
// BusResearchDocumentEditRes 修改操作返回结果
type BusResearchDocumentEditRes struct {
commonApi.EmptyRes
}
// BusResearchDocumentGetReq 获取一条数据请求
type BusResearchDocumentGetReq struct {
g.Meta `path:"/get" tags:"科研文档" method:"get" summary:"获取科研文档信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusResearchDocumentGetRes 获取一条数据结果
type BusResearchDocumentGetRes struct {
g.Meta `mime:"application/json"`
*model.BusResearchDocumentInfoRes
}
// BusResearchDocumentDeleteReq 删除数据请求
type BusResearchDocumentDeleteReq struct {
g.Meta `path:"/delete" tags:"科研文档" method:"delete" summary:"删除科研文档"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusResearchDocumentDeleteRes 删除数据返回
type BusResearchDocumentDeleteRes struct {
commonApi.EmptyRes
}