addSpecificDisease.openapi.json 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. {
  2. "openapi": "3.1.0",
  3. "info": {
  4. "title": "智慧传承系统pc端",
  5. "description": "智慧传承系统pc端—相关接口文档",
  6. "version": "1.0-SNAPSHOT"
  7. },
  8. "paths": {
  9. "/business/add": {
  10. "post": {
  11. "tags": ["专病管理API"],
  12. "summary": "新增专病",
  13. "operationId": "add_1",
  14. "requestBody": {
  15. "content": {
  16. "application/json": {
  17. "schema": {
  18. "$ref": "#/components/schemas/SpecificDiseaseDetail"
  19. }
  20. }
  21. },
  22. "required": true
  23. },
  24. "responses": {
  25. "200": {
  26. "description": "OK",
  27. "content": {
  28. "*/*": {
  29. "schema": {
  30. "$ref": "#/components/schemas/AjaxResult"
  31. }
  32. }
  33. }
  34. }
  35. }
  36. }
  37. }
  38. },
  39. "components": {
  40. "schemas": {
  41. "SpecificDiseaseDetail": {
  42. "type": "object",
  43. "properties": {
  44. "pid": {
  45. "type": "integer",
  46. "format": "int64",
  47. "description": "主键ID"
  48. },
  49. "deptId": {
  50. "type": "integer",
  51. "format": "int64",
  52. "description": "工作室ID"
  53. },
  54. "diseaseName": {
  55. "type": "string",
  56. "description": "专病名称",
  57. "minLength": 1
  58. },
  59. "imageUrl": {
  60. "type": "string",
  61. "description": "形象图片url"
  62. },
  63. "specificDescribe": {
  64. "type": "string",
  65. "description": "描述"
  66. }
  67. },
  68. "required": ["deptId", "diseaseName"]
  69. },
  70. "AjaxResult": {
  71. "type": "object",
  72. "description": "接口返回对象",
  73. "properties": {
  74. "code": {
  75. "type": "integer",
  76. "format": "int32",
  77. "description": "状态码"
  78. },
  79. "msg": {
  80. "type": "string",
  81. "description": "提示语"
  82. },
  83. "data": {
  84. "description": "数据对象"
  85. }
  86. }
  87. }
  88. }
  89. }
  90. }