addDepartment.openapi.json 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. {
  2. "openapi": "3.1.0",
  3. "info": {
  4. "title": "智慧传承系统pc端",
  5. "description": "智慧传承系统pc端—相关接口文档",
  6. "version": "1.0-SNAPSHOT"
  7. },
  8. "paths": {
  9. "/basis/department/add": {
  10. "post": {
  11. "tags": ["工作室管理API"],
  12. "summary": "新增工作室",
  13. "operationId": "addPs",
  14. "requestBody": {
  15. "content": {
  16. "application/json": {
  17. "schema": {
  18. "$ref": "#/components/schemas/PersonalStudioDetail"
  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. "PersonalStudioDetail": {
  42. "type": "object",
  43. "properties": {
  44. "pid": {
  45. "type": "integer",
  46. "format": "int64",
  47. "description": "主键ID"
  48. },
  49. "deptCode": {
  50. "type": "string",
  51. "description": "工作室编码",
  52. "minLength": 1
  53. },
  54. "deptName": {
  55. "type": "string",
  56. "description": "工作室名称",
  57. "minLength": 1
  58. },
  59. "profile": {
  60. "type": "string",
  61. "description": "工作室简介"
  62. },
  63. "hospitalId": {
  64. "type": "integer",
  65. "format": "int64",
  66. "description": "机构id"
  67. },
  68. "hospitalName": {
  69. "type": "string",
  70. "description": "机构名称",
  71. "minLength": 1
  72. },
  73. "doctorName": {
  74. "type": "string",
  75. "description": "医生姓名",
  76. "minLength": 1
  77. },
  78. "doctorProfile": {
  79. "type": "string",
  80. "description": "医生简介"
  81. },
  82. "curatorName": {
  83. "type": "string",
  84. "description": "负责人姓名",
  85. "minLength": 1
  86. },
  87. "phoneNumber": {
  88. "type": "string",
  89. "description": "联系电话",
  90. "minLength": 1
  91. },
  92. "specificDirection": {
  93. "type": "string",
  94. "description": "专科方向"
  95. },
  96. "sectName": {
  97. "type": "string",
  98. "description": "流派名称"
  99. },
  100. "sectImpart": {
  101. "type": "string",
  102. "description": "流派传承"
  103. },
  104. "impartTeam": {
  105. "type": "string",
  106. "description": "传承团队"
  107. },
  108. "createBy": {
  109. "type": "string",
  110. "description": "创建者"
  111. },
  112. "createTime": {
  113. "type": "string",
  114. "format": "date-time",
  115. "description": "创建时间"
  116. },
  117. "updateBy": {
  118. "type": "string",
  119. "description": "更新者"
  120. },
  121. "updateTime": {
  122. "type": "string",
  123. "format": "date-time",
  124. "description": "更新时间"
  125. },
  126. "remark": {
  127. "type": "string",
  128. "description": "备注"
  129. }
  130. },
  131. "required": [
  132. "curatorName",
  133. "deptCode",
  134. "deptName",
  135. "doctorName",
  136. "hospitalId",
  137. "hospitalName",
  138. "phoneNumber"
  139. ]
  140. },
  141. "AjaxResult": {
  142. "type": "object",
  143. "description": "接口返回对象",
  144. "properties": {
  145. "code": {
  146. "type": "integer",
  147. "format": "int32",
  148. "description": "状态码"
  149. },
  150. "msg": {
  151. "type": "string",
  152. "description": "提示语"
  153. },
  154. "data": {
  155. "description": "数据对象"
  156. }
  157. }
  158. }
  159. }
  160. }
  161. }