addMember.openapi.json 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. {
  2. "openapi": "3.1.0",
  3. "info": {
  4. "title": "智慧传承系统pc端",
  5. "description": "智慧传承系统pc端—相关接口文档",
  6. "version": "1.0-SNAPSHOT"
  7. },
  8. "paths": {
  9. "/basis/member/add": {
  10. "post": {
  11. "tags": ["工作室管理API"],
  12. "summary": "新增工作室成员",
  13. "operationId": "addPsMember",
  14. "requestBody": {
  15. "content": {
  16. "application/json": {
  17. "schema": {
  18. "$ref": "#/components/schemas/PersonalStudioMemberDetail"
  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. "PersonalStudioMemberDetail": {
  42. "type": "object",
  43. "properties": {
  44. "id": {
  45. "type": "integer",
  46. "format": "int64",
  47. "description": "主键ID"
  48. },
  49. "personalStudioId": {
  50. "type": "integer",
  51. "format": "int64",
  52. "description": "工作室ID"
  53. },
  54. "name": {
  55. "type": "string",
  56. "description": "姓名",
  57. "minLength": 1
  58. },
  59. "phone": {
  60. "type": "string",
  61. "description": "电话",
  62. "minLength": 1
  63. },
  64. "jobTitle": {
  65. "type": "string",
  66. "description": "职称(详见字典:智慧传承系统-职称)",
  67. "minLength": 1,
  68. "pattern": "^[01234]$"
  69. },
  70. "expertTitle": {
  71. "type": "string",
  72. "description": "专家头衔(详见字典:智慧传承系统-专家头衔)",
  73. "pattern": "^[0123]$"
  74. },
  75. "imageUrl": {
  76. "type": "string",
  77. "description": "头像"
  78. },
  79. "jobProfile": {
  80. "type": "string",
  81. "description": "职责简介",
  82. "minLength": 1
  83. },
  84. "createBy": {
  85. "type": "string",
  86. "description": "创建者"
  87. },
  88. "createTime": {
  89. "type": "string",
  90. "format": "date-time",
  91. "description": "创建时间"
  92. },
  93. "updateBy": {
  94. "type": "string",
  95. "description": "更新者"
  96. },
  97. "updateTime": {
  98. "type": "string",
  99. "format": "date-time",
  100. "description": "更新时间"
  101. }
  102. },
  103. "required": [
  104. "jobProfile",
  105. "jobTitle",
  106. "name",
  107. "personalStudioId",
  108. "phone"
  109. ]
  110. },
  111. "AjaxResult": {
  112. "type": "object",
  113. "description": "接口返回对象",
  114. "properties": {
  115. "code": {
  116. "type": "integer",
  117. "format": "int32",
  118. "description": "状态码"
  119. },
  120. "msg": {
  121. "type": "string",
  122. "description": "提示语"
  123. },
  124. "data": {
  125. "description": "数据对象"
  126. }
  127. }
  128. }
  129. }
  130. }
  131. }