api.json 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "description": "禅道 dev 禅道管理后台",
  5. "version": "1.0",
  6. "title": "禅道 dev 禅道管理后台"
  7. },
  8. "host": "192.168.0.135:8085",
  9. "basePath": "/",
  10. "tags": [{
  11. "name": "个人使用",
  12. "description": "Personal Controller"
  13. }, {
  14. "name": "财务使用",
  15. "description": "Finance Controller"
  16. }, {
  17. "name": "部门使用",
  18. "description": "Dept Controller"
  19. }],
  20. "paths": {
  21. "/api/dept/byDetail": {
  22. "post": {
  23. "tags": ["部门使用"],
  24. "summary": "月详情(date:当月日期:yyyy-MM-dd",
  25. "operationId": "byDetailUsingPOST",
  26. "consumes": ["application/json"],
  27. "produces": ["*/*"],
  28. "parameters": [{
  29. "in": "body",
  30. "name": "param",
  31. "description": "param",
  32. "required": true,
  33. "schema": {
  34. "originalRef": "DeptPageDto",
  35. "$ref": "#/definitions/DeptPageDto"
  36. }
  37. }],
  38. "responses": {
  39. "200": {
  40. "description": "OK",
  41. "schema": {
  42. "originalRef": "Result«DetailVo»",
  43. "$ref": "#/definitions/Result«DetailVo»"
  44. }
  45. },
  46. "201": {
  47. "description": "Created"
  48. },
  49. "401": {
  50. "description": "Unauthorized"
  51. },
  52. "403": {
  53. "description": "Forbidden"
  54. },
  55. "404": {
  56. "description": "Not Found"
  57. }
  58. },
  59. "security": [{
  60. "Authorization": ["global"]
  61. }],
  62. "deprecated": false,
  63. "x-order": "2147483647"
  64. }
  65. },
  66. "/api/dept/byMonth": {
  67. "post": {
  68. "tags": ["部门使用"],
  69. "summary": "月统计(date:当月日期:yyyy-MM-dd)",
  70. "operationId": "byMonthUsingPOST",
  71. "consumes": ["application/json"],
  72. "produces": ["*/*"],
  73. "parameters": [{
  74. "in": "body",
  75. "name": "param",
  76. "description": "param",
  77. "required": true,
  78. "schema": {
  79. "originalRef": "DeptPageDto",
  80. "$ref": "#/definitions/DeptPageDto"
  81. }
  82. }],
  83. "responses": {
  84. "200": {
  85. "description": "OK",
  86. "schema": {
  87. "originalRef": "Result«MonthVo»",
  88. "$ref": "#/definitions/Result«MonthVo»"
  89. }
  90. },
  91. "201": {
  92. "description": "Created"
  93. },
  94. "401": {
  95. "description": "Unauthorized"
  96. },
  97. "403": {
  98. "description": "Forbidden"
  99. },
  100. "404": {
  101. "description": "Not Found"
  102. }
  103. },
  104. "security": [{
  105. "Authorization": ["global"]
  106. }],
  107. "deprecated": false,
  108. "x-order": "2147483647"
  109. }
  110. },
  111. "/api/dept/excelByDetail": {
  112. "post": {
  113. "tags": ["部门使用"],
  114. "summary": "月详情(excel)(date:当月日期:yyyy-MM-dd",
  115. "operationId": "excelByDetailUsingPOST",
  116. "consumes": ["application/json"],
  117. "produces": ["*/*"],
  118. "parameters": [{
  119. "in": "body",
  120. "name": "param",
  121. "description": "param",
  122. "required": true,
  123. "schema": {
  124. "originalRef": "DeptDto",
  125. "$ref": "#/definitions/DeptDto"
  126. }
  127. }],
  128. "responses": {
  129. "200": {
  130. "description": "OK",
  131. "schema": {
  132. "originalRef": "Result«DetailVo»",
  133. "$ref": "#/definitions/Result«DetailVo»"
  134. }
  135. },
  136. "201": {
  137. "description": "Created"
  138. },
  139. "401": {
  140. "description": "Unauthorized"
  141. },
  142. "403": {
  143. "description": "Forbidden"
  144. },
  145. "404": {
  146. "description": "Not Found"
  147. }
  148. },
  149. "security": [{
  150. "Authorization": ["global"]
  151. }],
  152. "deprecated": false,
  153. "x-order": "2147483647"
  154. }
  155. },
  156. "/api/dept/excelByMonth": {
  157. "post": {
  158. "tags": ["部门使用"],
  159. "summary": "月统计(excel)(date:当月日期:yyyy-MM-dd)",
  160. "operationId": "excelByMonthUsingPOST",
  161. "consumes": ["application/json"],
  162. "produces": ["*/*"],
  163. "parameters": [{
  164. "in": "body",
  165. "name": "param",
  166. "description": "param",
  167. "required": true,
  168. "schema": {
  169. "originalRef": "DeptDto",
  170. "$ref": "#/definitions/DeptDto"
  171. }
  172. }],
  173. "responses": {
  174. "200": {
  175. "description": "OK",
  176. "schema": {
  177. "originalRef": "Result«MonthVo»",
  178. "$ref": "#/definitions/Result«MonthVo»"
  179. }
  180. },
  181. "201": {
  182. "description": "Created"
  183. },
  184. "401": {
  185. "description": "Unauthorized"
  186. },
  187. "403": {
  188. "description": "Forbidden"
  189. },
  190. "404": {
  191. "description": "Not Found"
  192. }
  193. },
  194. "security": [{
  195. "Authorization": ["global"]
  196. }],
  197. "deprecated": false,
  198. "x-order": "2147483647"
  199. }
  200. },
  201. "/api/dept/list": {
  202. "get": {
  203. "tags": ["部门使用"],
  204. "summary": "部门列表",
  205. "operationId": "listUsingGET",
  206. "produces": ["*/*"],
  207. "responses": {
  208. "200": {
  209. "description": "OK",
  210. "schema": {
  211. "originalRef": "Result",
  212. "$ref": "#/definitions/Result"
  213. }
  214. },
  215. "401": {
  216. "description": "Unauthorized"
  217. },
  218. "403": {
  219. "description": "Forbidden"
  220. },
  221. "404": {
  222. "description": "Not Found"
  223. }
  224. },
  225. "security": [{
  226. "Authorization": ["global"]
  227. }],
  228. "deprecated": false,
  229. "x-order": "2147483647"
  230. }
  231. },
  232. "/api/finance/excelByDetail/{date}": {
  233. "get": {
  234. "tags": ["财务使用"],
  235. "summary": "月详情(date:当月日期:yyyy-MM-dd)",
  236. "operationId": "excelByDetailUsingGET",
  237. "produces": ["*/*"],
  238. "parameters": [{
  239. "name": "date",
  240. "in": "path",
  241. "description": "date",
  242. "required": true,
  243. "type": "string"
  244. }],
  245. "responses": {
  246. "200": {
  247. "description": "OK",
  248. "schema": {
  249. "originalRef": "Result«DetailVo»",
  250. "$ref": "#/definitions/Result«DetailVo»"
  251. }
  252. },
  253. "401": {
  254. "description": "Unauthorized"
  255. },
  256. "403": {
  257. "description": "Forbidden"
  258. },
  259. "404": {
  260. "description": "Not Found"
  261. }
  262. },
  263. "security": [{
  264. "Authorization": ["global"]
  265. }],
  266. "deprecated": false,
  267. "x-order": "2147483647"
  268. }
  269. },
  270. "/api/finance/excelByMonth/{date}": {
  271. "get": {
  272. "tags": ["财务使用"],
  273. "summary": "月总计(date:当月日期:yyyy-MM-dd)",
  274. "operationId": "excelByMonthUsingGET",
  275. "produces": ["*/*"],
  276. "parameters": [{
  277. "name": "date",
  278. "in": "path",
  279. "description": "date",
  280. "required": true,
  281. "type": "string"
  282. }],
  283. "responses": {
  284. "200": {
  285. "description": "OK",
  286. "schema": {
  287. "originalRef": "Result«FinanceMonthVo»",
  288. "$ref": "#/definitions/Result«FinanceMonthVo»"
  289. }
  290. },
  291. "401": {
  292. "description": "Unauthorized"
  293. },
  294. "403": {
  295. "description": "Forbidden"
  296. },
  297. "404": {
  298. "description": "Not Found"
  299. }
  300. },
  301. "security": [{
  302. "Authorization": ["global"]
  303. }],
  304. "deprecated": false,
  305. "x-order": "2147483647"
  306. }
  307. },
  308. "/api/personal/getUserList": {
  309. "get": {
  310. "tags": ["个人使用"],
  311. "summary": "用户列表",
  312. "operationId": "getUserListUsingGET",
  313. "produces": ["*/*"],
  314. "responses": {
  315. "200": {
  316. "description": "OK",
  317. "schema": {
  318. "originalRef": "Result",
  319. "$ref": "#/definitions/Result"
  320. }
  321. },
  322. "401": {
  323. "description": "Unauthorized"
  324. },
  325. "403": {
  326. "description": "Forbidden"
  327. },
  328. "404": {
  329. "description": "Not Found"
  330. }
  331. },
  332. "security": [{
  333. "Authorization": ["global"]
  334. }],
  335. "deprecated": false,
  336. "x-order": "2147483647"
  337. }
  338. },
  339. "/api/personal/workByMonth/{account}/{date}": {
  340. "get": {
  341. "tags": ["个人使用"],
  342. "summary": "月统计(date:当月日期:yyyy-MM-dd)",
  343. "operationId": "workByMonthUsingGET",
  344. "produces": ["*/*"],
  345. "parameters": [{
  346. "name": "account",
  347. "in": "path",
  348. "description": "account",
  349. "required": true,
  350. "type": "string"
  351. }, {
  352. "name": "date",
  353. "in": "path",
  354. "description": "date",
  355. "required": true,
  356. "type": "string"
  357. }],
  358. "responses": {
  359. "200": {
  360. "description": "OK",
  361. "schema": {
  362. "originalRef": "Result",
  363. "$ref": "#/definitions/Result"
  364. }
  365. },
  366. "401": {
  367. "description": "Unauthorized"
  368. },
  369. "403": {
  370. "description": "Forbidden"
  371. },
  372. "404": {
  373. "description": "Not Found"
  374. }
  375. },
  376. "security": [{
  377. "Authorization": ["global"]
  378. }],
  379. "deprecated": false,
  380. "x-order": "2147483647"
  381. }
  382. },
  383. "/api/personal/workByMonthDetail": {
  384. "post": {
  385. "tags": ["个人使用"],
  386. "summary": "月详情(date:当月日期:yyyy-MM-dd)",
  387. "description": "多参数查询工时",
  388. "operationId": "effortByMonthExcelUsingPOST",
  389. "consumes": ["application/json"],
  390. "produces": ["*/*"],
  391. "parameters": [{
  392. "in": "body",
  393. "name": "param",
  394. "description": "param",
  395. "required": true,
  396. "schema": {
  397. "originalRef": "PersonalPageDto",
  398. "$ref": "#/definitions/PersonalPageDto"
  399. }
  400. }],
  401. "responses": {
  402. "200": {
  403. "description": "OK",
  404. "schema": {
  405. "originalRef": "Result«DetailVo»",
  406. "$ref": "#/definitions/Result«DetailVo»"
  407. }
  408. },
  409. "201": {
  410. "description": "Created"
  411. },
  412. "401": {
  413. "description": "Unauthorized"
  414. },
  415. "403": {
  416. "description": "Forbidden"
  417. },
  418. "404": {
  419. "description": "Not Found"
  420. }
  421. },
  422. "security": [{
  423. "Authorization": ["global"]
  424. }],
  425. "deprecated": false,
  426. "x-order": "2147483647"
  427. }
  428. }
  429. },
  430. "securityDefinitions": {
  431. "Authorization": {
  432. "type": "apiKey",
  433. "name": "token",
  434. "in": "header"
  435. }
  436. },
  437. "definitions": {
  438. "DeptDto": {
  439. "type": "object",
  440. "required": ["date", "deptId"],
  441. "properties": {
  442. "date": {
  443. "type": "string",
  444. "description": "日期,yyyy-MM-dd"
  445. },
  446. "deptId": {
  447. "type": "string",
  448. "description": "部门id"
  449. }
  450. },
  451. "title": "DeptDto"
  452. },
  453. "DeptPageDto": {
  454. "type": "object",
  455. "required": ["date", "deptId"],
  456. "properties": {
  457. "date": {
  458. "type": "string",
  459. "description": "日期,yyyy-MM-dd"
  460. },
  461. "deptId": {
  462. "type": "string",
  463. "description": "部门id"
  464. },
  465. "pageNum": {
  466. "type": "integer",
  467. "format": "int32",
  468. "description": "起始页码,默认0为第一页"
  469. },
  470. "pageSize": {
  471. "type": "integer",
  472. "format": "int32",
  473. "description": "每页数量"
  474. },
  475. "searchKey": {
  476. "type": "string",
  477. "description": "搜索条件"
  478. }
  479. },
  480. "title": "DeptPageDto"
  481. },
  482. "DetailVo": {
  483. "type": "object",
  484. "properties": {
  485. "account": {
  486. "type": "string",
  487. "description": "账号"
  488. },
  489. "code": {
  490. "type": "string",
  491. "description": "项目号"
  492. },
  493. "consumed": {
  494. "type": "string",
  495. "description": "消耗时间, 单位是小时"
  496. },
  497. "date": {
  498. "type": "string",
  499. "format": "date-time",
  500. "description": "日期"
  501. },
  502. "deptId": {
  503. "type": "string",
  504. "description": "部门id"
  505. },
  506. "deptName": {
  507. "type": "string",
  508. "description": "部门名称"
  509. },
  510. "project": {
  511. "type": "integer",
  512. "format": "int32",
  513. "description": "项目id"
  514. },
  515. "projectName": {
  516. "type": "string",
  517. "description": "项目名称"
  518. },
  519. "realname": {
  520. "type": "string",
  521. "description": "真实姓名"
  522. },
  523. "slack": {
  524. "type": "string",
  525. "description": "工号"
  526. },
  527. "task": {
  528. "type": "string",
  529. "description": "任务号"
  530. }
  531. },
  532. "title": "DetailVo"
  533. },
  534. "FinanceMonthVo": {
  535. "type": "object",
  536. "properties": {
  537. "account": {
  538. "type": "string",
  539. "description": "账号"
  540. },
  541. "code": {
  542. "type": "string",
  543. "description": "项目号"
  544. },
  545. "consumed": {
  546. "type": "string",
  547. "description": "消耗时间, 单位是天"
  548. },
  549. "deptName": {
  550. "type": "string",
  551. "description": "部门名称"
  552. },
  553. "projectName": {
  554. "type": "string",
  555. "description": "项目名称"
  556. },
  557. "realname": {
  558. "type": "string",
  559. "description": "真实姓名"
  560. },
  561. "slack": {
  562. "type": "string",
  563. "description": "工号"
  564. },
  565. "task": {
  566. "type": "string",
  567. "description": "任务号"
  568. }
  569. },
  570. "title": "FinanceMonthVo"
  571. },
  572. "MonthVo": {
  573. "type": "object",
  574. "properties": {
  575. "account": {
  576. "type": "string",
  577. "description": "账号"
  578. },
  579. "consumed": {
  580. "type": "string",
  581. "description": "消耗时间, 单位是天"
  582. },
  583. "date": {
  584. "type": "string",
  585. "format": "date-time",
  586. "description": "日期"
  587. },
  588. "deptName": {
  589. "type": "string",
  590. "description": "部门名称"
  591. },
  592. "realname": {
  593. "type": "string",
  594. "description": "真实姓名"
  595. }
  596. },
  597. "title": "MonthVo"
  598. },
  599. "PersonalPageDto": {
  600. "type": "object",
  601. "required": ["date"],
  602. "properties": {
  603. "account": {
  604. "type": "string",
  605. "description": "账号"
  606. },
  607. "date": {
  608. "type": "string",
  609. "description": "日期,yyyy-MM-dd"
  610. },
  611. "pageNum": {
  612. "type": "integer",
  613. "format": "int32",
  614. "description": "起始页码,默认0为第一页"
  615. },
  616. "pageSize": {
  617. "type": "integer",
  618. "format": "int32",
  619. "description": "每页数量"
  620. },
  621. "searchKey": {
  622. "type": "string",
  623. "description": "搜索条件"
  624. }
  625. },
  626. "title": "PersonalPageDto"
  627. },
  628. "Result": {
  629. "type": "object",
  630. "properties": {
  631. "code": {
  632. "type": "integer",
  633. "format": "int32",
  634. "description": "处理状态:0: 成功, 1: 失败"
  635. },
  636. "data": {
  637. "type": "object",
  638. "description": "返回数据"
  639. },
  640. "msg": {
  641. "type": "string",
  642. "description": "消息"
  643. }
  644. },
  645. "title": "Result"
  646. },
  647. "Result«DetailVo»": {
  648. "type": "object",
  649. "properties": {
  650. "code": {
  651. "type": "integer",
  652. "format": "int32",
  653. "description": "处理状态:0: 成功, 1: 失败"
  654. },
  655. "data": {
  656. "description": "返回数据",
  657. "originalRef": "DetailVo",
  658. "$ref": "#/definitions/DetailVo"
  659. },
  660. "msg": {
  661. "type": "string",
  662. "description": "消息"
  663. }
  664. },
  665. "title": "Result«DetailVo»"
  666. },
  667. "Result«FinanceMonthVo»": {
  668. "type": "object",
  669. "properties": {
  670. "code": {
  671. "type": "integer",
  672. "format": "int32",
  673. "description": "处理状态:0: 成功, 1: 失败"
  674. },
  675. "data": {
  676. "description": "返回数据",
  677. "originalRef": "FinanceMonthVo",
  678. "$ref": "#/definitions/FinanceMonthVo"
  679. },
  680. "msg": {
  681. "type": "string",
  682. "description": "消息"
  683. }
  684. },
  685. "title": "Result«FinanceMonthVo»"
  686. },
  687. "Result«MonthVo»": {
  688. "type": "object",
  689. "properties": {
  690. "code": {
  691. "type": "integer",
  692. "format": "int32",
  693. "description": "处理状态:0: 成功, 1: 失败"
  694. },
  695. "data": {
  696. "description": "返回数据",
  697. "originalRef": "MonthVo",
  698. "$ref": "#/definitions/MonthVo"
  699. },
  700. "msg": {
  701. "type": "string",
  702. "description": "消息"
  703. }
  704. },
  705. "title": "Result«MonthVo»"
  706. }
  707. }
  708. }