index.adoc 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. = 考勤分析
  2. [width="100%",options="header"]
  3. [stripes=even]
  4. |====================
  5. |Version | Update Time | Status | Author | Description
  6. |0.0.1|2022-09-20 09:50:00|创建文档|binguo|初始化接口文档
  7. |====================
  8. ==
  9. ==
  10. === 读取钉钉考勤excel原始数据,添加至数据库
  11. *URL:* http://192.168.161.34:8087/attendance/month/importMonth
  12. *Type:* POST
  13. *Content-Type:* multipart/form-data
  14. *Query-parameters:*
  15. [width="100%",options="header"]
  16. [stripes=even]
  17. |====================
  18. |Parameter | Type|Description|Required|Since
  19. |file|file|No comments found.|true|-
  20. |====================
  21. *Request-example:*
  22. ----
  23. curl -X POST -H 'Content-Type: multipart/form-data' -i http://192.168.161.34:8087/attendance/month/importMonth
  24. ----
  25. *Response-fields:*
  26. [width="100%",options="header"]
  27. [stripes=even]
  28. |====================
  29. |Field | Type|Description|Since
  30. |success|boolean|接口调用结果标识|-
  31. |message|string|接口调用结果信息|-
  32. |code|string|接口调用业务码|-
  33. |data|object|接口调用返回数据|-
  34. |====================
  35. *Response-example:*
  36. ----
  37. {
  38. "success": true,
  39. "message": "success",
  40. "code": "4224",
  41. "data": {
  42. "waring": "You may have used non-display generics."
  43. }
  44. }
  45. ----
  46. ==
  47. === 读取钉钉考勤excel原始数据,添加至数据库
  48. *URL:* http://192.168.161.34:8087/attendance/original/importOriginal
  49. *Type:* POST
  50. *Content-Type:* multipart/form-data
  51. *Query-parameters:*
  52. [width="100%",options="header"]
  53. [stripes=even]
  54. |====================
  55. |Parameter | Type|Description|Required|Since
  56. |file|file|No comments found.|true|-
  57. |====================
  58. *Request-example:*
  59. ----
  60. curl -X POST -H 'Content-Type: multipart/form-data' -i http://192.168.161.34:8087/attendance/original/importOriginal
  61. ----
  62. *Response-fields:*
  63. [width="100%",options="header"]
  64. [stripes=even]
  65. |====================
  66. |Field | Type|Description|Since
  67. |success|boolean|接口调用结果标识|-
  68. |message|string|接口调用结果信息|-
  69. |code|string|接口调用业务码|-
  70. |data|object|接口调用返回数据|-
  71. |====================
  72. *Response-example:*
  73. ----
  74. {
  75. "success": true,
  76. "message": "success",
  77. "code": "4224",
  78. "data": {
  79. "waring": "You may have used non-display generics."
  80. }
  81. }
  82. ----
  83. ==
  84. ===
  85. *URL:* http://192.168.161.34:8087/attendance/test/export
  86. *Type:* GET
  87. *Content-Type:* application/x-www-form-urlencoded;charset=utf-8
  88. *Request-example:*
  89. ----
  90. curl -X GET -i http://192.168.161.34:8087/attendance/test/export
  91. ----
  92. *Response-example:*
  93. ----
  94. Doesn't return a value.
  95. ----
  96. === 解析上传的.xls文件
  97. *URL:* http://192.168.161.34:8087/attendance/test/import
  98. *Type:* GET
  99. *Content-Type:* multipart/form-data
  100. *Query-parameters:*
  101. [width="100%",options="header"]
  102. [stripes=even]
  103. |====================
  104. |Parameter | Type|Description|Required|Since
  105. |file|file|No comments found.|true|-
  106. |====================
  107. *Request-example:*
  108. ----
  109. curl -X GET -H 'Content-Type: multipart/form-data' -i http://192.168.161.34:8087/attendance/test/import
  110. ----
  111. *Response-example:*
  112. ----
  113. Doesn't return a value.
  114. ----
  115. ==
  116. === 读取钉钉考勤excel原始数据,添加至数据库
  117. *URL:* http://192.168.161.34:8087/attendance/work/importWork
  118. *Type:* POST
  119. *Content-Type:* multipart/form-data
  120. *Query-parameters:*
  121. [width="100%",options="header"]
  122. [stripes=even]
  123. |====================
  124. |Parameter | Type|Description|Required|Since
  125. |file|file|No comments found.|true|-
  126. |====================
  127. *Request-example:*
  128. ----
  129. curl -X POST -H 'Content-Type: multipart/form-data' -i http://192.168.161.34:8087/attendance/work/importWork
  130. ----
  131. *Response-fields:*
  132. [width="100%",options="header"]
  133. [stripes=even]
  134. |====================
  135. |Field | Type|Description|Since
  136. |success|boolean|接口调用结果标识|-
  137. |message|string|接口调用结果信息|-
  138. |code|string|接口调用业务码|-
  139. |data|object|接口调用返回数据|-
  140. |====================
  141. *Response-example:*
  142. ----
  143. {
  144. "success": true,
  145. "message": "success",
  146. "code": "4224",
  147. "data": {
  148. "waring": "You may have used non-display generics."
  149. }
  150. }
  151. ----
  152. == 错误码列表
  153. [width="100%",options="header"]
  154. [stripes=even]
  155. |====================
  156. |Error code |Description
  157. |10000|系统未知异常
  158. |10001|参数格式校验失败
  159. |10002|body为空
  160. |10003|请求方法不支持
  161. |10004|数据已存在
  162. |10005|数据不存在
  163. |10006|无效的token
  164. |10007|参数异常
  165. |10008|没有操作权限
  166. |10009|管理员登录失败
  167. |10012|缺少必要的请求头
  168. |10013|缴费信息不存在
  169. |10014|订单不存在
  170. |10015|获取微信jsapi支付参数失败
  171. |10016|建行订单状态查询失败
  172. |10017|非建行支付订单
  173. |10018|农商行订单状态查询失败
  174. |10019|缴费年级不存在
  175. |10020|文件导入失败
  176. |10100|批量操作数据库失败
  177. |10021|付款金额错误
  178. |10022|缴费项目已存在
  179. |10025|缴费项目不存在
  180. |10023|id为空
  181. |10024|该缴费项目不支持导出TXT
  182. |10025|该缴费宿舍已缴费
  183. |10026|内容超长
  184. |10027|AES加密失败
  185. |10028|宿舍已缴费
  186. |10029|该订单的部分项目已支付,请前往首页重新支付
  187. |====================