operate.go 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991
  1. package docs
  2. /**
  3. * @api {POST} /api/v1/mop/applets-ecol-account/operation/login [C/S]运营方登陆接口
  4. * @apiGroup Applets Ecol Account
  5. * @apiVersion __API_VERSION__
  6. * @apiParam (RequestBody) {string} account 用户名
  7. * @apiParam (RequestBody) {string} password 登录密码(md5 32位加密)
  8. * @apiParam (RequestBody) {bool} isWeb 是否在web端登陆
  9. * @apiParamExample {json} Request-Example:
  10. * {
  11. * "account": "abc123456",
  12. * "password": "5cff6f7c4357ee0001c96fab",
  13. * "isWeb":true
  14. * }
  15. * @apiSuccessExample {json} Success Status:
  16. * HTTP/1.1 200 OK
  17. * {
  18. * "errcode": "OK",
  19. * "error": "",
  20. * "data": {
  21. * "traceId":"jaigjoajgiajg",//唯一id
  22. * "role":"admin", //角色
  23. * "phone":"jaogjaojgi",//电话
  24. * "jwtToken":"Jiajgoajgi",
  25. * "refreshToken":"5cff6f7c4357ee0001c96fac......",
  26. * "jwtTokenExpireTime":7200, //jwtToken有效时长,单位是秒
  27. * "env":"mop-fdep"
  28. * }
  29. * }
  30. * @apiErrorExample Error Status:
  31. * HTTP/1.1 !=200 服务端异常
  32. */
  33. /**
  34. * @api {GET} /api/v1/mop/applets-ecol-account/operation/reviewlist [C/S]运营方获取审核列表
  35. * @apiGroup Applets Ecol Account
  36. * @apiVersion __API_VERSION__
  37. * @apiParam {string} findData 公司账号或者公司名称
  38. * @apiParam {int} status 审核状态(0-全部 1-审核 2-未审核)
  39. * @apiParam {int} page 第几页
  40. * @apiParam {int} num 每页数量
  41. * @apiParamExample {json} Request-Example:
  42. * {
  43. * "status":1,
  44. * "findData":"mingcheng",
  45. * "page": 2,
  46. * "num": 15,
  47. * }
  48. * @apiSuccessExample {json} Success Status:
  49. * HTTP/1.1 200 OK
  50. * {
  51. * "errcode": "OK",
  52. * "error": "",
  53. * "data": {
  54. * "total":2,
  55. * "totalInfo": {
  56. * "allTotal": 2,
  57. * "hasReviewedNum": 2, //已经审核数量
  58. * "noReviewNum": 0 //未审核数量
  59. * },
  60. * "list":[
  61. * {
  62. * "name":"企业名称",
  63. * "account":"企业账号",
  64. * "applyTime":1573813430, //申请时间
  65. * "status":1, //审核状态 1-已审核 2-未审核
  66. * "Reviewer":"wangkang", //审核人 未审核时为空
  67. * "result":1, //审核结果 1-通过认证 2-驳回
  68. * "refuseReason":"test", //驳回原因
  69. * "createTime":1573813430, //创建时间
  70. * "updateTime":1573813430, //更新时间
  71. * "organId":"jaiojgiajg", //企业唯一id,根据该id可获取企业详情
  72. * "socialCreditCode":"123232424", //社会统一信用代码
  73. * "licenseNetdiskId":"afgagag", //资格证书
  74. * "authorizationNetdiskId":"agagag", //授权书
  75. * "adminInfo":{ //管理员信息
  76. * "name":"xingming",
  77. * "idCard":"610829382983984",
  78. * "phone":"jaogjaogjiajgiagji",
  79. * },
  80. * }
  81. * ]
  82. * }
  83. * @apiErrorExample Error Status:
  84. * HTTP/1.1 !=200 服务端异常
  85. */
  86. /**
  87. * @api {GET} /api/v1/mop/applets-ecol-account/operation/review/detail/:traceId [C/S]运营方获取审核信息详情
  88. * @apiGroup Applets Ecol Account
  89. * @apiVersion __API_VERSION__
  90. * @apiParam {String} traceId 审核信息的Id
  91. * @apiParamExample {CURL} Request-Example:
  92. * /api/v1/mop/applets-ecol-account/operation/review/detail/eiwaohoejojowjoajoeig
  93. * @apiSuccessExample {json} Success Status:
  94. * HTTP/1.1 200 OK
  95. * {
  96. * "errcode": "OK",
  97. * "error": "",
  98. * "data": {
  99. * "name":"企业名称",
  100. * "account":"企业账号",
  101. * "applyTime":1573813430, //申请时间
  102. * "status":1, //审核状态 1-已审核 2-未审核
  103. * "Reviewer":"wangkang", //审核人 未审核时为空
  104. * "result":1, //审核结果 1-通过认证 2-驳回
  105. * "refuseReason":"test", //驳回原因
  106. * "createTime":1573813430, //创建时间
  107. * "updateTime":1573813430, //更新时间
  108. * "organId":"jaiojgiajg", //企业唯一id,根据该id可获取企业详情
  109. * "socialCreditCode":"123232424", //社会统一信用代码
  110. * "licenseNetdiskId":"afgagag", //资格证书
  111. * "authorizationNetdiskId":"agagag", //授权书
  112. * "adminInfo":{ //管理员信息
  113. * "name":"xingming",
  114. * "idCard":"610829382983984",
  115. * "phone":"jaogjaogjiajgiagji",
  116. * }
  117. * }
  118. * }
  119. * @apiErrorExample Error Status:
  120. * HTTP/1.1 !=200 服务端异常
  121. */
  122. /**
  123. * @api {GET} /api/v1/mop/applets-ecol-account/operation/organ/:traceId [C/S]运营方获取企业账户详情
  124. * @apiGroup Applets Ecol Account
  125. * @apiVersion __API_VERSION__
  126. * @apiParam {string} traceId 对应ID
  127. * @apiParamExample {json} Request-Example:
  128. * /api/v1/mop/applets-ecol-account/operation/organ/jiajgoajgoaijgigj
  129. * @apiSuccessExample {json} Success Status:
  130. * HTTP/1.1 200 OK
  131. * {
  132. * "errcode": "OK",
  133. * "error": "",
  134. * "data": {
  135. * "info":{
  136. * "name":"finogeeks",
  137. * "account":"finogeeks123",
  138. * "accountStatus":1,
  139. * "socialCreditCode":"jaijgoajgoajg",
  140. * "licenseNetdiskId":"jaogaoijgoajg",
  141. * "authorizationNetdiskId":"jaojaij",
  142. * "createTime":,
  143. * "updateTime":,
  144. * "adminInfo":{
  145. * "name":"wangkang",
  146. * "idCard":"6108765566",
  147. * "phone":"123234567"
  148. * }
  149. * }
  150. * @apiErrorExample Error Status:
  151. * HTTP/1.1 !=200 服务端异常
  152. */
  153. /**
  154. * @api {GET} /api/v1/mop/applets-ecol-account/operation/organlist [C/S]运营方获取企业列表
  155. * @apiGroup Applets Ecol Account
  156. * @apiVersion __API_VERSION__
  157. * @apiParam {string} type 拉取类型 appid管理为"appidManage" organ管理为"organManage"
  158. * @apiParam {string} findData 公司账号或者公司名称
  159. * @apiParam {int} accountStatus 企业状态(0-全部 1-审核中 2-未认证 3-已认证 4-已过期 5-已冻结)
  160. * @apiParam {int} page 第几页
  161. * @apiParam {int} num 每页数量
  162. * @apiParamExample {json} Request-Example:
  163. * {
  164. * "status":1,
  165. * "findData":"mingcheng",
  166. * "page": 2,
  167. * "num": 15,
  168. * }
  169. * @apiSuccessExample {json} Success Status:
  170. * HTTP/1.1 200 OK
  171. * {
  172. * "errcode": "OK",
  173. * "error": "",
  174. * "data": {
  175. * "total":15,
  176. * "totalInfo":{
  177. * "allTotal":15, //总数
  178. * "reviewingNum":1, //审核中
  179. * "noApporeNum":2, //未认证
  180. * "hasApporeNum":3, //已认证
  181. * "expiredNum":4, //已过期
  182. * "hasFreeNum":5 //已冻结
  183. * },
  184. * "list":[
  185. * {
  186. * "name":"企业名称",
  187. * "account":"企业账号",
  188. * "accountStatus":2, //企业状态 1-审核中 2-未认证 3-已认证 4-已过期 5-已冻结
  189. * "socialCreditCode":"123456788", //社会统一信用代码
  190. * "authorizationNetdiskId":"1234567jigj", //资格证书
  191. * "LicenseNetdiskId":"jjajigjaogji", //企业营业执照网盘ID
  192. * "refuseReason":"test", //驳回原因
  193. * "expireDate":1573813430, //过期时间
  194. * "createTime":1573813430, //创建时间
  195. * "updateTime":1573813430, //更新时间
  196. * "adminInfo":{ //企业管理员信息
  197. * "name":"xiangcun",
  198. * "idCard":"666671786283768657",
  199. * "phone":"178273648264"
  200. * },
  201. * "appidInfo":{
  202. * "allowApplyIdNum":10, //允许申请的appid数量上限
  203. * "hasApplyIdNum"3, //已经申请的appid数量
  204. * "upNumOper":"wangkang", //更新申请数量的工作人员
  205. * "upNumTime":15902923095 //更新申请数量的时间(时间戳)
  206. * }
  207. * }
  208. * ]
  209. * }
  210. * @apiErrorExample Error Status:
  211. * HTTP/1.1 !=200 服务端异常
  212. */
  213. /**
  214. * @api {post} /api/v1/mop/applets-ecol-account/operation/organ/update [C/S]运营方修改企业信息
  215. * @apiGroup Applets Ecol Account
  216. * @apiVersion __API_VERSION__
  217. * @apiParam (RequestBody){string} traceId 企业id
  218. * @apiParam (RequestBody){array} upData 更新的信息
  219. * @apiParamExample {json} Request-Example:
  220. * {
  221. * "traceId":"",
  222. * "upData":[
  223. * {"key":"allowApplyIdNum","value":1}, //更新appid上限的时候填这个就可以了
  224. * {"key":"hasApplyIdNum","value":2}
  225. * ]
  226. * }
  227. * @apiSuccessExample {json} Success Status:
  228. * HTTP/1.1 200 OK
  229. * {
  230. * "errcode": "OK",
  231. * "error": "",
  232. * "data": {
  233. *
  234. * }
  235. * @apiErrorExample Error Status:
  236. * HTTP/1.1 !=200 服务端异常
  237. */
  238. /**
  239. * @api {POST} /api/v1/mop/applets-ecol-account/operation/organ/add-appid-num [C/S]运营方增加企业已经使用的appid数量
  240. * @apiGroup Applets Ecol Account
  241. * @apiVersion __API_VERSION__
  242. * @apiParam (RequestBody){string} traceId 企业id
  243. * @apiParam (RequestBody){int} num 添加的数量
  244. * @apiParamExample {json} Request-Example:
  245. * {
  246. * "traceId":"agagahahjaojgiagj",
  247. * "num":1,
  248. * }
  249. * @apiSuccessExample {json} Success Status:
  250. * HTTP/1.1 200 OK
  251. * {
  252. * "errcode": "OK",
  253. * "error": "",
  254. * "data": {
  255. *
  256. * }
  257. * @apiErrorExample Error Status:
  258. * HTTP/1.1 !=200 服务端异常
  259. */
  260. /**
  261. * @api {POST} /api/v1/mop/applets-ecol-account/operation/review [C/S]运营方认证企业
  262. * @apiGroup Applets Ecol Account
  263. * @apiVersion __API_VERSION__
  264. * @apiParam (RequestBody) {string} traceId 成员id
  265. * @apiParam (RequestBody) {int} status 1-通过认证 2-驳回
  266. * @apiParam (RequestBody) {string} reason 驳回原因
  267. * @apiParamExample {json} Request-Example:
  268. * {
  269. * "traceId": "abc123456",
  270. * "status":2,
  271. * "reason":"图片模糊",
  272. * }
  273. * @apiSuccessExample {json} Success Status:
  274. * HTTP/1.1 200 OK
  275. * {
  276. * "errcode": "OK",
  277. * "error": "",
  278. * "data": {
  279. * }
  280. * }
  281. * @apiErrorExample Error Status:
  282. * HTTP/1.1 !=200 服务端异常
  283. */
  284. /**
  285. * @api {PUT} /api/v1/mop/applets-ecol-account/operation/deal/organ [C/S]运营方冻结/解冻企业账号
  286. * @apiGroup Applets Ecol Account
  287. * @apiVersion __API_VERSION__
  288. * @apiParam (RequestBody) {string} traceId id
  289. * @apiParam (RequestBody) {int} status 冻结-1 解冻-2
  290. * @apiParamExample {json} Request-Example:
  291. * {
  292. * "id": "abc123456",
  293. * "status":1
  294. * }
  295. * @apiSuccessExample {json} Success Status:
  296. * HTTP/1.1 200 OK
  297. * {
  298. * "errcode": "OK",
  299. * "error": "",
  300. * "data": {
  301. * }
  302. * }
  303. * @apiErrorExample Error Status:
  304. * HTTP/1.1 !=200 服务端异常
  305. */
  306. /**
  307. * @api {GET} /api/v1/mop/applets-ecol-account/operation/workerlist [C/S]运营方获取工作人员列表
  308. * @apiGroup Applets Ecol Account
  309. * @apiVersion __API_VERSION__
  310. * @apiParam {string} findData 电话号/姓名(支持模糊查询)
  311. * @apiParam {int} page 第几页
  312. * @apiParam {int} num 每页数量
  313. * @apiParamExample {json} Request-Example:
  314. * {
  315. * "name":"wangkang",
  316. * "phone":"1234567",
  317. * "page": 2,
  318. * "num": 15
  319. * }
  320. * @apiSuccessExample {json} Success Status:
  321. * HTTP/1.1 200 OK
  322. * {
  323. * "errcode": "OK",
  324. * "error": "",
  325. * "data": {
  326. "total":2,
  327. "list":[
  328. {
  329. "phone":"111111111",
  330. "account":"zhangsan123",
  331. "createTime":"2019-09-09 18:02:01"
  332. },
  333. {
  334. "phone":"111111111",
  335. "account":"zhangsan123",
  336. "createTime":"2019-09-09 18:02:01"
  337. }
  338. ],
  339. "exp":""
  340. * }
  341. * }
  342. * @apiErrorExample Error Status:
  343. * HTTP/1.1 !=200 服务端异常
  344. */
  345. /**
  346. * @api {GET} /api/v1/mop/applets-ecol-account/operation/worker/detail/:workerId [C/S]运营方获取工作人员详情
  347. * @apiGroup Applets Ecol Account
  348. * @apiVersion __API_VERSION__
  349. * @apiParam {string} workerId 人员id
  350. * @apiParamExample {json} Request-Example:
  351. * {
  352. * }
  353. * @apiSuccessExample {json} Success Status:
  354. * HTTP/1.1 200 OK
  355. * {
  356. * "errcode": "OK",
  357. * "error": "",
  358. * "data": {
  359. "info":
  360. {
  361. "name":"zhnagsan",
  362. "phone":"111111111",
  363. "account":"zhangsan123",
  364. "email":"www@jaojgia.com",
  365. "idCard":"jaojiajgiaojgigi",
  366. }
  367. * }
  368. * }
  369. * @apiErrorExample Error Status:
  370. * HTTP/1.1 !=200 服务端异常
  371. */
  372. /**
  373. * @api {POST} /api/v1/mop/applets-ecol-account/operation/worker/add [C/S]运营方增加运营成员
  374. * @apiGroup Applets Ecol Account
  375. * @apiVersion __API_VERSION__
  376. * @apiParam (RequestBody) {string} account 账号
  377. * @apiParam (RequestBody) {string} password 登录密码(md5 32位加密)
  378. * @apiParam (RequestBody) {string} phone 电话号
  379. * @apiParamExample {json} Request-Example:
  380. * {
  381. * "account":"lisi123",
  382. * "password": "5cff6f7c4357ee0001c96fab",
  383. * "phone":"12344556777"
  384. * }
  385. * @apiSuccessExample {json} Success Status:
  386. * HTTP/1.1 200 OK
  387. * {
  388. * "errcode": "OK",
  389. * "error": "",
  390. * "data": {
  391. * }
  392. * }
  393. * @apiErrorExample Error Status:
  394. * HTTP/1.1 !=200 服务端异常
  395. */
  396. /**
  397. * @api {delete} /api/v1/mop/applets-ecol-account/operation/worker [C/S]运营方删除运营成员
  398. * @apiGroup Applets Ecol Account
  399. * @apiVersion __API_VERSION__
  400. * @apiParam (RequestBody) {string} list 成员id列表
  401. * @apiParamExample {json} Request-Example:
  402. * {
  403. * "list": ["abc123456","bsc98765"]
  404. * }
  405. * @apiSuccessExample {json} Success Status:
  406. * HTTP/1.1 200 OK
  407. * {
  408. * "errcode": "OK",
  409. * "error": "",
  410. * "data": {
  411. * }
  412. * }
  413. * @apiErrorExample Error Status:
  414. * HTTP/1.1 !=200 服务端异常
  415. */
  416. /**
  417. * @api {PUT} /api/v1/mop/applets-ecol-account/operation/worker [C/S]运营方修改运营成员
  418. * @apiGroup Applets Ecol Account
  419. * @apiVersion __API_VERSION__
  420. * @apiParam (RequestBody) {string} traceId 成员id
  421. * @apiParam (RequestBody) {string} account 账号
  422. * @apiParam (RequestBody) {string} phone 电话号(加密)
  423. * @apiParam (RequestBody) {string} verifyCode 旧的验证码
  424. * @apiParam (RequestBody) {string} newVerifyCode 新的验证码
  425. * @apiParamExample {json} Request-Example:
  426. * {
  427. * "id":"joajgoajgiaojgoaijg",
  428. * "account":"lisi123",
  429. * "phone":"12344556777",
  430. * "verifyCode":"850822",
  431. * "newVerifyCode":"850822"
  432. * }
  433. * @apiSuccessExample {json} Success Status:
  434. * HTTP/1.1 200 OK
  435. * {
  436. * "errcode": "OK",
  437. * "error": "",
  438. * "data": {
  439. * }
  440. * }
  441. * @apiErrorExample Error Status:
  442. * HTTP/1.1 !=200 服务端异常
  443. */
  444. /**
  445. * @api {PUT} /api/v1/mop/applets-ecol-account/operation/worker/deal [C/S]运营方冻结/解冻运营成员
  446. * @apiGroup Applets Ecol Account
  447. * @apiVersion __API_VERSION__
  448. * @apiParam (RequestBody) {string} traceId 成员id
  449. * @apiParam (RequestBody) {int} status 冻结-1 解冻-2
  450. * @apiParamExample {json} Request-Example:
  451. * {
  452. * "id": "abc123456",
  453. * "status":1
  454. * }
  455. * @apiSuccessExample {json} Success Status:
  456. * HTTP/1.1 200 OK
  457. * {
  458. * "errcode": "OK",
  459. * "error": "",
  460. * "data": {
  461. * }
  462. * }
  463. * @apiErrorExample Error Status:
  464. * HTTP/1.1 !=200 服务端异常
  465. */
  466. /**
  467. * @api {PUT} /api/v1/mop/applets-ecol-account/operation/worker/reset/password [C/S]运营方重置运营成员密码
  468. * @apiGroup Applets Ecol Account
  469. * @apiVersion __API_VERSION__
  470. * @apiParam (RequestBody) {string} traceId 成员id
  471. * @apiParamExample {json} Request-Example:
  472. * {
  473. * "traceId":"joajgoajgiaojgoaijg",
  474. * }
  475. * @apiSuccessExample {json} Success Status:
  476. * HTTP/1.1 200 OK
  477. * {
  478. * "errcode": "OK",
  479. * "error": "",
  480. * "data": {
  481. * }
  482. * }
  483. * @apiErrorExample Error Status:
  484. * HTTP/1.1 !=200 服务端异常
  485. */
  486. /**
  487. * @api {GET} /api/v1/mop/applets-ecol-account/operation/worker/phone/verify-code [C/S]运营方获取验证码
  488. * @apiGroup Applets Ecol Account
  489. * @apiVersion __API_VERSION__
  490. * @apiParam {string} traceId 忘记密码时为空
  491. * @apiParam {string} type 忘记密码时填"forget",确认修改成员信息时填"submit_modify"
  492. * @apiParam {string} phone 加密之后的phone
  493. * @apiParamExample {json} Request-Example:
  494. * {
  495. * "traceId":"",
  496. * "type":"forget",
  497. * "phone":"joajgoiajgoijoajiogjiagj"
  498. * }
  499. * @apiSuccessExample {json} Success Status:
  500. * HTTP/1.1 200 OK
  501. * {
  502. * "errcode": "OK",
  503. * "error": "",
  504. * "data": {
  505. * }
  506. * }
  507. * @apiErrorExample Error Status:
  508. * HTTP/1.1 !=200 服务端异常
  509. */
  510. /**
  511. * @api {GET} /api/v1/mop/applets-ecol-account/operation/worker/phone/check-code [C/S]运营方校验验证码
  512. * @apiGroup Applets Ecol Account
  513. * @apiVersion __API_VERSION__
  514. * @apiParam {string} type 校验类型("modify":确认修改身份)
  515. * @apiParam {string} phone 电话
  516. * @apiParam {string} verifyCode 验证码
  517. * @apiParamExample {json} Request-Example:
  518. * {
  519. * "type":"modify",
  520. * "phone":"oajgoajgiajgoajigoijgaoi",
  521. * "verifyCode":"12346",
  522. * }
  523. * @apiSuccessExample {json} Success Status:
  524. * HTTP/1.1 200 OK
  525. * {
  526. * "errcode": "OK",
  527. * "error": "",
  528. * "data": {
  529. * }
  530. * }
  531. * @apiErrorExample Error Status:
  532. * HTTP/1.1 !=200 服务端异常
  533. */
  534. /**
  535. * @api {PUT} /api/v1/mop/applets-ecol-account/operation/worker/forgot/password [C/S]运营方忘记密码修改密码
  536. * @apiGroup Applets Ecol Account
  537. * @apiVersion __API_VERSION__
  538. * @apiParam (RequestBody) {string} phone 电话(加密)
  539. * @apiParam (RequestBody) {string} newPassword 新密码(加密)
  540. * @apiParam (RequestBody) {string} verifyCode 验证码
  541. * @apiParamExample {json} Request-Example:
  542. * {
  543. * "phone":"oajgioajgoajgioagj",
  544. * "newPassword":"jaogjioajgiogj",
  545. * "verifyCode":"77879"
  546. * }
  547. * @apiSuccessExample {json} Success Status:
  548. * HTTP/1.1 200 OK
  549. * {
  550. * "errcode": "OK",
  551. * "error": "",
  552. * "data": {
  553. * }
  554. * }
  555. * @apiErrorExample Error Status:
  556. * HTTP/1.1 !=200 服务端异常
  557. */
  558. /**
  559. * @api {PUT} /api/v1/mop/applets-ecol-account/worker/owner/up-phone [C/S]运营方登陆人员修改手机号
  560. * @apiGroup Applets Ecol Account
  561. * @apiVersion __API_VERSION__
  562. * @apiParam (RequestBody) {string} verifyCode 验证码
  563. * @apiParam (RequestBody) {string} oldPhone 旧电话
  564. * @apiParam (RequestBody) {string} newPhone 新电话
  565. * @apiParamExample {json} Request-Example:
  566. * {
  567. * "verifyCode":"123123",
  568. * "oldPhoen": "12344556777",
  569. * "newPhone":"12344556777"
  570. * }
  571. * @apiSuccessExample {json} Success Status:
  572. * HTTP/1.1 200 OK
  573. * {
  574. * "errcode": "OK",
  575. * "error": "",
  576. * "data": {
  577. * }
  578. * }
  579. * @apiErrorExample Error Status:
  580. * HTTP/1.1 !=200 服务端异常
  581. */
  582. /**
  583. * @api {PUT} /api/v1/mop/applets-ecol-account/operation/worker/update/password [C/S]运营方修改账号密码
  584. * @apiGroup Applets Ecol Account
  585. * @apiVersion __API_VERSION__
  586. * @apiParam (RequestBody) {string} type 类型("admin" 与 "owner")
  587. * @apiParam (RequestBody) {string} traceId 类型为"owner"为""
  588. * @apiParam (RequestBody) {string} oldPassword 旧密码
  589. * @apiParam (RequestBody) {string} newPassword 新密码
  590. * @apiParamExample {json} Request-Example:
  591. * {
  592. * "type":"owner",
  593. * "traceId":"",
  594. * "oldPassword": "12344556777",
  595. * "newPassword":" 12344556777"
  596. * }
  597. * @apiSuccessExample {json} Success Status:
  598. * HTTP/1.1 200 OK
  599. * {
  600. * "errcode": "OK",
  601. * "error": "",
  602. * "data": {
  603. * }
  604. * }
  605. * @apiErrorExample Error Status:
  606. * HTTP/1.1 !=200 服务端异常
  607. */
  608. /**
  609. * @api {GET} /api/v1/mop/applets-ecol-account/operation/digital [C/S]获取企业统计数据
  610. * @apiGroup Applets Ecol Account
  611. * @apiVersion __API_VERSION__
  612. * @apiParam {string} pullType 拉取类型,用逗号分割
  613. * @apiParam {int64} pullTime 拉取时间
  614. * @apiParamExample {json} Request-Example:
  615. * {
  616. * //accCertCom-认证企业,accReviewCom-审核企业,accExpirCom-过期企业,accFreeCom-冻结企业,accHasCertCom-已认证、accNoCertCom未认证、accInReviewCom-审核中
  617. * "pullType":"accCertCom,accReviewCom,accExpirCom,accFreeCom",
  618. * "pullTime":"forget"
  619. * }
  620. * @apiSuccessExample {json} Success Status:
  621. * HTTP/1.1 200 OK
  622. * {
  623. * "errcode": "OK",
  624. * "error": "",
  625. * "data": {
  626. * "accCertCom":12,
  627. * "accReviewCom":10,
  628. * "accExpirCom":1",
  629. * "accFreeCom":1
  630. * }
  631. * }
  632. * @apiErrorExample Error Status:
  633. * HTTP/1.1 !=200 服务端异常
  634. */
  635. /**
  636. * @api {GET} /api/v1/mop/applets-ecol-account/operation/auth/check [C/S]运营方权限校验
  637. * @apiGroup Applets Ecol Account
  638. * @apiVersion __API_VERSION__
  639. * @apiParam {string} account 没有前缀的账号
  640. * @apiParam {string} auth 权限
  641. * @apiParamExample {json} Request-Example:
  642. * {
  643. * "account":"wangkang",
  644. * "auth":"addWorker"
  645. * }
  646. * @apiSuccessExample {json} Success Status:
  647. * HTTP/1.1 200 OK
  648. * {
  649. * "errcode": "OK",
  650. * "error": "",
  651. * "data": {
  652. * "hasAuth":true //bool true-有权限 false-无权限
  653. * }
  654. * @apiErrorExample Error Status:
  655. * HTTP/1.1 !=200 服务端异常
  656. */
  657. /**
  658. * @api {GET} /api/v1/mop/applets-ecol-account/operation/ftHelper/test-url [C/S]凡泰助手添加url时测试url是否可用接口
  659. * @apiGroup Applets Ecol Account
  660. * @apiVersion __API_VERSION__
  661. * @apiParamExample {json} Request-Example:
  662. * {}
  663. * @apiSuccessExample {json} Success Status:
  664. * HTTP/1.1 200 OK
  665. * {
  666. * "data": {
  667. * "result": "OK"
  668. * },
  669. * "errcode": "OK",
  670. * "error": ""
  671. * }
  672. * @apiErrorExample Error Status:
  673. * HTTP/1.1 !=200 服务端异常
  674. */
  675. /**
  676. * @api {GET} /api/v1/mop/applets-ecol-account/operation/ftHelper/test-jwt-valid [C/S]凡泰助手测试jwt是否失效接口
  677. * @apiGroup Applets Ecol Account
  678. * @apiVersion __API_VERSION__
  679. * @apiParam {Header} Authorization jwt(参数形式:Bearer+空格+jwt)
  680. * @apiParamExample {TXT} Request-Example:
  681. * /api/v1/mop/applets-ecol-account/operation/ftHelper/testJwtVaild
  682. * req.Header.Add("Authorization", "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1Nz...")
  683. * @apiSuccessExample {json} Success Status:
  684. * HTTP/1.1 200 OK
  685. * {
  686. * "data": {
  687. * "result": "OK"
  688. * },
  689. * "errcode": "OK",
  690. * "error": ""
  691. * }
  692. * @apiErrorExample Error Status:
  693. * HTTP/1.1 = 401 jwt缺失
  694. * HTTP/1.1 = 403 jwt失效
  695. */
  696. /**
  697. * @api {PUT} /api/v1/mop/applets-ecol-account/operation/limit [C/S]数量限制修改接口
  698. * @apiGroup Applets Ecol Account
  699. * @apiVersion __API_VERSION__
  700. * @apiParam (RequestBody){String="appId","binding","member"} type 修改类型 appId:appid数量 binding:应用数量 member:工作成员
  701. * @apiParam (RequestBody){Bool} needNotify=false 是否通知机构端
  702. * @apiParam (RequestBody){String} organId 机构Id
  703. * @apiParam (RequestBody){Number} upNum 修改的数量
  704. * @apiParamExample {JSON} Request-Example:
  705. * {
  706. * "type":"bind",
  707. * "needNotify":true,
  708. * "organId":"5e4bdb7e7af379000120f7e6",
  709. * "upNum":13
  710. * }
  711. * @apiSuccessExample {json} Success Status:
  712. * HTTP/1.1 200 OK
  713. * {
  714. * "data": {},
  715. * "errcode": "OK",
  716. * "error": ""
  717. *}
  718. * @apiErrorExample Error Status:
  719. * HTTP/1.1 != 200 服务端异常
  720. */
  721. /**
  722. * @api {GET} /api/v1/mop/applets-ecol-account/operation/limit/appId [C/S]获取小程序数量限制列表
  723. * @apiGroup Applets Ecol Account
  724. * @apiVersion __API_VERSION__
  725. * @apiParam {string} searchTxt 查找条件-匹配企业名称
  726. * @apiParam {Number} pageNo=1 页数(从1开始)
  727. * @apiParam {Number} pageSize=50 每页数量
  728. * @apiParamExample {CURL} Request-Example:
  729. * /api/v1/mop/applets-ecol-account/operation/limit/appId?serarchTxt=test&pageNo=1&pageSize=10
  730. * @apiSuccessExample {json} Success Status:
  731. * HTTP/1.1 200 OK
  732. * {
  733. * "data": {
  734. * "total": 9,
  735. * "list": [
  736. * {
  737. * "organId": "5e45f039a63c7c00019adc01",
  738. * "organName": "验证码错误",
  739. * "limitNum": 10,
  740. * "hasUseNum": 0,
  741. * "upMember": "",
  742. * "upTimestamp": 1581641785
  743. * }
  744. * ]
  745. * },
  746. * "errcode": "OK",
  747. * "error": ""
  748. * }
  749. * @apiErrorExample Error Status:
  750. * HTTP/1.1 !=200 服务端异常
  751. */
  752. /**
  753. * @api {GET} /api/v1/mop/applets-ecol-account/operation/limit/binding [C/S]获取应用限制列表
  754. * @apiGroup Applets Ecol Account
  755. * @apiVersion __API_VERSION__
  756. * @apiParam {string} searchTxt 查找条件-匹配企业名称
  757. * @apiParam {Number} pageNo=1 页数(从1开始)
  758. * @apiParam {Number} pageSize=50 每页数量
  759. * @apiParamExample {CURL} Request-Example:
  760. * /api/v1/mop/applets-ecol-account/operation/limit/binding?serarchTxt=test&pageNo=1&pageSize=10
  761. * @apiSuccessExample {json} Success Status:
  762. * HTTP/1.1 200 OK
  763. * {
  764. * "data": {
  765. * "total": 9,
  766. * "list": [
  767. * {
  768. * "organId": "5e45f039a63c7c00019adc01",
  769. * "organName": "验证码错误",
  770. * "limitNum": 10,
  771. * "hasUseNum": 0,
  772. * "upMember": "",
  773. * "upTimestamp": 1581641785
  774. * }
  775. * ]
  776. * },
  777. * "errcode": "OK",
  778. * "error": ""
  779. * }
  780. * @apiErrorExample Error Status:
  781. * HTTP/1.1 !=200 服务端异常
  782. */
  783. /**
  784. * @api {GET} /api/v1/mop/applets-ecol-account/operation/limit/add-check [C/S]数量限制修改校验
  785. * @apiGroup Applets Ecol Account
  786. * @apiVersion __API_VERSION__
  787. * @apiParam {string="appId","binding","member"} type 修改类型 appId:appid数量 binding:应用数量 member:工作成员
  788. * @apiParam {string} organId 机构Id
  789. * @apiParam {Number} addNum 增加的数量
  790. * @apiParamExample {CURL} Request-Example:
  791. * /api/v1/mop/applets-ecol-account/operation/limit/addCheck?type=appId&organId=jiajgoagji&addNum=1
  792. * @apiSuccessExample {json} Success Status:
  793. * HTTP/1.1 200 OK
  794. * {
  795. * "data": {},
  796. * "errcode": "OK",
  797. * "error": ""
  798. *}
  799. * @apiErrorExample Error Status:
  800. * HTTP/1.1 != 200 服务端异常
  801. * appId超出限制错误码: FC_OPERA_LIMIT_APPID_OVER_ERROR,
  802. * binding超出限制错误码: FC_OPERA_LIMIT_BIND_OVER_ERROR,
  803. * member超出限制错误码: FC_OPERA_LIMIT_MEMBER_OVER_ERROR
  804. */
  805. /**
  806. * @api {GET} /api/v1/mop/applets-ecol-account/operation/personal/list [C/S]获取个人账户列表
  807. * @apiGroup Applets Ecol Account
  808. * @apiVersion __API_VERSION__
  809. * @apiParam {string} searchTxt 电话号/邮箱(精确查找)
  810. * @apiParam {int} pageNo 第几页
  811. * @apiParam {int} pageSize 每页数量
  812. * @apiParamExample {CURL} Request-Example:
  813. * /api/v1/mop/applets-ecol-account/operation/personal/list?searchTxt=&pageNo=1&pageSize=10
  814. * @apiSuccessExample {json} Success Status:
  815. * HTTP/1.1 200 OK
  816. * {
  817. * "errcode": "OK",
  818. * "error": "",
  819. * "data": {
  820. "total":2,
  821. "list":[
  822. {
  823. "email":"zhnagsan@qq.com",
  824. "phone":"111111111",
  825. "registTime":1582109643,
  826. "expireTime":1582109643
  827. },
  828. {
  829. "email":"zhnagsan@qq.com",
  830. "phone":"111111111",
  831. "registTime":1582109643,
  832. "expireTime":1582109643
  833. }
  834. ],
  835. * }
  836. * }
  837. * @apiErrorExample Error Status:
  838. * HTTP/1.1 !=200 服务端异常
  839. */
  840. /**
  841. * @api {GET} /api/v1/mop/applets-ecol-account/operation/role/list [C/S][运营端]查询角色列表
  842. * @apiGroup Applets Ecol Account
  843. * @apiVersion __API_VERSION__
  844. * @apiParamExample {json} Request-Example:
  845. * {
  846. data : [
  847. {
  848. "id":"1231233123"
  849. "name":"管理员"
  850. "peopleNumber" 3
  851. }
  852. ]
  853. }
  854. * @apiErrorExample Error Status:
  855. * HTTP/1.1 !=200 服务端异常
  856. */
  857. /**
  858. * @api {POST} /api/v1/mop/applets-ecol-account/operation/role/add [C/S][运营端]新增角色
  859. * @apiGroup Applets Ecol Account
  860. * @apiVersion __API_VERSION__
  861. * @apiParam {string} name
  862. * @apiParam {[]string} authList 权限列表
  863. * @apiSuccessExample {json} Success Status:
  864. * HTTP/1.1 200 OK
  865. * {
  866. * "data": {},
  867. * "errcode": "OK",
  868. * "error": ""
  869. *}
  870. * @apiErrorExample Error Status:
  871. * HTTP/1.1 !=200 服务端异常
  872. */
  873. /**
  874. * @api {PUT} /api/v1/mop/applets-ecol-account/operation/role/edit [C/S][运营端]配置角色权限
  875. * @apiGroup Applets Ecol Account
  876. * @apiVersion __API_VERSION__
  877. * @apiParam {string} id
  878. * @apiParam {[]string} authList 权限列表
  879. * @apiSuccessExample {json} Success Status:
  880. * HTTP/1.1 200 OK
  881. * {
  882. * "data": {},
  883. * "errcode": "OK",
  884. * "error": ""
  885. *}
  886. * @apiErrorExample Error Status:
  887. * HTTP/1.1 !=200 服务端异常
  888. */
  889. /**
  890. * @api {DELETE} /api/v1/mop/applets-ecol-account/operation/role/delete [C/S][运营端]删除角色
  891. * @apiGroup Applets Ecol Account
  892. * @apiVersion __API_VERSION__
  893. * @apiParam {string} id
  894. * @apiSuccessExample {json} Success Status:
  895. * HTTP/1.1 200 OK
  896. * {
  897. * "data": {},
  898. * "errcode": "OK",
  899. * "error": ""
  900. *}
  901. * @apiErrorExample Error Status:
  902. * HTTP/1.1 !=200 服务端异常
  903. */
  904. /**
  905. * @api {PUT} /api/v1/mop/applets-ecol-account/operation/role/manage-account [C/S][运营端]角色中管理账号
  906. * @apiGroup Applets Ecol Account
  907. * @apiVersion __API_VERSION__
  908. * @apiParam {string} roleId
  909. * @apiParam {[]string} accountList 账号列表
  910. * @apiSuccessExample {json} Success Status:
  911. * HTTP/1.1 200 OK
  912. * {
  913. * "data": {},
  914. * "errcode": "OK",
  915. * "error": ""
  916. *}
  917. * @apiErrorExample Error Status:
  918. * HTTP/1.1 !=200 服务端异常
  919. */
  920. /**
  921. * @api {GET} /api/v1/mop/applets-ecol-account/operation/auth/list [C/S][运营端]查询权限列表
  922. * @apiGroup Applets Ecol Account
  923. * @apiVersion __API_VERSION__
  924. * @apiParam {string} roleId
  925. * @apiParamExample {json} Request-Example:
  926. * {
  927. data : [
  928. {
  929. "id":"1231233123"
  930. "name":"SDK管理"
  931. "nameEn":"SSCCSDK"
  932. "status" : 1
  933. "childrens" : [
  934. {
  935. "id":"555555"
  936. "name":"新增SDK"
  937. "nameEn":"addSDK"
  938. "status" : 1
  939. },
  940. {
  941. "id":"66666"
  942. "name":"SDK管理"
  943. "nameEn":"ManageSDK"
  944. "status" : 1
  945. }
  946. ]
  947. }
  948. ]
  949. }
  950. * @apiErrorExample Error Status:
  951. * HTTP/1.1 !=200 服务端异常
  952. */