comp_notice.json 63 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777
  1. {
  2. "info": {
  3. "_postman_id": "f8411fd3-a87f-48b6-aade-13696e99800d",
  4. "name": "comp_notice",
  5. "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  6. },
  7. "item": [
  8. {
  9. "name": "compnotice",
  10. "item": [
  11. {
  12. "name": "post_mge_login",
  13. "event": [
  14. {
  15. "listen": "test",
  16. "script": {
  17. "id": "8925e92f-c05f-4484-be4e-4301efc68a7e",
  18. "exec": [
  19. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  20. "",
  21. "if(tests[\"Status code is 200\"] ){",
  22. " var jsonData = JSON.parse(responseBody);",
  23. " ",
  24. " postman.setEnvironmentVariable(\"mgetoken\", jsonData.result.token);",
  25. " postman.setEnvironmentVariable(\"mgeimid\", jsonData.result.id);",
  26. "}"
  27. ],
  28. "type": "text/javascript"
  29. }
  30. }
  31. ],
  32. "request": {
  33. "method": "POST",
  34. "header": [
  35. {
  36. "key": "Content-Type",
  37. "value": "application/json"
  38. }
  39. ],
  40. "body": {
  41. "mode": "raw",
  42. "raw": "{\r\n\t\"password\": \"18159807654\",\r\n\t\"phone\": \"18159807654\"\r\n}"
  43. },
  44. "url": {
  45. "raw": "{{imurl}}/user/login/",
  46. "host": [
  47. "{{imurl}}"
  48. ],
  49. "path": [
  50. "user",
  51. "login",
  52. ""
  53. ]
  54. }
  55. },
  56. "response": []
  57. },
  58. {
  59. "name": "post_company",
  60. "event": [
  61. {
  62. "listen": "test",
  63. "script": {
  64. "id": "aa8b644c-0d81-4341-a8dc-eb5df293f8e6",
  65. "exec": [
  66. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 400;"
  67. ],
  68. "type": "text/javascript"
  69. }
  70. }
  71. ],
  72. "request": {
  73. "method": "POST",
  74. "header": [
  75. {
  76. "key": "Authorization",
  77. "value": "Rong {{mgetoken}}"
  78. }
  79. ],
  80. "body": {
  81. "mode": "formdata",
  82. "formdata": [
  83. {
  84. "key": "name",
  85. "value": "有会科技有限公司",
  86. "type": "text"
  87. },
  88. {
  89. "key": "description",
  90. "value": "成立于1991年,总部位于现福建省厦门市"
  91. }
  92. ]
  93. },
  94. "url": {
  95. "raw": "{{url}}/api/company/company/",
  96. "host": [
  97. "{{url}}"
  98. ],
  99. "path": [
  100. "api",
  101. "company",
  102. "company",
  103. ""
  104. ]
  105. }
  106. },
  107. "response": []
  108. },
  109. {
  110. "name": "get_company_current",
  111. "event": [
  112. {
  113. "listen": "test",
  114. "script": {
  115. "type": "text/javascript",
  116. "exec": [
  117. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  118. ""
  119. ]
  120. }
  121. }
  122. ],
  123. "request": {
  124. "method": "GET",
  125. "header": [
  126. {
  127. "key": "Authorization",
  128. "value": "Rong {{mgetoken}}"
  129. }
  130. ],
  131. "body": {
  132. "mode": "raw",
  133. "raw": ""
  134. },
  135. "url": {
  136. "raw": "{{url}}/api/company/company/?type=current",
  137. "host": [
  138. "{{url}}"
  139. ],
  140. "path": [
  141. "api",
  142. "company",
  143. "company",
  144. ""
  145. ],
  146. "query": [
  147. {
  148. "key": "type",
  149. "value": "current"
  150. }
  151. ]
  152. }
  153. },
  154. "response": []
  155. },
  156. {
  157. "name": "get_company_created",
  158. "event": [
  159. {
  160. "listen": "test",
  161. "script": {
  162. "type": "text/javascript",
  163. "exec": [
  164. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  165. "",
  166. "if(tests[\"Status code is 200\"] ){",
  167. " var jsonData = JSON.parse(responseBody);",
  168. " ",
  169. " postman.setEnvironmentVariable(\"company_id\", jsonData.results[0].id);",
  170. "}"
  171. ]
  172. }
  173. }
  174. ],
  175. "request": {
  176. "method": "GET",
  177. "header": [
  178. {
  179. "key": "Authorization",
  180. "value": "Rong {{mgetoken}}"
  181. }
  182. ],
  183. "body": {
  184. "mode": "raw",
  185. "raw": ""
  186. },
  187. "url": {
  188. "raw": "{{url}}/api/company/company/?type=created",
  189. "host": [
  190. "{{url}}"
  191. ],
  192. "path": [
  193. "api",
  194. "company",
  195. "company",
  196. ""
  197. ],
  198. "query": [
  199. {
  200. "key": "type",
  201. "value": "created"
  202. }
  203. ]
  204. }
  205. },
  206. "response": []
  207. },
  208. {
  209. "name": "get_company_joined",
  210. "event": [
  211. {
  212. "listen": "test",
  213. "script": {
  214. "id": "05224e5a-1453-4ef3-9908-eb1ea4c4018c",
  215. "exec": [
  216. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  217. "// if(tests[\"Status code is 200\"] ){",
  218. "// var jsonData = JSON.parse(responseBody);",
  219. " ",
  220. "// postman.setEnvironmentVariable(\"company_id\", jsonData[3].id);",
  221. "// }"
  222. ],
  223. "type": "text/javascript"
  224. }
  225. }
  226. ],
  227. "request": {
  228. "method": "GET",
  229. "header": [
  230. {
  231. "key": "Authorization",
  232. "value": "Rong {{mgetoken}}"
  233. }
  234. ],
  235. "body": {
  236. "mode": "raw",
  237. "raw": ""
  238. },
  239. "url": {
  240. "raw": "{{url}}/api/company/company/?type=joined",
  241. "host": [
  242. "{{url}}"
  243. ],
  244. "path": [
  245. "api",
  246. "company",
  247. "company",
  248. ""
  249. ],
  250. "query": [
  251. {
  252. "key": "type",
  253. "value": "joined"
  254. }
  255. ]
  256. }
  257. },
  258. "response": []
  259. },
  260. {
  261. "name": "get_company_id",
  262. "event": [
  263. {
  264. "listen": "test",
  265. "script": {
  266. "type": "text/javascript",
  267. "exec": [
  268. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  269. " if(tests[\"Status code is 200\"] ){",
  270. " var jsonData = JSON.parse(responseBody);",
  271. " ",
  272. " postman.setEnvironmentVariable(\"mge_id\", jsonData.createby_user.id);",
  273. " postman.setEnvironmentVariable(\"company_name\", jsonData.name);",
  274. " }"
  275. ]
  276. }
  277. }
  278. ],
  279. "request": {
  280. "method": "GET",
  281. "header": [
  282. {
  283. "key": "Authorization",
  284. "value": "Rong {{mgetoken}}"
  285. }
  286. ],
  287. "body": {
  288. "mode": "raw",
  289. "raw": ""
  290. },
  291. "url": {
  292. "raw": "{{url}}/api/company/company/{{company_id}}/",
  293. "host": [
  294. "{{url}}"
  295. ],
  296. "path": [
  297. "api",
  298. "company",
  299. "company",
  300. "{{company_id}}",
  301. ""
  302. ]
  303. }
  304. },
  305. "response": []
  306. },
  307. {
  308. "name": "put_company_info",
  309. "event": [
  310. {
  311. "listen": "test",
  312. "script": {
  313. "type": "text/javascript",
  314. "exec": [
  315. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  316. "// if(tests[\"Status code is 200\"] ){",
  317. "// var jsonData = JSON.parse(responseBody);",
  318. " ",
  319. "// postman.setEnvironmentVariable(\"mge_id\", jsonData.createby_user.id);",
  320. "// }"
  321. ]
  322. }
  323. }
  324. ],
  325. "request": {
  326. "method": "PUT",
  327. "header": [
  328. {
  329. "key": "Authorization",
  330. "value": "Rong {{mgetoken}}"
  331. }
  332. ],
  333. "body": {
  334. "mode": "formdata",
  335. "formdata": [
  336. {
  337. "key": "name",
  338. "value": "{{company_name}}",
  339. "type": "text"
  340. },
  341. {
  342. "key": "description",
  343. "value": "成立于1993年,总部位于现江苏省南京市"
  344. }
  345. ]
  346. },
  347. "url": {
  348. "raw": "{{url}}/api/company/company/{{company_id}}/",
  349. "host": [
  350. "{{url}}"
  351. ],
  352. "path": [
  353. "api",
  354. "company",
  355. "company",
  356. "{{company_id}}",
  357. ""
  358. ]
  359. }
  360. },
  361. "response": []
  362. },
  363. {
  364. "name": "get_mge_info",
  365. "event": [
  366. {
  367. "listen": "test",
  368. "script": {
  369. "type": "text/javascript",
  370. "exec": [
  371. "",
  372. "",
  373. "",
  374. "",
  375. "",
  376. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  377. " var jsonData = JSON.parse(responseBody);",
  378. " ",
  379. " postman.setEnvironmentVariable(\"mgecomp_id\", jsonData.id );",
  380. " postman.setEnvironmentVariable(\"mge_username\", jsonData.username );",
  381. " postman.setEnvironmentVariable(\"mge_cellphone\", jsonData.cellphone );",
  382. " postman.setEnvironmentVariable(\"mge_userid\", jsonData.user );"
  383. ]
  384. }
  385. }
  386. ],
  387. "request": {
  388. "method": "GET",
  389. "header": [
  390. {
  391. "key": "Authorization",
  392. "value": "Rong {{mgetoken}}"
  393. }
  394. ],
  395. "body": {
  396. "mode": "raw",
  397. "raw": ""
  398. },
  399. "url": {
  400. "raw": "{{url}}/api/company/admin/",
  401. "host": [
  402. "{{url}}"
  403. ],
  404. "path": [
  405. "api",
  406. "company",
  407. "admin",
  408. ""
  409. ]
  410. }
  411. },
  412. "response": []
  413. },
  414. {
  415. "name": "post_user01_login",
  416. "event": [
  417. {
  418. "listen": "test",
  419. "script": {
  420. "id": "8684cd8c-bca7-4611-82f7-670dbfec76eb",
  421. "exec": [
  422. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  423. "",
  424. "if(tests[\"Status code is 200\"] ){",
  425. " var jsonData = JSON.parse(responseBody);",
  426. " ",
  427. " postman.setEnvironmentVariable(\"user01token\", jsonData.result.token);",
  428. " postman.setEnvironmentVariable(\"user01imid\", jsonData.result.id);",
  429. "}"
  430. ],
  431. "type": "text/javascript"
  432. }
  433. }
  434. ],
  435. "request": {
  436. "method": "POST",
  437. "header": [
  438. {
  439. "key": "Content-Type",
  440. "value": "application/json"
  441. }
  442. ],
  443. "body": {
  444. "mode": "raw",
  445. "raw": "{\r\n\t\"password\": \"18159808899\",\r\n\t\"phone\": \"18159808899\"\r\n}"
  446. },
  447. "url": {
  448. "raw": "{{imurl}}/user/login/",
  449. "host": [
  450. "{{imurl}}"
  451. ],
  452. "path": [
  453. "user",
  454. "login",
  455. ""
  456. ]
  457. }
  458. },
  459. "response": []
  460. },
  461. {
  462. "name": "post_user01_joincomp",
  463. "event": [
  464. {
  465. "listen": "test",
  466. "script": {
  467. "id": "10194f8b-adf0-4c8b-b31f-48786ccbc783",
  468. "exec": [
  469. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 400;",
  470. "",
  471. " "
  472. ],
  473. "type": "text/javascript"
  474. }
  475. }
  476. ],
  477. "request": {
  478. "method": "POST",
  479. "header": [
  480. {
  481. "key": "Content-Type",
  482. "value": "application/json"
  483. },
  484. {
  485. "key": "Authorization",
  486. "value": "Rong {{user01token}}"
  487. }
  488. ],
  489. "body": {
  490. "mode": "raw",
  491. "raw": "{\n\t\"company\":\"{{company_id}}\"\n\t\n}"
  492. },
  493. "url": {
  494. "raw": "{{url}}/api/company/application/",
  495. "host": [
  496. "{{url}}"
  497. ],
  498. "path": [
  499. "api",
  500. "company",
  501. "application",
  502. ""
  503. ]
  504. }
  505. },
  506. "response": []
  507. },
  508. {
  509. "name": "post_user02_login",
  510. "event": [
  511. {
  512. "listen": "test",
  513. "script": {
  514. "id": "8dec229d-21d8-4837-b914-21d826d9821e",
  515. "exec": [
  516. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  517. "",
  518. "if(tests[\"Status code is 200\"] ){",
  519. " var jsonData = JSON.parse(responseBody);",
  520. " ",
  521. " postman.setEnvironmentVariable(\"user02token\", jsonData.result.token);",
  522. " postman.setEnvironmentVariable(\"user02imid\", jsonData.result.id);",
  523. "}"
  524. ],
  525. "type": "text/javascript"
  526. }
  527. }
  528. ],
  529. "request": {
  530. "method": "POST",
  531. "header": [
  532. {
  533. "key": "Content-Type",
  534. "value": "application/json"
  535. }
  536. ],
  537. "body": {
  538. "mode": "raw",
  539. "raw": "{\r\n\t\"password\": \"18159858888\",\r\n\t\"phone\": \"18159858888\"\r\n}"
  540. },
  541. "url": {
  542. "raw": "{{imurl}}/user/login/",
  543. "host": [
  544. "{{imurl}}"
  545. ],
  546. "path": [
  547. "user",
  548. "login",
  549. ""
  550. ]
  551. }
  552. },
  553. "response": []
  554. },
  555. {
  556. "name": "post_user02_joincomp",
  557. "event": [
  558. {
  559. "listen": "test",
  560. "script": {
  561. "id": "9b8699e4-c635-4150-b378-35a2d1254d25",
  562. "exec": [
  563. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 400;",
  564. "",
  565. " "
  566. ],
  567. "type": "text/javascript"
  568. }
  569. }
  570. ],
  571. "request": {
  572. "method": "POST",
  573. "header": [
  574. {
  575. "key": "Content-Type",
  576. "value": "application/json"
  577. },
  578. {
  579. "key": "Authorization",
  580. "value": "Rong {{user02token}}"
  581. }
  582. ],
  583. "body": {
  584. "mode": "raw",
  585. "raw": "{\n\t\"company\":\"{{company_id}}\"\n\t\n}"
  586. },
  587. "url": {
  588. "raw": "{{url}}/api/company/application/",
  589. "host": [
  590. "{{url}}"
  591. ],
  592. "path": [
  593. "api",
  594. "company",
  595. "application",
  596. ""
  597. ]
  598. }
  599. },
  600. "response": []
  601. },
  602. {
  603. "name": "get_joincomp_info",
  604. "event": [
  605. {
  606. "listen": "test",
  607. "script": {
  608. "id": "fcd6aed2-f1bc-4cd6-ab28-5e0b5842e457",
  609. "exec": [
  610. "",
  611. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  612. "",
  613. "",
  614. "// var jsonData = JSON.parse(responseBody);",
  615. " ",
  616. "// // postman.setEnvironmentVariable(\"joincomp_infoid01\", jsonData[1].id);",
  617. "// // postman.setEnvironmentVariable(\"user01_userid\", jsonData[0].user);",
  618. "// // postman.setEnvironmentVariable(\"user01comp_username\", jsonData[0].username);",
  619. "// // postman.setEnvironmentVariable(\"user01comp_cellphone\", jsonData[0].cellphone);",
  620. " ",
  621. "// // postman.setEnvironmentVariable(\"joincomp_infoid02\", jsonData[1].id);",
  622. "// postman.setEnvironmentVariable(\"user02_userid\", jsonData[1].user);",
  623. "// // postman.setEnvironmentVariable(\"user02comp_username\", jsonData[1].username);",
  624. " // postman.setEnvironmentVariable(\"user02comp_cellphone\", jsonData[1].cellphone);",
  625. " ",
  626. "",
  627. ""
  628. ],
  629. "type": "text/javascript"
  630. }
  631. }
  632. ],
  633. "request": {
  634. "method": "GET",
  635. "header": [
  636. {
  637. "key": "Authorization",
  638. "value": "Rong {{mgetoken}}"
  639. }
  640. ],
  641. "body": {
  642. "mode": "raw",
  643. "raw": ""
  644. },
  645. "url": {
  646. "raw": "{{url}}/api/company/application/?company={{company_id}}",
  647. "host": [
  648. "{{url}}"
  649. ],
  650. "path": [
  651. "api",
  652. "company",
  653. "application",
  654. ""
  655. ],
  656. "query": [
  657. {
  658. "key": "company",
  659. "value": "{{company_id}}"
  660. }
  661. ]
  662. }
  663. },
  664. "response": []
  665. },
  666. {
  667. "name": "get_user01_info",
  668. "event": [
  669. {
  670. "listen": "test",
  671. "script": {
  672. "id": "21a10762-fdf8-4edb-ba25-a4b6547f129a",
  673. "exec": [
  674. "",
  675. "",
  676. "",
  677. "",
  678. "",
  679. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  680. " var jsonData = JSON.parse(responseBody);",
  681. " ",
  682. " postman.setEnvironmentVariable(\"user01comp_id\", jsonData.id );",
  683. " postman.setEnvironmentVariable(\"user01comp_username\", jsonData.username );",
  684. " postman.setEnvironmentVariable(\"user01comp_cellphone\", jsonData.cellphone );",
  685. " postman.setEnvironmentVariable(\"user01_userid\", jsonData.user );"
  686. ],
  687. "type": "text/javascript"
  688. }
  689. }
  690. ],
  691. "request": {
  692. "method": "GET",
  693. "header": [
  694. {
  695. "key": "Authorization",
  696. "value": "Rong {{user01token}}"
  697. }
  698. ],
  699. "body": {
  700. "mode": "raw",
  701. "raw": ""
  702. },
  703. "url": {
  704. "raw": "{{url}}/api/company/admin/",
  705. "host": [
  706. "{{url}}"
  707. ],
  708. "path": [
  709. "api",
  710. "company",
  711. "admin",
  712. ""
  713. ]
  714. }
  715. },
  716. "response": []
  717. },
  718. {
  719. "name": "get_user02_info",
  720. "event": [
  721. {
  722. "listen": "test",
  723. "script": {
  724. "id": "7b3b934c-385e-4ca7-a938-fbc2e762f123",
  725. "exec": [
  726. "",
  727. "",
  728. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  729. " var jsonData = JSON.parse(responseBody);",
  730. " ",
  731. " postman.setEnvironmentVariable(\"user02comp_id\", jsonData.id );",
  732. " postman.setEnvironmentVariable(\"user02comp_username\", jsonData.username );",
  733. " postman.setEnvironmentVariable(\"user02comp_cellphone\", jsonData.cellphone );",
  734. " postman.setEnvironmentVariable(\"user02_userid\", jsonData.user );"
  735. ],
  736. "type": "text/javascript"
  737. }
  738. }
  739. ],
  740. "request": {
  741. "method": "GET",
  742. "header": [
  743. {
  744. "key": "Authorization",
  745. "value": "Rong {{user02token}}"
  746. }
  747. ],
  748. "body": {
  749. "mode": "raw",
  750. "raw": ""
  751. },
  752. "url": {
  753. "raw": "{{url}}/api/company/admin/",
  754. "host": [
  755. "{{url}}"
  756. ],
  757. "path": [
  758. "api",
  759. "company",
  760. "admin",
  761. ""
  762. ]
  763. }
  764. },
  765. "response": []
  766. },
  767. {
  768. "name": "put_accept_joincomp_01",
  769. "event": [
  770. {
  771. "listen": "test",
  772. "script": {
  773. "id": "8f3d2185-176b-4927-b135-98ae368ff9d9",
  774. "exec": [
  775. "tests[\"Status code is 200\"] = responseCode.code === 200 || responseCode.code === 404;",
  776. "",
  777. "// var jsonData = JSON.parse(responseBody);",
  778. " ",
  779. "// postman.setEnvironmentVariable(\"joincomp_infoid\", jsonData[0].id);"
  780. ],
  781. "type": "text/javascript"
  782. }
  783. }
  784. ],
  785. "request": {
  786. "method": "PUT",
  787. "header": [
  788. {
  789. "key": "Content-Type",
  790. "value": "application/json"
  791. },
  792. {
  793. "key": "Authorization",
  794. "value": "Rong {{mgetoken}}"
  795. }
  796. ],
  797. "body": {
  798. "mode": "raw",
  799. "raw": "{\r\n\t\"id\": \"{{joincomp_infoid}}\",\r\n\t\"status\": 2,\r\n\t\"user\": {{user01_userid}},\r\n\t\"username\": \"{{user01comp_username}}\",\r\n\t\"cellphone\": \"{{user01comp_cellphone}}\",\r\n\t\"portraituri\": \"http://public.qiniu.linkerplus.com/portrait/portrait\"\r\n}"
  800. },
  801. "url": {
  802. "raw": "{{url}}/api/company/application/{{joincomp_infoid01}}/",
  803. "host": [
  804. "{{url}}"
  805. ],
  806. "path": [
  807. "api",
  808. "company",
  809. "application",
  810. "{{joincomp_infoid01}}",
  811. ""
  812. ]
  813. }
  814. },
  815. "response": []
  816. },
  817. {
  818. "name": "put_accept_joincomp _03",
  819. "event": [
  820. {
  821. "listen": "test",
  822. "script": {
  823. "id": "4ca12673-db8e-400e-8607-7b0348f8f27b",
  824. "exec": [
  825. "tests[\"Successful POST request\"] = responseCode.code === 200 || responseCode.code === 404;",
  826. "",
  827. " ",
  828. "",
  829. ""
  830. ],
  831. "type": "text/javascript"
  832. }
  833. }
  834. ],
  835. "request": {
  836. "method": "PUT",
  837. "header": [
  838. {
  839. "key": "Content-Type",
  840. "value": "application/json"
  841. },
  842. {
  843. "key": "Authorization",
  844. "value": "Rong {{mgetoken}}"
  845. }
  846. ],
  847. "body": {
  848. "mode": "raw",
  849. "raw": "{\r\n\t\"id\":\"{{joincomp_infoid02}}\",\r\n\t\"status\":2,\r\n\t\"user\": {{user02_userid}},\r\n\t\"username\": \"{{user02comp_username}}\",\r\n\t\"cellphone\": \"{{user02comp_cellphone}}\",\r\n\t\"portraituri\": \"http://public.qiniu.linkerplus.com/portrait/portrait\"\r\n\r\n}"
  850. },
  851. "url": {
  852. "raw": "{{url}}/api/company/application/{{joincomp_infoid02}}/",
  853. "host": [
  854. "{{url}}"
  855. ],
  856. "path": [
  857. "api",
  858. "company",
  859. "application",
  860. "{{joincomp_infoid02}}",
  861. ""
  862. ]
  863. }
  864. },
  865. "response": []
  866. },
  867. {
  868. "name": "put_company_userextend_mge",
  869. "event": [
  870. {
  871. "listen": "test",
  872. "script": {
  873. "type": "text/javascript",
  874. "exec": [
  875. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  876. "// if(tests[\"Status code is 200\"] ){",
  877. "// var jsonData = JSON.parse(responseBody);",
  878. " ",
  879. "// postman.setEnvironmentVariable(\"company_id\", jsonData[3].id);",
  880. "// }"
  881. ]
  882. }
  883. }
  884. ],
  885. "request": {
  886. "method": "PUT",
  887. "header": [
  888. {
  889. "key": "Authorization",
  890. "value": "Rong {{mgetoken}}"
  891. },
  892. {
  893. "key": "Content-Type",
  894. "value": "application/json"
  895. }
  896. ],
  897. "body": {
  898. "mode": "raw",
  899. "raw": "{\r\n\t\"user\": {{mge_id}},\r\n\t\"id_no\": null,\r\n\t\"origin\": null,\r\n\t\"married\": false,\r\n\t\"children\": null,\r\n\t\"sex\": true,\r\n\t\"address\": null,\r\n\t\"urgent_contact\": null,\r\n\t\"urgent_telephone\": null,\r\n\t\"birthday\": null,\r\n\t\"language\": null,\r\n\t\"default_comp\": {{company_id}},\r\n\t\"id\": {{mge_id}}\r\n}"
  900. },
  901. "url": {
  902. "raw": "{{url}}/api/company/userextend/{{mge_id}}/",
  903. "host": [
  904. "{{url}}"
  905. ],
  906. "path": [
  907. "api",
  908. "company",
  909. "userextend",
  910. "{{mge_id}}",
  911. ""
  912. ]
  913. }
  914. },
  915. "response": []
  916. },
  917. {
  918. "name": "put_company_userextend_user01",
  919. "event": [
  920. {
  921. "listen": "test",
  922. "script": {
  923. "type": "text/javascript",
  924. "exec": [
  925. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  926. "// if(tests[\"Status code is 200\"] ){",
  927. "// var jsonData = JSON.parse(responseBody);",
  928. " ",
  929. "// postman.setEnvironmentVariable(\"company_id\", jsonData[3].id);",
  930. "// }"
  931. ]
  932. }
  933. }
  934. ],
  935. "request": {
  936. "method": "PUT",
  937. "header": [
  938. {
  939. "key": "Authorization",
  940. "value": "Rong {{user01token}}"
  941. },
  942. {
  943. "key": "Content-Type",
  944. "value": "application/json"
  945. }
  946. ],
  947. "body": {
  948. "mode": "raw",
  949. "raw": "{\r\n\t\"user\": {{user01_userid}},\r\n\t\"id_no\": null,\r\n\t\"origin\": null,\r\n\t\"married\": false,\r\n\t\"children\": null,\r\n\t\"sex\": true,\r\n\t\"address\": null,\r\n\t\"urgent_contact\": null,\r\n\t\"urgent_telephone\": null,\r\n\t\"birthday\": null,\r\n\t\"language\": null,\r\n\t\"default_comp\": {{company_id}},\r\n\t\"id\": {{user01_userid}}\r\n}"
  950. },
  951. "url": {
  952. "raw": "{{url}}/api/company/userextend/{{user01_userid}}/",
  953. "host": [
  954. "{{url}}"
  955. ],
  956. "path": [
  957. "api",
  958. "company",
  959. "userextend",
  960. "{{user01_userid}}",
  961. ""
  962. ]
  963. }
  964. },
  965. "response": []
  966. },
  967. {
  968. "name": "put_company_userextend_user02",
  969. "event": [
  970. {
  971. "listen": "test",
  972. "script": {
  973. "id": "768d215f-ee5e-4b8d-b5a6-f1e2ae6e80ce",
  974. "exec": [
  975. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  976. "// if(tests[\"Status code is 200\"] ){",
  977. "// var jsonData = JSON.parse(responseBody);",
  978. " ",
  979. "// postman.setEnvironmentVariable(\"company_id\", jsonData[3].id);",
  980. "// }"
  981. ],
  982. "type": "text/javascript"
  983. }
  984. }
  985. ],
  986. "request": {
  987. "method": "PUT",
  988. "header": [
  989. {
  990. "key": "Authorization",
  991. "value": "Rong {{user02token}}"
  992. },
  993. {
  994. "key": "Content-Type",
  995. "value": "application/json"
  996. }
  997. ],
  998. "body": {
  999. "mode": "raw",
  1000. "raw": "{\r\n\t\"user\": {{user02_userid}},\r\n\t\"id_no\": null,\r\n\t\"origin\": null,\r\n\t\"married\": false,\r\n\t\"children\": null,\r\n\t\"sex\": true,\r\n\t\"address\": null,\r\n\t\"urgent_contact\": null,\r\n\t\"urgent_telephone\": null,\r\n\t\"birthday\": null,\r\n\t\"language\": null,\r\n\t\"default_comp\": {{company_id}},\r\n\t\"id\": {{user02_userid}}\r\n}"
  1001. },
  1002. "url": {
  1003. "raw": "{{url}}/api/company/userextend/{{user02_userid}}/",
  1004. "host": [
  1005. "{{url}}"
  1006. ],
  1007. "path": [
  1008. "api",
  1009. "company",
  1010. "userextend",
  1011. "{{user02_userid}}",
  1012. ""
  1013. ]
  1014. }
  1015. },
  1016. "response": []
  1017. },
  1018. {
  1019. "name": "get_build_department01",
  1020. "event": [
  1021. {
  1022. "listen": "test",
  1023. "script": {
  1024. "type": "text/javascript",
  1025. "exec": [
  1026. "",
  1027. "",
  1028. "",
  1029. "",
  1030. "",
  1031. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  1032. " var jsonData = JSON.parse(responseBody);",
  1033. " ",
  1034. " postman.setEnvironmentVariable(\"parent_id\", jsonData[0].i);"
  1035. ]
  1036. }
  1037. }
  1038. ],
  1039. "request": {
  1040. "method": "GET",
  1041. "header": [
  1042. {
  1043. "key": "Authorization",
  1044. "value": "Rong {{mgetoken}}"
  1045. }
  1046. ],
  1047. "body": {
  1048. "mode": "raw",
  1049. "raw": ""
  1050. },
  1051. "url": {
  1052. "raw": "{{url}}/api/company/department/?company={{company_id}}",
  1053. "host": [
  1054. "{{url}}"
  1055. ],
  1056. "path": [
  1057. "api",
  1058. "company",
  1059. "department",
  1060. ""
  1061. ],
  1062. "query": [
  1063. {
  1064. "key": "company",
  1065. "value": "{{company_id}}"
  1066. }
  1067. ]
  1068. }
  1069. },
  1070. "response": []
  1071. },
  1072. {
  1073. "name": "post_build_department",
  1074. "event": [
  1075. {
  1076. "listen": "test",
  1077. "script": {
  1078. "type": "text/javascript",
  1079. "exec": [
  1080. "",
  1081. "",
  1082. "",
  1083. "",
  1084. "tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 400;"
  1085. ]
  1086. }
  1087. }
  1088. ],
  1089. "request": {
  1090. "method": "POST",
  1091. "header": [
  1092. {
  1093. "key": "Authorization",
  1094. "value": "Rong {{mgetoken}}"
  1095. },
  1096. {
  1097. "key": "Content-Type",
  1098. "value": "application/json"
  1099. }
  1100. ],
  1101. "body": {
  1102. "mode": "raw",
  1103. "raw": "[{\r\n\t\"name\": \"业务部\",\r\n\t\"parent\": {{parent_id}}\r\n},\r\n{\r\n\t\"name\": \"研发部\",\r\n\t\"parent\": {{parent_id}}\r\n},\r\n{\r\n\t\"name\": \"事政部\",\r\n\t\"parent\": {{parent_id}}\r\n}\r\n]"
  1104. },
  1105. "url": {
  1106. "raw": "{{url}}/api/company/department/",
  1107. "host": [
  1108. "{{url}}"
  1109. ],
  1110. "path": [
  1111. "api",
  1112. "company",
  1113. "department",
  1114. ""
  1115. ]
  1116. }
  1117. },
  1118. "response": []
  1119. },
  1120. {
  1121. "name": "get_build_department02",
  1122. "event": [
  1123. {
  1124. "listen": "test",
  1125. "script": {
  1126. "id": "9a92ab7b-4bd0-42fe-99b8-70ee0ecb013d",
  1127. "exec": [
  1128. "",
  1129. "",
  1130. "",
  1131. "",
  1132. "",
  1133. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  1134. " var jsonData = JSON.parse(responseBody);",
  1135. " ",
  1136. " postman.setEnvironmentVariable(\"depart_departid\", jsonData[0].c[0].i);",
  1137. " postman.setEnvironmentVariable(\"depart_departname\", jsonData[0].c[0].n);"
  1138. ],
  1139. "type": "text/javascript"
  1140. }
  1141. }
  1142. ],
  1143. "request": {
  1144. "method": "GET",
  1145. "header": [
  1146. {
  1147. "key": "Authorization",
  1148. "value": "Rong {{mgetoken}}"
  1149. }
  1150. ],
  1151. "body": {
  1152. "mode": "raw",
  1153. "raw": ""
  1154. },
  1155. "url": {
  1156. "raw": "{{url}}/api/company/department/?company={{company_id}}",
  1157. "host": [
  1158. "{{url}}"
  1159. ],
  1160. "path": [
  1161. "api",
  1162. "company",
  1163. "department",
  1164. ""
  1165. ],
  1166. "query": [
  1167. {
  1168. "key": "company",
  1169. "value": "{{company_id}}"
  1170. }
  1171. ]
  1172. }
  1173. },
  1174. "response": []
  1175. },
  1176. {
  1177. "name": "put_join_department",
  1178. "event": [
  1179. {
  1180. "listen": "test",
  1181. "script": {
  1182. "type": "text/javascript",
  1183. "exec": [
  1184. "",
  1185. "",
  1186. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  1187. ]
  1188. }
  1189. }
  1190. ],
  1191. "request": {
  1192. "method": "PUT",
  1193. "header": [
  1194. {
  1195. "key": "Authorization",
  1196. "value": "Rong {{mgetoken}}"
  1197. },
  1198. {
  1199. "key": "Content-Type",
  1200. "value": "application/json"
  1201. }
  1202. ],
  1203. "body": {
  1204. "mode": "raw",
  1205. "raw": "{\r\n\t\"id\": {{user01comp_id}},\r\n\t\"user_extend\": {\r\n\t\t\"user\": {{user01_userid}},\r\n\t\t\"id_no\": null,\r\n\t\t\"origin\": null,\r\n\t\t\"married\": false,\r\n\t\t\"children\": null,\r\n\t\t\"sex\": true,\r\n\t\t\"address\": null,\r\n\t\t\"urgent_contact\": null,\r\n\t\t\"urgent_telephone\": null,\r\n\t\t\"birthday\": null,\r\n\t\t\"language\": null,\r\n\t\t\"default_comp\": {{company_id}}\r\n\t},\r\n\t\"username\": \"{{user01comp_username}}\",\r\n\t\"avatar\": \"http://public.qiniu.linkerplus.com/portrait/portrait\",\r\n\t\"cellphone\": \"{{user01comp_cellphone}}\",\r\n\t\"email\": \"\",\r\n\t\"dept_name\": \"{{depart_departname}}\",\r\n\t\"im_id\": \"{{user01imid}}\",\r\n\t\"code\": null,\r\n\t\"office_telephone\": null,\r\n\t\"office_address\": null,\r\n\t\"take_office\": null,\r\n\t\"resignation\": null,\r\n\t\"status\": 0,\r\n\t\"user\": {{user01_userid}},\r\n\t\"dept\": {{depart_departid}}\r\n}"
  1206. },
  1207. "url": {
  1208. "raw": "{{url}}/api/company/userinfo/{{user01comp_id}}/",
  1209. "host": [
  1210. "{{url}}"
  1211. ],
  1212. "path": [
  1213. "api",
  1214. "company",
  1215. "userinfo",
  1216. "{{user01comp_id}}",
  1217. ""
  1218. ]
  1219. }
  1220. },
  1221. "response": []
  1222. },
  1223. {
  1224. "name": "post_notice_permission",
  1225. "event": [
  1226. {
  1227. "listen": "test",
  1228. "script": {
  1229. "type": "text/javascript",
  1230. "exec": [
  1231. "",
  1232. "",
  1233. "tests[\"Successful POST request\"] = responseCode.code === 201 ;"
  1234. ]
  1235. }
  1236. }
  1237. ],
  1238. "request": {
  1239. "method": "POST",
  1240. "header": [
  1241. {
  1242. "key": "Authorization",
  1243. "value": "Rong {{mgetoken}}"
  1244. },
  1245. {
  1246. "key": "Content-Type",
  1247. "value": "application/json"
  1248. }
  1249. ],
  1250. "body": {
  1251. "mode": "raw",
  1252. "raw": "[\n\t{\n\t\"company_user\":{{user02comp_id}}\n\t\t\n\t}\n\t]"
  1253. },
  1254. "url": {
  1255. "raw": "{{url}}/api/notice/permission/",
  1256. "host": [
  1257. "{{url}}"
  1258. ],
  1259. "path": [
  1260. "api",
  1261. "notice",
  1262. "permission",
  1263. ""
  1264. ]
  1265. }
  1266. },
  1267. "response": []
  1268. },
  1269. {
  1270. "name": "get_notice_permission",
  1271. "event": [
  1272. {
  1273. "listen": "test",
  1274. "script": {
  1275. "type": "text/javascript",
  1276. "exec": [
  1277. "",
  1278. "",
  1279. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  1280. ]
  1281. }
  1282. }
  1283. ],
  1284. "request": {
  1285. "method": "GET",
  1286. "header": [
  1287. {
  1288. "key": "Authorization",
  1289. "value": "Rong {{mgetoken}}"
  1290. },
  1291. {
  1292. "key": "Content-Type",
  1293. "value": "application/json",
  1294. "disabled": true
  1295. }
  1296. ],
  1297. "body": {
  1298. "mode": "raw",
  1299. "raw": ""
  1300. },
  1301. "url": {
  1302. "raw": "{{url}}/api/notice/permission/",
  1303. "host": [
  1304. "{{url}}"
  1305. ],
  1306. "path": [
  1307. "api",
  1308. "notice",
  1309. "permission",
  1310. ""
  1311. ]
  1312. }
  1313. },
  1314. "response": []
  1315. },
  1316. {
  1317. "name": "post_notice_simple_0",
  1318. "event": [
  1319. {
  1320. "listen": "test",
  1321. "script": {
  1322. "type": "text/javascript",
  1323. "exec": [
  1324. "tests[\"Successful POST request\"] = responseCode.code === 201;",
  1325. "var jsonData = JSON.parse(responseBody);",
  1326. " ",
  1327. " postman.setEnvironmentVariable(\"notice_id\", jsonData.id);"
  1328. ]
  1329. }
  1330. }
  1331. ],
  1332. "request": {
  1333. "method": "POST",
  1334. "header": [
  1335. {
  1336. "key": "Authorization",
  1337. "value": "Rong {{mgetoken}}"
  1338. },
  1339. {
  1340. "key": "Content-Type",
  1341. "value": "application/json"
  1342. }
  1343. ],
  1344. "body": {
  1345. "mode": "raw",
  1346. "raw": "{\r\n\t\"title\": \"开会通知\",\r\n\t\"content\": \"15:00会议室进行研发小组会议,谢谢!\",\r\n\t\"read\": [\r\n\t{{user01comp_id}}, \r\n\t{{mgecomp_id}}\r\n\t\t]\r\n}"
  1347. },
  1348. "url": {
  1349. "raw": "{{url}}/api/notice/notice/",
  1350. "host": [
  1351. "{{url}}"
  1352. ],
  1353. "path": [
  1354. "api",
  1355. "notice",
  1356. "notice",
  1357. ""
  1358. ]
  1359. }
  1360. },
  1361. "response": []
  1362. },
  1363. {
  1364. "name": "get_notice_received",
  1365. "event": [
  1366. {
  1367. "listen": "test",
  1368. "script": {
  1369. "type": "text/javascript",
  1370. "exec": [
  1371. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  1372. ]
  1373. }
  1374. }
  1375. ],
  1376. "request": {
  1377. "method": "GET",
  1378. "header": [
  1379. {
  1380. "key": "Authorization",
  1381. "value": "Rong {{mgetoken}}"
  1382. },
  1383. {
  1384. "key": "Content-Type",
  1385. "value": "application/json"
  1386. }
  1387. ],
  1388. "body": {
  1389. "mode": "raw",
  1390. "raw": ""
  1391. },
  1392. "url": {
  1393. "raw": "{{url}}/api/notice/notice/?type=received",
  1394. "host": [
  1395. "{{url}}"
  1396. ],
  1397. "path": [
  1398. "api",
  1399. "notice",
  1400. "notice",
  1401. ""
  1402. ],
  1403. "query": [
  1404. {
  1405. "key": "type",
  1406. "value": "received"
  1407. }
  1408. ]
  1409. }
  1410. },
  1411. "response": []
  1412. },
  1413. {
  1414. "name": "get_notice_publish",
  1415. "event": [
  1416. {
  1417. "listen": "test",
  1418. "script": {
  1419. "type": "text/javascript",
  1420. "exec": [
  1421. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  1422. ]
  1423. }
  1424. }
  1425. ],
  1426. "request": {
  1427. "method": "GET",
  1428. "header": [
  1429. {
  1430. "key": "Authorization",
  1431. "value": "Rong {{mgetoken}}"
  1432. },
  1433. {
  1434. "key": "Content-Type",
  1435. "value": "application/json"
  1436. }
  1437. ],
  1438. "body": {
  1439. "mode": "raw",
  1440. "raw": ""
  1441. },
  1442. "url": {
  1443. "raw": "{{url}}/api/notice/notice/?type=publish",
  1444. "host": [
  1445. "{{url}}"
  1446. ],
  1447. "path": [
  1448. "api",
  1449. "notice",
  1450. "notice",
  1451. ""
  1452. ],
  1453. "query": [
  1454. {
  1455. "key": "type",
  1456. "value": "publish"
  1457. }
  1458. ]
  1459. }
  1460. },
  1461. "response": []
  1462. },
  1463. {
  1464. "name": "get_notice_read",
  1465. "event": [
  1466. {
  1467. "listen": "test",
  1468. "script": {
  1469. "type": "text/javascript",
  1470. "exec": [
  1471. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  1472. ]
  1473. }
  1474. }
  1475. ],
  1476. "request": {
  1477. "method": "GET",
  1478. "header": [
  1479. {
  1480. "key": "Authorization",
  1481. "value": "Rong {{mgetoken}}"
  1482. }
  1483. ],
  1484. "body": {
  1485. "mode": "raw",
  1486. "raw": ""
  1487. },
  1488. "url": {
  1489. "raw": "{{url}}/api/notice/read/?notice={{notice_id}}",
  1490. "host": [
  1491. "{{url}}"
  1492. ],
  1493. "path": [
  1494. "api",
  1495. "notice",
  1496. "read",
  1497. ""
  1498. ],
  1499. "query": [
  1500. {
  1501. "key": "notice",
  1502. "value": "{{notice_id}}"
  1503. }
  1504. ]
  1505. }
  1506. },
  1507. "response": []
  1508. },
  1509. {
  1510. "name": "post_notice_comment_mge_simple",
  1511. "event": [
  1512. {
  1513. "listen": "test",
  1514. "script": {
  1515. "type": "text/javascript",
  1516. "exec": [
  1517. "tests[\"Successful POST request\"] = responseCode.code === 201 ;"
  1518. ]
  1519. }
  1520. }
  1521. ],
  1522. "request": {
  1523. "method": "POST",
  1524. "header": [
  1525. {
  1526. "key": "Authorization",
  1527. "value": "Rong {{mgetoken}}"
  1528. },
  1529. {
  1530. "key": "Content-Type",
  1531. "value": "application/json"
  1532. }
  1533. ],
  1534. "body": {
  1535. "mode": "raw",
  1536. "raw": "{\r\n\t\"content\": \"好的,定会准时到场!\",\r\n\t\"notice\": {{notice_id}}\r\n}"
  1537. },
  1538. "url": {
  1539. "raw": "{{url}}/api/notice/comment/",
  1540. "host": [
  1541. "{{url}}"
  1542. ],
  1543. "path": [
  1544. "api",
  1545. "notice",
  1546. "comment",
  1547. ""
  1548. ]
  1549. }
  1550. },
  1551. "response": []
  1552. },
  1553. {
  1554. "name": "post_notice_comment_user01_simple",
  1555. "event": [
  1556. {
  1557. "listen": "test",
  1558. "script": {
  1559. "type": "text/javascript",
  1560. "exec": [
  1561. "tests[\"Successful POST request\"] = responseCode.code === 201 ;"
  1562. ]
  1563. }
  1564. }
  1565. ],
  1566. "request": {
  1567. "method": "POST",
  1568. "header": [
  1569. {
  1570. "key": "Authorization",
  1571. "value": "Rong {{user01token}}"
  1572. },
  1573. {
  1574. "key": "Content-Type",
  1575. "value": "application/json"
  1576. }
  1577. ],
  1578. "body": {
  1579. "mode": "raw",
  1580. "raw": "{\r\n\t\"content\": \"好的,已收到通知!\",\r\n\t\"notice\": {{notice_id}}\r\n}"
  1581. },
  1582. "url": {
  1583. "raw": "{{url}}/api/notice/comment/",
  1584. "host": [
  1585. "{{url}}"
  1586. ],
  1587. "path": [
  1588. "api",
  1589. "notice",
  1590. "comment",
  1591. ""
  1592. ]
  1593. }
  1594. },
  1595. "response": []
  1596. },
  1597. {
  1598. "name": "get_notice_comment",
  1599. "event": [
  1600. {
  1601. "listen": "test",
  1602. "script": {
  1603. "type": "text/javascript",
  1604. "exec": [
  1605. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  1606. ]
  1607. }
  1608. }
  1609. ],
  1610. "request": {
  1611. "method": "GET",
  1612. "header": [
  1613. {
  1614. "key": "Authorization",
  1615. "value": "Rong {{mgetoken}}"
  1616. },
  1617. {
  1618. "key": "Content-Type",
  1619. "value": "application/json"
  1620. }
  1621. ],
  1622. "body": {
  1623. "mode": "raw",
  1624. "raw": ""
  1625. },
  1626. "url": {
  1627. "raw": "{{url}}/api/notice/comment/?notice={{notice_id}}",
  1628. "host": [
  1629. "{{url}}"
  1630. ],
  1631. "path": [
  1632. "api",
  1633. "notice",
  1634. "comment",
  1635. ""
  1636. ],
  1637. "query": [
  1638. {
  1639. "key": "notice",
  1640. "value": "{{notice_id}}"
  1641. }
  1642. ]
  1643. }
  1644. },
  1645. "response": []
  1646. },
  1647. {
  1648. "name": "get_notice_statistics",
  1649. "event": [
  1650. {
  1651. "listen": "test",
  1652. "script": {
  1653. "type": "text/javascript",
  1654. "exec": [
  1655. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  1656. ]
  1657. }
  1658. }
  1659. ],
  1660. "request": {
  1661. "method": "GET",
  1662. "header": [
  1663. {
  1664. "key": "Authorization",
  1665. "value": "Rong {{mgetoken}}"
  1666. }
  1667. ],
  1668. "body": {
  1669. "mode": "raw",
  1670. "raw": ""
  1671. },
  1672. "url": {
  1673. "raw": "{{url}}/api/notice/statistics/?notice={{notice_id}}",
  1674. "host": [
  1675. "{{url}}"
  1676. ],
  1677. "path": [
  1678. "api",
  1679. "notice",
  1680. "statistics",
  1681. ""
  1682. ],
  1683. "query": [
  1684. {
  1685. "key": "notice",
  1686. "value": "{{notice_id}}"
  1687. }
  1688. ]
  1689. }
  1690. },
  1691. "response": []
  1692. },
  1693. {
  1694. "name": "put_notice_simple",
  1695. "event": [
  1696. {
  1697. "listen": "test",
  1698. "script": {
  1699. "type": "text/javascript",
  1700. "exec": [
  1701. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  1702. ]
  1703. }
  1704. }
  1705. ],
  1706. "request": {
  1707. "method": "PUT",
  1708. "header": [
  1709. {
  1710. "key": "Authorization",
  1711. "value": "Rong {{mgetoken}}"
  1712. },
  1713. {
  1714. "key": "Content-Type",
  1715. "value": "application/json"
  1716. }
  1717. ],
  1718. "body": {
  1719. "mode": "raw",
  1720. "raw": "{\r\n\t\"title\": \"开会通知\",\r\n\t\"content\": \"请于14:00准时到会议室开始,会议延期至15:00开始,望互相转告,谢谢!\",\r\n\t\"read\": [\r\n\t{{user01comp_id}}, \r\n\t{{mgecomp_id}}\r\n\t\t]\r\n}"
  1721. },
  1722. "url": {
  1723. "raw": "{{url}}/api/notice/notice/{{notice_id}}/",
  1724. "host": [
  1725. "{{url}}"
  1726. ],
  1727. "path": [
  1728. "api",
  1729. "notice",
  1730. "notice",
  1731. "{{notice_id}}",
  1732. ""
  1733. ]
  1734. }
  1735. },
  1736. "response": []
  1737. },
  1738. {
  1739. "name": "delete_notice_simple",
  1740. "event": [
  1741. {
  1742. "listen": "test",
  1743. "script": {
  1744. "type": "text/javascript",
  1745. "exec": [
  1746. "tests[\"Status code is 204\"] = responseCode.code === 204;"
  1747. ]
  1748. }
  1749. }
  1750. ],
  1751. "request": {
  1752. "method": "DELETE",
  1753. "header": [
  1754. {
  1755. "key": "Authorization",
  1756. "value": "Rong {{mgetoken}}"
  1757. }
  1758. ],
  1759. "body": {
  1760. "mode": "raw",
  1761. "raw": ""
  1762. },
  1763. "url": {
  1764. "raw": "{{url}}/api/notice/notice/{{notice_id}}/",
  1765. "host": [
  1766. "{{url}}"
  1767. ],
  1768. "path": [
  1769. "api",
  1770. "notice",
  1771. "notice",
  1772. "{{notice_id}}",
  1773. ""
  1774. ]
  1775. }
  1776. },
  1777. "response": []
  1778. },
  1779. {
  1780. "name": "post_notice_vote_1",
  1781. "event": [
  1782. {
  1783. "listen": "test",
  1784. "script": {
  1785. "type": "text/javascript",
  1786. "exec": [
  1787. "tests[\"Successful POST request\"] = responseCode.code === 201;",
  1788. "",
  1789. "var jsonData = JSON.parse(responseBody);",
  1790. " ",
  1791. " postman.setEnvironmentVariable(\"notice_vote_id\", jsonData.id);"
  1792. ]
  1793. }
  1794. }
  1795. ],
  1796. "request": {
  1797. "method": "POST",
  1798. "header": [
  1799. {
  1800. "key": "Authorization",
  1801. "value": "Rong {{mgetoken}}"
  1802. },
  1803. {
  1804. "key": "Content-Type",
  1805. "value": "application/json"
  1806. }
  1807. ],
  1808. "body": {
  1809. "mode": "raw",
  1810. "raw": "\r\n{\r\n\t\"title\": \"发布投票公告\",\r\n\t\"content\": \"有关中秋节假日放假,公司组织相关活动,征收大家的建议,请积极地投票\",\r\n\t\"read\": [{{user01comp_id}}, \r\n\t{{mgecomp_id}},{{user02comp_id}}],\r\n\t\"feedback\": [{\r\n\t\t\"title\": \"中秋节去哪里玩比较好\",\r\n\t\t\"endat\": \"2018-09-13\",\r\n\t\t\"type\": 1,\r\n\t\t\"items\": \"{\\\"type\\\":\\\"0\\\",\\\"item\\\":[{\\\"content\\\":\\\"杭州\\\"},{\\\"content\\\":\\\"上海\\\"},{\\\"content\\\":\\\"北京\\\"},{\\\"content\\\":\\\"深圳\\\"}]}\"\r\n\t}]\r\n}"
  1811. },
  1812. "url": {
  1813. "raw": "{{url}}/api/notice/notice/",
  1814. "host": [
  1815. "{{url}}"
  1816. ],
  1817. "path": [
  1818. "api",
  1819. "notice",
  1820. "notice",
  1821. ""
  1822. ]
  1823. }
  1824. },
  1825. "response": []
  1826. },
  1827. {
  1828. "name": "get_notice_vote",
  1829. "event": [
  1830. {
  1831. "listen": "test",
  1832. "script": {
  1833. "type": "text/javascript",
  1834. "exec": [
  1835. "tests[\"Successful POST request\"] = responseCode.code === 200;",
  1836. "",
  1837. " var jsonData = JSON.parse(responseBody);",
  1838. " ",
  1839. " postman.setEnvironmentVariable(\"feedback_id\", jsonData.feedback[0].id);"
  1840. ]
  1841. }
  1842. }
  1843. ],
  1844. "request": {
  1845. "method": "GET",
  1846. "header": [
  1847. {
  1848. "key": "Authorization",
  1849. "value": "Rong {{mgetoken}}"
  1850. },
  1851. {
  1852. "key": "Content-Type",
  1853. "value": "application/json",
  1854. "disabled": true
  1855. }
  1856. ],
  1857. "body": {
  1858. "mode": "raw",
  1859. "raw": ""
  1860. },
  1861. "url": {
  1862. "raw": "{{url}}/api/notice/notice/{{notice_vote_id}}/",
  1863. "host": [
  1864. "{{url}}"
  1865. ],
  1866. "path": [
  1867. "api",
  1868. "notice",
  1869. "notice",
  1870. "{{notice_vote_id}}",
  1871. ""
  1872. ]
  1873. }
  1874. },
  1875. "response": []
  1876. },
  1877. {
  1878. "name": "post_notice_userfeedfback_vote_mge",
  1879. "event": [
  1880. {
  1881. "listen": "test",
  1882. "script": {
  1883. "id": "f0bf6071-ffea-4272-bc19-9deea5ebc793",
  1884. "exec": [
  1885. "tests[\"Successful POST request\"] = responseCode.code === 201;"
  1886. ],
  1887. "type": "text/javascript"
  1888. }
  1889. }
  1890. ],
  1891. "request": {
  1892. "method": "POST",
  1893. "header": [
  1894. {
  1895. "key": "Authorization",
  1896. "value": "Rong {{mgetoken}}"
  1897. },
  1898. {
  1899. "key": "Content-Type",
  1900. "value": "application/json"
  1901. }
  1902. ],
  1903. "body": {
  1904. "mode": "raw",
  1905. "raw": "{\r\n\t\"content\": \"[{\\\"content\\\":\\\"杭州\\\"}]\",\r\n\t\"feedback\":{{feedback_id}}\r\n}"
  1906. },
  1907. "url": {
  1908. "raw": "{{url}}/api/notice/userfeedback/",
  1909. "host": [
  1910. "{{url}}"
  1911. ],
  1912. "path": [
  1913. "api",
  1914. "notice",
  1915. "userfeedback",
  1916. ""
  1917. ]
  1918. }
  1919. },
  1920. "response": []
  1921. },
  1922. {
  1923. "name": "post_notice_userfeedfback_vote_user01_giveup",
  1924. "event": [
  1925. {
  1926. "listen": "test",
  1927. "script": {
  1928. "type": "text/javascript",
  1929. "exec": [
  1930. "tests[\"Successful POST request\"] = responseCode.code === 201;"
  1931. ]
  1932. }
  1933. }
  1934. ],
  1935. "request": {
  1936. "method": "POST",
  1937. "header": [
  1938. {
  1939. "key": "Authorization",
  1940. "value": "Rong {{user01token}}"
  1941. },
  1942. {
  1943. "key": "Content-Type",
  1944. "value": "application/json"
  1945. }
  1946. ],
  1947. "body": {
  1948. "mode": "raw",
  1949. "raw": "{\r\n\t\"content\": \"\",\r\n\t\"feedback\": {{feedback_id}},\r\n\t\"give_up\": true\r\n}"
  1950. },
  1951. "url": {
  1952. "raw": "{{url}}/api/notice/userfeedback/",
  1953. "host": [
  1954. "{{url}}"
  1955. ],
  1956. "path": [
  1957. "api",
  1958. "notice",
  1959. "userfeedback",
  1960. ""
  1961. ]
  1962. }
  1963. },
  1964. "response": []
  1965. },
  1966. {
  1967. "name": "post_notice_userfeedfback_vote_user03",
  1968. "event": [
  1969. {
  1970. "listen": "test",
  1971. "script": {
  1972. "type": "text/javascript",
  1973. "exec": [
  1974. "tests[\"Successful POST request\"] = responseCode.code === 201;"
  1975. ]
  1976. }
  1977. }
  1978. ],
  1979. "request": {
  1980. "method": "POST",
  1981. "header": [
  1982. {
  1983. "key": "Authorization",
  1984. "value": "Rong {{user02token}}"
  1985. },
  1986. {
  1987. "key": "Content-Type",
  1988. "value": "application/json"
  1989. }
  1990. ],
  1991. "body": {
  1992. "mode": "raw",
  1993. "raw": "{\r\n\t\"content\": \"[{\\\"content\\\":\\\"北京\\\"}]\",\r\n\t\"feedback\": {{feedback_id}}\r\n}"
  1994. },
  1995. "url": {
  1996. "raw": "{{url}}/api/notice/userfeedback/",
  1997. "host": [
  1998. "{{url}}"
  1999. ],
  2000. "path": [
  2001. "api",
  2002. "notice",
  2003. "userfeedback",
  2004. ""
  2005. ]
  2006. }
  2007. },
  2008. "response": []
  2009. },
  2010. {
  2011. "name": "delete_notice_vote",
  2012. "event": [
  2013. {
  2014. "listen": "test",
  2015. "script": {
  2016. "type": "text/javascript",
  2017. "exec": [
  2018. "tests[\"Status code is 204\"] = responseCode.code === 204;"
  2019. ]
  2020. }
  2021. }
  2022. ],
  2023. "request": {
  2024. "method": "DELETE",
  2025. "header": [
  2026. {
  2027. "key": "Authorization",
  2028. "value": "Rong {{mgetoken}}"
  2029. },
  2030. {
  2031. "key": "Content-Type",
  2032. "value": "application/json"
  2033. }
  2034. ],
  2035. "body": {
  2036. "mode": "raw",
  2037. "raw": ""
  2038. },
  2039. "url": {
  2040. "raw": "{{url}}/api/notice/notice/{{notice_vote_id}}/",
  2041. "host": [
  2042. "{{url}}"
  2043. ],
  2044. "path": [
  2045. "api",
  2046. "notice",
  2047. "notice",
  2048. "{{notice_vote_id}}",
  2049. ""
  2050. ]
  2051. }
  2052. },
  2053. "response": []
  2054. },
  2055. {
  2056. "name": "post_notice_feedback_2",
  2057. "event": [
  2058. {
  2059. "listen": "test",
  2060. "script": {
  2061. "type": "text/javascript",
  2062. "exec": [
  2063. "tests[\"Status code is 201\"] = responseCode.code === 201;",
  2064. "",
  2065. "var jsonData = JSON.parse(responseBody);",
  2066. " ",
  2067. " postman.setEnvironmentVariable(\"notice_feedback_id\", jsonData.id);",
  2068. ""
  2069. ]
  2070. }
  2071. }
  2072. ],
  2073. "request": {
  2074. "method": "POST",
  2075. "header": [
  2076. {
  2077. "key": "Authorization",
  2078. "value": "Rong {{mgetoken}}"
  2079. },
  2080. {
  2081. "key": "Content-Type",
  2082. "value": "application/json"
  2083. }
  2084. ],
  2085. "body": {
  2086. "mode": "raw",
  2087. "raw": "{\r\n\t\"title\": \"发布反馈公告\",\r\n\t\"content\": \"有关发布反馈公告内容的相关通知,调查员工工作情况\",\r\n\t\"read\": [{{user01comp_id}}, \r\n\t{{mgecomp_id}},{{user02comp_id}}],\r\n\t\"feedback\": [{\r\n\t\t\"title\": \"大家最近的工作\",\r\n\t\t\"endat\": \"2018-09-14\",\r\n\t\t\"type\": 0\r\n\t}]\r\n}"
  2088. },
  2089. "url": {
  2090. "raw": "{{url}}/api/notice/notice/",
  2091. "host": [
  2092. "{{url}}"
  2093. ],
  2094. "path": [
  2095. "api",
  2096. "notice",
  2097. "notice",
  2098. ""
  2099. ]
  2100. }
  2101. },
  2102. "response": []
  2103. },
  2104. {
  2105. "name": "get_notice_feedback",
  2106. "event": [
  2107. {
  2108. "listen": "test",
  2109. "script": {
  2110. "type": "text/javascript",
  2111. "exec": [
  2112. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  2113. "",
  2114. "var jsonData = JSON.parse(responseBody);",
  2115. " ",
  2116. " postman.setEnvironmentVariable(\"feedback_feedback_id\", jsonData.feedback[0].id);"
  2117. ]
  2118. }
  2119. }
  2120. ],
  2121. "request": {
  2122. "method": "GET",
  2123. "header": [
  2124. {
  2125. "key": "Authorization",
  2126. "value": "Rong {{mgetoken}}"
  2127. }
  2128. ],
  2129. "body": {
  2130. "mode": "raw",
  2131. "raw": ""
  2132. },
  2133. "url": {
  2134. "raw": "{{url}}/api/notice/notice/{{notice_feedback_id}}/",
  2135. "host": [
  2136. "{{url}}"
  2137. ],
  2138. "path": [
  2139. "api",
  2140. "notice",
  2141. "notice",
  2142. "{{notice_feedback_id}}",
  2143. ""
  2144. ]
  2145. }
  2146. },
  2147. "response": []
  2148. },
  2149. {
  2150. "name": "post_notice_userfeedback_mge_feedback",
  2151. "event": [
  2152. {
  2153. "listen": "test",
  2154. "script": {
  2155. "type": "text/javascript",
  2156. "exec": [
  2157. "tests[\"Status code is 201\"] = responseCode.code === 201;"
  2158. ]
  2159. }
  2160. }
  2161. ],
  2162. "request": {
  2163. "method": "POST",
  2164. "header": [
  2165. {
  2166. "key": "Authorization",
  2167. "value": "Rong {{mgetoken}}"
  2168. },
  2169. {
  2170. "key": "Content-Type",
  2171. "value": "application/json"
  2172. }
  2173. ],
  2174. "body": {
  2175. "mode": "raw",
  2176. "raw": "{\r\n\t\"content\": \"整体觉得还行,主要有以下几点内容需要特别注意的!\",\r\n\t\"feedback\": {{feedback_feedback_id}}\r\n}"
  2177. },
  2178. "url": {
  2179. "raw": "{{url}}/api/notice/userfeedback/",
  2180. "host": [
  2181. "{{url}}"
  2182. ],
  2183. "path": [
  2184. "api",
  2185. "notice",
  2186. "userfeedback",
  2187. ""
  2188. ]
  2189. }
  2190. },
  2191. "response": []
  2192. },
  2193. {
  2194. "name": "post_notice_userfeedback_user01_feedback",
  2195. "event": [
  2196. {
  2197. "listen": "test",
  2198. "script": {
  2199. "type": "text/javascript",
  2200. "exec": [
  2201. "tests[\"Status code is 201\"] = responseCode.code === 201;"
  2202. ]
  2203. }
  2204. }
  2205. ],
  2206. "request": {
  2207. "method": "POST",
  2208. "header": [
  2209. {
  2210. "key": "Authorization",
  2211. "value": "Rong {{user01token}}"
  2212. },
  2213. {
  2214. "key": "Content-Type",
  2215. "value": "application/json"
  2216. }
  2217. ],
  2218. "body": {
  2219. "mode": "raw",
  2220. "raw": "{\r\n\t\"content\": \"整体还是可以的,还可以吧!\",\r\n\t\"feedback\": {{feedback_feedback_id}}\r\n}"
  2221. },
  2222. "url": {
  2223. "raw": "{{url}}/api/notice/userfeedback/",
  2224. "host": [
  2225. "{{url}}"
  2226. ],
  2227. "path": [
  2228. "api",
  2229. "notice",
  2230. "userfeedback",
  2231. ""
  2232. ]
  2233. }
  2234. },
  2235. "response": []
  2236. },
  2237. {
  2238. "name": "post_notice_userfeedback_user02_feedback",
  2239. "event": [
  2240. {
  2241. "listen": "test",
  2242. "script": {
  2243. "id": "a8ecdaf0-1c70-4f1b-98b0-469a52c4f52a",
  2244. "exec": [
  2245. "tests[\"Status code is 201\"] = responseCode.code === 201;"
  2246. ],
  2247. "type": "text/javascript"
  2248. }
  2249. }
  2250. ],
  2251. "request": {
  2252. "method": "POST",
  2253. "header": [
  2254. {
  2255. "key": "Authorization",
  2256. "value": "Rong {{user02token}}"
  2257. },
  2258. {
  2259. "key": "Content-Type",
  2260. "value": "application/json"
  2261. }
  2262. ],
  2263. "body": {
  2264. "mode": "raw",
  2265. "raw": "{\r\n\t\"content\": \"不大好,整体的感觉工作氛围不是那么地严谨,工作氛围不够融洽,大家有事没事都进行着讨论,总感觉不是那么的自在!!\",\r\n\t\"feedback\": {{feedback_feedback_id}}\r\n}"
  2266. },
  2267. "url": {
  2268. "raw": "{{url}}/api/notice/userfeedback/",
  2269. "host": [
  2270. "{{url}}"
  2271. ],
  2272. "path": [
  2273. "api",
  2274. "notice",
  2275. "userfeedback",
  2276. ""
  2277. ]
  2278. }
  2279. },
  2280. "response": []
  2281. },
  2282. {
  2283. "name": "get_notice_statistics_feedback",
  2284. "event": [
  2285. {
  2286. "listen": "test",
  2287. "script": {
  2288. "type": "text/javascript",
  2289. "exec": [
  2290. "tests[\"Status code is 200\"] = responseCode.code === 200;"
  2291. ]
  2292. }
  2293. }
  2294. ],
  2295. "request": {
  2296. "method": "GET",
  2297. "header": [
  2298. {
  2299. "key": "Authorization",
  2300. "value": "Rong {{mgetoken}}"
  2301. }
  2302. ],
  2303. "body": {
  2304. "mode": "raw",
  2305. "raw": ""
  2306. },
  2307. "url": {
  2308. "raw": "{{url}}/api/notice/statistics/?notice={{notice_feedback_id}}",
  2309. "host": [
  2310. "{{url}}"
  2311. ],
  2312. "path": [
  2313. "api",
  2314. "notice",
  2315. "statistics",
  2316. ""
  2317. ],
  2318. "query": [
  2319. {
  2320. "key": "notice",
  2321. "value": "{{notice_feedback_id}}"
  2322. }
  2323. ]
  2324. }
  2325. },
  2326. "response": []
  2327. },
  2328. {
  2329. "name": "delete_notice_feedback",
  2330. "event": [
  2331. {
  2332. "listen": "test",
  2333. "script": {
  2334. "type": "text/javascript",
  2335. "exec": [
  2336. "tests[\"Status code is 204\"] = responseCode.code === 204;"
  2337. ]
  2338. }
  2339. }
  2340. ],
  2341. "request": {
  2342. "method": "DELETE",
  2343. "header": [
  2344. {
  2345. "key": "Authorization",
  2346. "value": "Rong {{mgetoken}}"
  2347. },
  2348. {
  2349. "key": "Content-Type",
  2350. "value": "application/json"
  2351. }
  2352. ],
  2353. "body": {
  2354. "mode": "raw",
  2355. "raw": ""
  2356. },
  2357. "url": {
  2358. "raw": "{{url}}/api/notice/notice/{{notice_feedback_id}}/",
  2359. "host": [
  2360. "{{url}}"
  2361. ],
  2362. "path": [
  2363. "api",
  2364. "notice",
  2365. "notice",
  2366. "{{notice_feedback_id}}",
  2367. ""
  2368. ]
  2369. }
  2370. },
  2371. "response": []
  2372. },
  2373. {
  2374. "name": "post_notice_total_3",
  2375. "event": [
  2376. {
  2377. "listen": "test",
  2378. "script": {
  2379. "type": "text/javascript",
  2380. "exec": [
  2381. "tests[\"Status code is 201\"] = responseCode.code === 201;",
  2382. "",
  2383. "var jsonData = JSON.parse(responseBody);",
  2384. " ",
  2385. " postman.setEnvironmentVariable(\"notice_vote_feedback_id\", jsonData.id);",
  2386. ""
  2387. ]
  2388. }
  2389. }
  2390. ],
  2391. "request": {
  2392. "method": "POST",
  2393. "header": [
  2394. {
  2395. "key": "Authorization",
  2396. "value": "Rong {{mgetoken}}"
  2397. },
  2398. {
  2399. "key": "Content-Type",
  2400. "value": "application/json"
  2401. }
  2402. ],
  2403. "body": {
  2404. "mode": "raw",
  2405. "raw": "{\r\n\t\"title\": \"发布综合公告通知\",\r\n\t\"content\": \"有关投票与反馈的相关公告内容\",\r\n\t\"read\": [{{user01comp_id}}, \r\n\t{{mgecomp_id}},{{user02comp_id}}],\r\n\t\"feedback\": [{\r\n\t\t\"title\": \"现有制度偏向于传统方式,是否需要进行制度调整\",\r\n\t\t\"endat\": \"2018-09-14\",\r\n\t\t\"type\": 0\r\n\t}, {\r\n\t\t\"title\": \"是否需要进行制度调整\",\r\n\t\t\"endat\": \"2018-09-14\",\r\n\t\t\"type\": 1,\r\n\t\t\"items\": \"{\\\"type\\\":\\\"0\\\",\\\"item\\\":[{\\\"content\\\":\\\"需要\\\"},{\\\"content\\\":\\\"不需要\\\"},{\\\"content\\\":\\\"保持原样\\\"}]}\"\r\n\t}]\r\n}"
  2406. },
  2407. "url": {
  2408. "raw": "{{url}}/api/notice/notice/",
  2409. "host": [
  2410. "{{url}}"
  2411. ],
  2412. "path": [
  2413. "api",
  2414. "notice",
  2415. "notice",
  2416. ""
  2417. ]
  2418. }
  2419. },
  2420. "response": []
  2421. },
  2422. {
  2423. "name": "get_notice_vote_feedback",
  2424. "event": [
  2425. {
  2426. "listen": "test",
  2427. "script": {
  2428. "type": "text/javascript",
  2429. "exec": [
  2430. "tests[\"Status code is 200\"] = responseCode.code === 200;",
  2431. "",
  2432. "var jsonData = JSON.parse(responseBody);",
  2433. " ",
  2434. " postman.setEnvironmentVariable(\"all_feedback_id\", jsonData.feedback[0].id);",
  2435. " ",
  2436. " postman.setEnvironmentVariable(\"all_vote_id\", jsonData.feedback[1].id);"
  2437. ]
  2438. }
  2439. }
  2440. ],
  2441. "request": {
  2442. "method": "GET",
  2443. "header": [
  2444. {
  2445. "key": "Authorization",
  2446. "value": "Rong {{mgetoken}}"
  2447. }
  2448. ],
  2449. "body": {
  2450. "mode": "raw",
  2451. "raw": ""
  2452. },
  2453. "url": {
  2454. "raw": "{{url}}/api/notice/notice/{{notice_vote_feedback_id}}/",
  2455. "host": [
  2456. "{{url}}"
  2457. ],
  2458. "path": [
  2459. "api",
  2460. "notice",
  2461. "notice",
  2462. "{{notice_vote_feedback_id}}",
  2463. ""
  2464. ]
  2465. }
  2466. },
  2467. "response": []
  2468. },
  2469. {
  2470. "name": "post_notice_userfeedback_mge_votefeedback_feedback",
  2471. "event": [
  2472. {
  2473. "listen": "test",
  2474. "script": {
  2475. "type": "text/javascript",
  2476. "exec": [
  2477. "tests[\"Status code is 201\"] = responseCode.code === 201;"
  2478. ]
  2479. }
  2480. }
  2481. ],
  2482. "request": {
  2483. "method": "POST",
  2484. "header": [
  2485. {
  2486. "key": "Authorization",
  2487. "value": "Rong {{mgetoken}}"
  2488. },
  2489. {
  2490. "key": "Content-Type",
  2491. "value": "application/json"
  2492. }
  2493. ],
  2494. "body": {
  2495. "mode": "raw",
  2496. "raw": "{\r\n\t\"content\": \"应该是需要调整的,不然与现在社会发展的速度相比,有些落后!\",\r\n\t\"feedback\": {{all_feedback_id}}\r\n}"
  2497. },
  2498. "url": {
  2499. "raw": "{{url}}/api/notice/userfeedback/",
  2500. "host": [
  2501. "{{url}}"
  2502. ],
  2503. "path": [
  2504. "api",
  2505. "notice",
  2506. "userfeedback",
  2507. ""
  2508. ]
  2509. }
  2510. },
  2511. "response": []
  2512. },
  2513. {
  2514. "name": "post_notice_userfeedback_mge_votefeedback_vote",
  2515. "event": [
  2516. {
  2517. "listen": "test",
  2518. "script": {
  2519. "type": "text/javascript",
  2520. "exec": [
  2521. "tests[\"Status code is 201\"] = responseCode.code === 201;"
  2522. ]
  2523. }
  2524. }
  2525. ],
  2526. "request": {
  2527. "method": "POST",
  2528. "header": [
  2529. {
  2530. "key": "Authorization",
  2531. "value": "Rong {{mgetoken}}"
  2532. },
  2533. {
  2534. "key": "Content-Type",
  2535. "value": "application/json"
  2536. }
  2537. ],
  2538. "body": {
  2539. "mode": "raw",
  2540. "raw": "{\r\n\t\t\"content\": \"[{\\\"content\\\":\\\"需要\\\"}]\",\r\n\t\"feedback\": {{all_vote_id}}\r\n}"
  2541. },
  2542. "url": {
  2543. "raw": "{{url}}/api/notice/userfeedback/",
  2544. "host": [
  2545. "{{url}}"
  2546. ],
  2547. "path": [
  2548. "api",
  2549. "notice",
  2550. "userfeedback",
  2551. ""
  2552. ]
  2553. }
  2554. },
  2555. "response": []
  2556. },
  2557. {
  2558. "name": "post_notice_userfeedback_user01_votefeedback_feedback",
  2559. "event": [
  2560. {
  2561. "listen": "test",
  2562. "script": {
  2563. "type": "text/javascript",
  2564. "exec": [
  2565. "tests[\"Status code is 201\"] = responseCode.code === 201;"
  2566. ]
  2567. }
  2568. }
  2569. ],
  2570. "request": {
  2571. "method": "POST",
  2572. "header": [
  2573. {
  2574. "key": "Authorization",
  2575. "value": "Rong {{user01token}}"
  2576. },
  2577. {
  2578. "key": "Content-Type",
  2579. "value": "application/json"
  2580. }
  2581. ],
  2582. "body": {
  2583. "mode": "raw",
  2584. "raw": "{\r\n\t\"content\": \"我觉得不需要现有制度的内容已经让我们很好地运行了十多年,如果改革的话,势必会引起一场变动,而这种变动不是我们所能够承受的起的!\",\r\n\t\"feedback\": {{all_feedback_id}}\r\n}"
  2585. },
  2586. "url": {
  2587. "raw": "{{url}}/api/notice/userfeedback/",
  2588. "host": [
  2589. "{{url}}"
  2590. ],
  2591. "path": [
  2592. "api",
  2593. "notice",
  2594. "userfeedback",
  2595. ""
  2596. ]
  2597. }
  2598. },
  2599. "response": []
  2600. },
  2601. {
  2602. "name": "post_notice_userfeedback_user01_votefeedback_vote",
  2603. "event": [
  2604. {
  2605. "listen": "test",
  2606. "script": {
  2607. "type": "text/javascript",
  2608. "exec": [
  2609. "tests[\"Status code is 201\"] = responseCode.code === 201;"
  2610. ]
  2611. }
  2612. }
  2613. ],
  2614. "request": {
  2615. "method": "POST",
  2616. "header": [
  2617. {
  2618. "key": "Authorization",
  2619. "value": "Rong {{user01token}}"
  2620. },
  2621. {
  2622. "key": "Content-Type",
  2623. "value": "application/json"
  2624. }
  2625. ],
  2626. "body": {
  2627. "mode": "raw",
  2628. "raw": "{\r\n\t\t\"content\": \"[{\\\"content\\\":\\\"不需要\\\"}]\",\r\n \t\"feedback\": {{all_vote_id}}\r\n}"
  2629. },
  2630. "url": {
  2631. "raw": "{{url}}/api/notice/userfeedback/",
  2632. "host": [
  2633. "{{url}}"
  2634. ],
  2635. "path": [
  2636. "api",
  2637. "notice",
  2638. "userfeedback",
  2639. ""
  2640. ]
  2641. }
  2642. },
  2643. "response": []
  2644. },
  2645. {
  2646. "name": "post_notice_userfeedback_user02_votefeedback_feedback",
  2647. "event": [
  2648. {
  2649. "listen": "test",
  2650. "script": {
  2651. "type": "text/javascript",
  2652. "exec": [
  2653. "tests[\"Status code is 201\"] = responseCode.code === 201;"
  2654. ]
  2655. }
  2656. }
  2657. ],
  2658. "request": {
  2659. "method": "POST",
  2660. "header": [
  2661. {
  2662. "key": "Authorization",
  2663. "value": "Rong {{user02token}}"
  2664. },
  2665. {
  2666. "key": "Content-Type",
  2667. "value": "application/json"
  2668. }
  2669. ],
  2670. "body": {
  2671. "mode": "raw",
  2672. "raw": "{\r\n\t\"content\": \"不改革和改革都有其一定的道理,我觉得公司做的最终目的是能够跟进这个社会发展,但是现有的制度是能够继续向前进,调动是可以局部调动,不影响整体,但是大变动不适宜,回顾公司走过来的十多年,这些制度是否严重阻碍发展,大家都看在眼里,所以我表示支持!\",\r\n\t\"feedback\": {{all_feedback_id}}\r\n}"
  2673. },
  2674. "url": {
  2675. "raw": "{{url}}/api/notice/userfeedback/",
  2676. "host": [
  2677. "{{url}}"
  2678. ],
  2679. "path": [
  2680. "api",
  2681. "notice",
  2682. "userfeedback",
  2683. ""
  2684. ]
  2685. }
  2686. },
  2687. "response": []
  2688. },
  2689. {
  2690. "name": "post_notice_userfeedback_user02_votefeedback_vote",
  2691. "event": [
  2692. {
  2693. "listen": "test",
  2694. "script": {
  2695. "type": "text/javascript",
  2696. "exec": [
  2697. "tests[\"Status code is 201\"] = responseCode.code === 201;"
  2698. ]
  2699. }
  2700. }
  2701. ],
  2702. "request": {
  2703. "method": "POST",
  2704. "header": [
  2705. {
  2706. "key": "Authorization",
  2707. "value": "Rong {{user02token}}"
  2708. },
  2709. {
  2710. "key": "Content-Type",
  2711. "value": "application/json"
  2712. }
  2713. ],
  2714. "body": {
  2715. "mode": "raw",
  2716. "raw": "{\r\n\t\t\"content\": \"[{\\\"content\\\":\\\"需要\\\"}]\",\r\n \t\"feedback\": {{all_vote_id}}\r\n}"
  2717. },
  2718. "url": {
  2719. "raw": "{{url}}/api/notice/userfeedback/",
  2720. "host": [
  2721. "{{url}}"
  2722. ],
  2723. "path": [
  2724. "api",
  2725. "notice",
  2726. "userfeedback",
  2727. ""
  2728. ]
  2729. }
  2730. },
  2731. "response": []
  2732. },
  2733. {
  2734. "name": "delete_notice_feedback copy",
  2735. "event": [
  2736. {
  2737. "listen": "test",
  2738. "script": {
  2739. "type": "text/javascript",
  2740. "exec": [
  2741. "tests[\"Status code is 204\"] = responseCode.code === 204;"
  2742. ]
  2743. }
  2744. }
  2745. ],
  2746. "request": {
  2747. "method": "DELETE",
  2748. "header": [
  2749. {
  2750. "key": "Authorization",
  2751. "value": "Rong {{mgetoken}}"
  2752. }
  2753. ],
  2754. "body": {
  2755. "mode": "raw",
  2756. "raw": ""
  2757. },
  2758. "url": {
  2759. "raw": "{{url}}/api/notice/notice/{{notice_vote_feedback_id}}/",
  2760. "host": [
  2761. "{{url}}"
  2762. ],
  2763. "path": [
  2764. "api",
  2765. "notice",
  2766. "notice",
  2767. "{{notice_vote_feedback_id}}",
  2768. ""
  2769. ]
  2770. }
  2771. },
  2772. "response": []
  2773. }
  2774. ]
  2775. }
  2776. ]
  2777. }