report_open.go 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. package models
  2. // ReportCreateReq 创建报告
  3. type ReportCreateReq struct {
  4. ReportId int `description:"智力共享报告ID"`
  5. ClassifyId int `description:"分类ID"`
  6. Title string `description:"报告标题"`
  7. EndTime string `description:"课题结束时间"`
  8. Creator string `description:"创建人工号"`
  9. Authors []string `description:"作者工号"`
  10. }
  11. // ReportCreateResp 创建报告响应
  12. type ReportCreateResp struct {
  13. ReportId int `description:"智能研报ID"`
  14. //ReportCode string `description:"报告唯一编码"`
  15. }
  16. // ReportModifyReq 编辑报告
  17. type ReportModifyReq struct {
  18. ReportId int `description:"智力共享报告ID"`
  19. Title string `description:"报告标题"`
  20. EndTime string `description:"课题结束时间"`
  21. Authors []string `description:"作者工号"`
  22. Operator string `description:"操作人工号"`
  23. }
  24. // ReportApproveReq 审批报告
  25. type ReportApproveReq struct {
  26. ReportIds []int `description:"智力共享报告ID"`
  27. ApproveType int `description:"审批类型:1-通过;2-驳回;3-撤回"`
  28. ApproveUser string `description:"审批人"`
  29. Suggestion string `description:"审批意见"`
  30. }
  31. // ReportRemoveReq 删除报告
  32. type ReportRemoveReq struct {
  33. ReportIds []int `description:"智力共享报告ID"`
  34. Operator string `description:"操作人工号"`
  35. }
  36. type ReportViewPointSaveReq struct {
  37. Id int `description:"观点库外部id"`
  38. Title string `description:"观点标题"`
  39. Category string `description:"观点分类"`
  40. Content string `description:"观点内容"`
  41. DataSource string `description:"数据来源名称"`
  42. DataDate string `description:"数据日期"`
  43. UpdateTime string `description:"更新时间"`
  44. }
  45. type ReportViewPointDeleteRep struct {
  46. Id *int `description:"观点库外部id"`
  47. }
  48. type ReportKnowledgeUploadRep struct {
  49. Title string `form:"title" description:"文件标题"`
  50. Source string `form:"source" description:"文件来源"`
  51. ClassifyPath string `form:"classify_path" description:"文件分类路径"`
  52. PushTime string `form:"push_time" description:"上传时间"`
  53. }