You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

482 lines
12 KiB

3 months ago
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "title": "crmeb_java_public",
  5. "version": "last",
  6. "description": "crmeb_java_public"
  7. },
  8. "basePath": "/",
  9. "tags": [
  10. {
  11. "name": "Admin管理员 密码操作",
  12. "description": "Authorization Admin"
  13. },
  14. {
  15. "name": "Redis测试操作",
  16. "description": "Redis Test Controller"
  17. },
  18. {
  19. "name": "企业微信消息推送",
  20. "description": "We Chat Push Controller"
  21. },
  22. {
  23. "name": "图片操作",
  24. "description": "Image Merge Controller"
  25. },
  26. {
  27. "name": "微信开放平台 -- 消息",
  28. "description": "We Chat Message Controller"
  29. }
  30. ],
  31. "schemes": [
  32. "http"
  33. ],
  34. "paths": {
  35. "/api/public/auth/test/account/encode": {
  36. "post": {
  37. "tags": [
  38. "Admin管理员 密码操作"
  39. ],
  40. "summary": "密码加密",
  41. "consumes": [
  42. "application/json"
  43. ],
  44. "parameters": [
  45. {
  46. "name": "account",
  47. "in": "query",
  48. "required": false,
  49. "description": "账号",
  50. "type": "string"
  51. },
  52. {
  53. "name": "password",
  54. "in": "query",
  55. "required": false,
  56. "description": "密码",
  57. "type": "string"
  58. }
  59. ],
  60. "responses": {
  61. "200": {
  62. "description": "successful operation",
  63. "schema": {
  64. "type": "object",
  65. "properties": {
  66. "code": {
  67. "type": "integer",
  68. "format": "int64"
  69. },
  70. "data": {
  71. "type": "object"
  72. },
  73. "message": {
  74. "type": "string"
  75. }
  76. },
  77. "title": "CommonResult«Map»",
  78. "$$ref": "#/definitions/CommonResult«Map»"
  79. }
  80. }
  81. }
  82. }
  83. },
  84. "/api/public/auth/test/account/decode": {
  85. "post": {
  86. "tags": [
  87. "Admin管理员 密码操作"
  88. ],
  89. "summary": "破解密码",
  90. "consumes": [
  91. "application/json"
  92. ],
  93. "parameters": [
  94. {
  95. "name": "account",
  96. "in": "query",
  97. "required": false,
  98. "description": "账号",
  99. "type": "string"
  100. },
  101. {
  102. "name": "encodeString",
  103. "in": "query",
  104. "required": false,
  105. "description": "加密字符串",
  106. "type": "string"
  107. }
  108. ],
  109. "responses": {
  110. "200": {
  111. "description": "successful operation",
  112. "schema": {
  113. "type": "object",
  114. "properties": {
  115. "code": {
  116. "type": "integer",
  117. "format": "int64"
  118. },
  119. "data": {
  120. "type": "object"
  121. },
  122. "message": {
  123. "type": "string"
  124. }
  125. },
  126. "title": "CommonResult«Map»",
  127. "$$ref": "#/definitions/CommonResult«Map»"
  128. }
  129. }
  130. }
  131. }
  132. },
  133. "/api/public/test/redis/delete": {
  134. "get": {
  135. "tags": [
  136. "Redis测试操作"
  137. ],
  138. "summary": "删除",
  139. "consumes": [
  140. "text/plain"
  141. ],
  142. "parameters": [
  143. {
  144. "name": "key",
  145. "in": "query",
  146. "required": false,
  147. "description": "redis key",
  148. "type": "string"
  149. },
  150. {
  151. "name": "raw",
  152. "in": "body",
  153. "description": "raw paramter",
  154. "schema": {
  155. "type": "string",
  156. "format": "binary"
  157. }
  158. }
  159. ],
  160. "responses": {
  161. "200": {
  162. "description": "successful operation",
  163. "schema": {
  164. "type": "object",
  165. "properties": {
  166. "code": {
  167. "type": "integer",
  168. "format": "int64"
  169. },
  170. "data": {
  171. "type": "object"
  172. },
  173. "message": {
  174. "type": "string"
  175. }
  176. },
  177. "title": "CommonResult«object»",
  178. "$$ref": "#/definitions/CommonResult«object»"
  179. }
  180. }
  181. }
  182. }
  183. },
  184. "/api/public/test/redis/set": {
  185. "post": {
  186. "tags": [
  187. "Redis测试操作"
  188. ],
  189. "summary": "新增",
  190. "consumes": [
  191. "application/json"
  192. ],
  193. "parameters": [
  194. {
  195. "name": "key",
  196. "in": "query",
  197. "required": false,
  198. "description": "redis key",
  199. "type": "string"
  200. },
  201. {
  202. "name": "value",
  203. "in": "query",
  204. "required": false,
  205. "description": "内容",
  206. "type": "string"
  207. }
  208. ],
  209. "responses": {
  210. "200": {
  211. "description": "successful operation",
  212. "schema": {
  213. "type": "object",
  214. "properties": {
  215. "code": {
  216. "type": "integer",
  217. "format": "int64"
  218. },
  219. "data": {
  220. "type": "object"
  221. },
  222. "message": {
  223. "type": "string"
  224. }
  225. },
  226. "title": "CommonResult«object»",
  227. "$$ref": "#/definitions/CommonResult«object»"
  228. }
  229. }
  230. }
  231. }
  232. },
  233. "/api/public/test/redis/get": {
  234. "get": {
  235. "tags": [
  236. "Redis测试操作"
  237. ],
  238. "summary": "查询",
  239. "consumes": [
  240. "text/plain"
  241. ],
  242. "parameters": [
  243. {
  244. "name": "key",
  245. "in": "query",
  246. "required": false,
  247. "description": "redis key",
  248. "type": "string"
  249. },
  250. {
  251. "name": "raw",
  252. "in": "body",
  253. "description": "raw paramter",
  254. "schema": {
  255. "type": "string",
  256. "format": "binary"
  257. }
  258. }
  259. ],
  260. "responses": {
  261. "200": {
  262. "description": "successful operation",
  263. "schema": {
  264. "type": "object",
  265. "properties": {
  266. "code": {
  267. "type": "integer",
  268. "format": "int64"
  269. },
  270. "data": {
  271. "type": "object"
  272. },
  273. "message": {
  274. "type": "string"
  275. }
  276. },
  277. "title": "CommonResult«object»",
  278. "$$ref": "#/definitions/CommonResult«object»"
  279. }
  280. }
  281. }
  282. }
  283. },
  284. "/api/public/wechat/gitlab": {
  285. "post": {
  286. "tags": [
  287. "企业微信消息推送"
  288. ],
  289. "summary": "gitlab钩子",
  290. "consumes": [
  291. "application/json"
  292. ],
  293. "parameters": [
  294. {
  295. "name": "token",
  296. "in": "query",
  297. "required": false,
  298. "description": "企业微信群token",
  299. "type": "string"
  300. },
  301. {
  302. "name": "root",
  303. "in": "body",
  304. "schema": {
  305. "type": "string"
  306. }
  307. }
  308. ],
  309. "responses": {
  310. "200": {
  311. "description": "successful operation",
  312. "schema": {
  313. "type": "object",
  314. "properties": {
  315. "code": {
  316. "type": "integer",
  317. "format": "int64"
  318. },
  319. "data": {
  320. "type": "object"
  321. },
  322. "message": {
  323. "type": "string"
  324. }
  325. },
  326. "title": "CommonResult«object»",
  327. "$$ref": "#/definitions/CommonResult«object»"
  328. }
  329. }
  330. }
  331. }
  332. },
  333. "/api/public/wechat/push": {
  334. "get": {
  335. "tags": [
  336. "企业微信消息推送"
  337. ],
  338. "summary": "消息推送",
  339. "consumes": [
  340. "text/plain"
  341. ],
  342. "parameters": [
  343. {
  344. "name": "message",
  345. "in": "query",
  346. "required": false,
  347. "description": "推送消息内容",
  348. "type": "string"
  349. },
  350. {
  351. "name": "token",
  352. "in": "query",
  353. "required": false,
  354. "description": "企业微信群token",
  355. "type": "string"
  356. },
  357. {
  358. "name": "raw",
  359. "in": "body",
  360. "description": "raw paramter",
  361. "schema": {
  362. "type": "string",
  363. "format": "binary"
  364. }
  365. }
  366. ],
  367. "responses": {
  368. "200": {
  369. "description": "successful operation",
  370. "schema": {
  371. "type": "object",
  372. "properties": {
  373. "code": {
  374. "type": "integer",
  375. "format": "int64"
  376. },
  377. "data": {
  378. "type": "object"
  379. },
  380. "message": {
  381. "type": "string"
  382. }
  383. },
  384. "title": "CommonResult«object»",
  385. "$$ref": "#/definitions/CommonResult«object»"
  386. }
  387. }
  388. }
  389. }
  390. },
  391. "/api/public/qrcode/mergeList": {
  392. "post": {
  393. "tags": [
  394. "图片操作"
  395. ],
  396. "summary": "合并图片返回文件",
  397. "consumes": [
  398. "application/json"
  399. ],
  400. "parameters": [
  401. {
  402. "name": "root",
  403. "in": "body",
  404. "schema": {
  405. "type": "array",
  406. "items": {
  407. "type": "object",
  408. "required": [
  409. "path",
  410. "x",
  411. "y"
  412. ],
  413. "properties": {
  414. "path": {
  415. "type": "string",
  416. "description": "图片地址"
  417. },
  418. "x": {
  419. "type": "integer",
  420. "format": "int32",
  421. "description": "x轴"
  422. },
  423. "y": {
  424. "type": "integer",
  425. "format": "int32",
  426. "description": "y轴"
  427. }
  428. },
  429. "title": "ImageMergeUtilVo",
  430. "$$ref": "#/definitions/ImageMergeUtilVo"
  431. }
  432. }
  433. }
  434. ],
  435. "responses": {
  436. "200": {
  437. "description": "successful operation",
  438. "schema": {
  439. "type": "object",
  440. "properties": {
  441. "code": {
  442. "type": "integer",
  443. "format": "int64"
  444. },
  445. "data": {
  446. "type": "object",
  447. "additionalProperties": {
  448. "type": "string"
  449. }
  450. },
  451. "message": {
  452. "type": "string"
  453. }
  454. },
  455. "title": "CommonResult«Map«string,string»»",
  456. "$$ref": "#/definitions/CommonResult«Map«string,string»»"
  457. }
  458. }
  459. }
  460. }
  461. },
  462. "/api/public/wechat/message/webHook": {
  463. "post": {
  464. "tags": [
  465. "微信开放平台 -- 消息"
  466. ],
  467. "summary": "接受微信推送过来的消息",
  468. "consumes": [
  469. "application/json"
  470. ],
  471. "parameters": [],
  472. "responses": {
  473. "200": {
  474. "description": "successful operation",
  475. "schema": {
  476. "type": "string"
  477. }
  478. }
  479. }
  480. }
  481. }
  482. }
  483. }