api_data.json 85 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268
  1. [
  2. {
  3. "type": "get",
  4. "url": "/",
  5. "title": "获取首页信息",
  6. "version": "1.0.0",
  7. "name": "getIndex",
  8. "group": "Common",
  9. "success": {
  10. "fields": {
  11. "Success 200": [
  12. {
  13. "group": "Success 200",
  14. "type": "Object[]",
  15. "optional": false,
  16. "field": "setting",
  17. "description": "<p>基本信息</p>"
  18. },
  19. {
  20. "group": "Success 200",
  21. "type": "String",
  22. "optional": false,
  23. "field": "setting.name",
  24. "description": "<p>站点名</p>"
  25. },
  26. {
  27. "group": "Success 200",
  28. "type": "Number",
  29. "optional": false,
  30. "field": "setting.farm",
  31. "description": "<p>当前的农场ID</p>"
  32. },
  33. {
  34. "group": "Success 200",
  35. "type": "Object[]",
  36. "optional": false,
  37. "field": "farm",
  38. "description": "<p>农场基本信息</p>"
  39. },
  40. {
  41. "group": "Success 200",
  42. "type": "String",
  43. "optional": false,
  44. "field": "farm.name",
  45. "description": "<p>农场名</p>"
  46. },
  47. {
  48. "group": "Success 200",
  49. "type": "Object[]",
  50. "optional": false,
  51. "field": "gateway",
  52. "description": "<p>网关信息(环境监测)</p>"
  53. },
  54. {
  55. "group": "Success 200",
  56. "type": "String",
  57. "optional": false,
  58. "field": "gateway.name",
  59. "description": "<p>网关名称</p>"
  60. },
  61. {
  62. "group": "Success 200",
  63. "type": "String",
  64. "optional": false,
  65. "field": "gateway.id",
  66. "description": "<p>网关ID</p>"
  67. }
  68. ]
  69. }
  70. },
  71. "error": {
  72. "examples": [
  73. {
  74. "title": "操作成功",
  75. "content": "{\"status\": 1, \"msg\": \"yes\", \"code\": 0, \"data\": {\"farm\": {\"info\": \"\", \"master_name\": \"\", \"tel\": \"\", \"name\": \"\\u9ed8\\u8ba4\\u56ed\\u533a\", \"pic\": \"\", \"cdate\": 1503915445, \"state\": true, \"address\": \"\", \"id\": 1}, \"setting\": {\"farm\": 1, \"user\": 0, \"name\": \"\\u519c\\u5c0f\\u76d2\", \"copyright\": \"2017 nongxiaohe.com v1.0.0\", \"site\": \"http://www.nongxiaohe.com/\"}, \"msg\": 0, \"gateway\": [{\"status\": false, \"hardware_id\": 3213, \"name\": \"323\", \"farm_id\": 2, \"cdate\": 1504075691, \"state\": true, \"power_num\": null, \"power_status\": false, \"id\": \"d53db924-2043-500f-8140-b24780bb4691\"}, {\"status\": false, \"hardware_id\": 10086, \"name\": \"\\u9ed8\\u8ba4\\u7f51\\u5173\", \"farm_id\": 1, \"cdate\": 1503915445, \"state\": true, \"power_num\": null, \"power_status\": false, \"id\": \"5828ba1d-10de-5ebc-988d-345bc5ad40a8\"}]}}",
  76. "type": "json"
  77. },
  78. {
  79. "title": "操作失败",
  80. "content": "{\"status\": 2, \"msg\": \"\\u64cd\\u4f5c\\u5931\\u8d25\", \"code\": 0, \"data\": {}}",
  81. "type": "json"
  82. }
  83. ]
  84. },
  85. "filename": "/root/input/nongxiaohe/front/api/main.py",
  86. "groupTitle": "Common"
  87. },
  88. {
  89. "type": "post",
  90. "url": "/upload",
  91. "title": "上传图片",
  92. "version": "1.0.0",
  93. "name": "upload",
  94. "group": "Common",
  95. "parameter": {
  96. "fields": {
  97. "Parameter": [
  98. {
  99. "group": "Parameter",
  100. "type": "String",
  101. "optional": false,
  102. "field": "file",
  103. "description": "<p>文件流名称</p>"
  104. }
  105. ]
  106. }
  107. },
  108. "success": {
  109. "fields": {
  110. "Success 200": [
  111. {
  112. "group": "Success 200",
  113. "type": "Bool",
  114. "optional": false,
  115. "field": "status",
  116. "description": "<p>状态</p>"
  117. },
  118. {
  119. "group": "Success 200",
  120. "type": "String",
  121. "optional": false,
  122. "field": "msg",
  123. "description": "<p>描述</p>"
  124. },
  125. {
  126. "group": "Success 200",
  127. "type": "Number",
  128. "optional": false,
  129. "field": "code",
  130. "description": "<p>状态码</p>"
  131. },
  132. {
  133. "group": "Success 200",
  134. "type": "Object[]",
  135. "optional": false,
  136. "field": "data",
  137. "description": "<p>返回数据</p>"
  138. },
  139. {
  140. "group": "Success 200",
  141. "type": "String",
  142. "optional": false,
  143. "field": "data.src",
  144. "description": "<p>图片地址</p>"
  145. }
  146. ]
  147. }
  148. },
  149. "error": {
  150. "examples": [
  151. {
  152. "title": "操作成功",
  153. "content": "{\"status\": 1, \"msg\": \"操作成功\", \"code\": 0, \"data\": {\"src\":\"url\"}}",
  154. "type": "json"
  155. },
  156. {
  157. "title": "操作失败",
  158. "content": "{\"status\": 2, \"msg\": \"\\u64cd\\u4f5c\\u5931\\u8d25\", \"code\": 0, \"data\": {}}",
  159. "type": "json"
  160. }
  161. ]
  162. },
  163. "filename": "/root/input/nongxiaohe/front/api/upload.py",
  164. "groupTitle": "Common"
  165. },
  166. {
  167. "type": "get",
  168. "url": "/device",
  169. "title": "获取网关首页信息",
  170. "version": "1.0.0",
  171. "name": "getDevice",
  172. "group": "Device",
  173. "parameter": {
  174. "fields": {
  175. "Parameter": [
  176. {
  177. "group": "Parameter",
  178. "type": "String",
  179. "optional": false,
  180. "field": "id",
  181. "description": "<p>网关id</p>"
  182. }
  183. ]
  184. }
  185. },
  186. "success": {
  187. "fields": {
  188. "Success 200": [
  189. {
  190. "group": "Success 200",
  191. "type": "Object[]",
  192. "optional": false,
  193. "field": "setting",
  194. "description": "<p>基本信息</p>"
  195. },
  196. {
  197. "group": "Success 200",
  198. "type": "String",
  199. "optional": false,
  200. "field": "setting.name",
  201. "description": "<p>站点名</p>"
  202. },
  203. {
  204. "group": "Success 200",
  205. "type": "Number",
  206. "optional": false,
  207. "field": "setting.farm",
  208. "description": "<p>当前的农场ID</p>"
  209. },
  210. {
  211. "group": "Success 200",
  212. "type": "Object[]",
  213. "optional": false,
  214. "field": "info",
  215. "description": "<p>网关状态基本信息</p>"
  216. },
  217. {
  218. "group": "Success 200",
  219. "type": "String",
  220. "optional": false,
  221. "field": "info.id",
  222. "description": "<p>网关ID</p>"
  223. },
  224. {
  225. "group": "Success 200",
  226. "type": "String",
  227. "optional": false,
  228. "field": "info.name",
  229. "description": "<p>网关名称</p>"
  230. },
  231. {
  232. "group": "Success 200",
  233. "type": "Bool",
  234. "optional": false,
  235. "field": "info.status",
  236. "description": "<p>网关状态</p>"
  237. },
  238. {
  239. "group": "Success 200",
  240. "type": "Number",
  241. "optional": false,
  242. "field": "info.power",
  243. "description": "<p>电量</p>"
  244. },
  245. {
  246. "group": "Success 200",
  247. "type": "Object[]",
  248. "optional": false,
  249. "field": "device",
  250. "description": "<p>设备数据</p>"
  251. },
  252. {
  253. "group": "Success 200",
  254. "type": "Number",
  255. "optional": false,
  256. "field": "device.id",
  257. "description": "<p>设备ID</p>"
  258. },
  259. {
  260. "group": "Success 200",
  261. "type": "String",
  262. "optional": false,
  263. "field": "device.name",
  264. "description": "<p>设备名称</p>"
  265. },
  266. {
  267. "group": "Success 200",
  268. "type": "String",
  269. "optional": false,
  270. "field": "device.show",
  271. "description": "<p>显示的数据</p>"
  272. },
  273. {
  274. "group": "Success 200",
  275. "type": "String",
  276. "optional": false,
  277. "field": "device.unit",
  278. "description": "<p>设备的单位</p>"
  279. },
  280. {
  281. "group": "Success 200",
  282. "type": "Number",
  283. "optional": false,
  284. "field": "device.max",
  285. "description": "<p>设备的上限</p>"
  286. },
  287. {
  288. "group": "Success 200",
  289. "type": "Number",
  290. "optional": false,
  291. "field": "device.min",
  292. "description": "<p>设备的下限</p>"
  293. },
  294. {
  295. "group": "Success 200",
  296. "type": "Bool",
  297. "optional": false,
  298. "field": "device.status",
  299. "description": "<p>设备状态</p>"
  300. },
  301. {
  302. "group": "Success 200",
  303. "type": "Object[]",
  304. "optional": false,
  305. "field": "pic",
  306. "description": "<p>图像数据</p>"
  307. },
  308. {
  309. "group": "Success 200",
  310. "type": "Number",
  311. "optional": false,
  312. "field": "pic.id",
  313. "description": "<p>图片ID</p>"
  314. },
  315. {
  316. "group": "Success 200",
  317. "type": "String",
  318. "optional": false,
  319. "field": "pic.name",
  320. "description": "<p>图片名称</p>"
  321. },
  322. {
  323. "group": "Success 200",
  324. "type": "String",
  325. "optional": false,
  326. "field": "pic.show",
  327. "description": "<p>图片地址</p>"
  328. },
  329. {
  330. "group": "Success 200",
  331. "type": "String",
  332. "optional": false,
  333. "field": "pic.cdates",
  334. "description": "<p>采集时间</p>"
  335. },
  336. {
  337. "group": "Success 200",
  338. "type": "String",
  339. "optional": false,
  340. "field": "pic.cdate",
  341. "description": "<p>采集时间戳</p>"
  342. }
  343. ]
  344. }
  345. },
  346. "error": {
  347. "examples": [
  348. {
  349. "title": "操作成功",
  350. "content": "{\"status\": 1, \"msg\": \"yes\", \"code\": 0, \"data\": {\"info\": {\"status\": true, \"hardware_id\": 10086, \"name\": \"\\u9ed8\\u8ba4\\u7f51\\u5173\", \"farm_id\": 1, \"cdate\": 1504233947, \"state\": true, \"power_num\": \"\", \"power_status\": \"\", \"id\": \"ce37636b-3ce7-5de2-9160-0f3283f7d392\"}, \"device\": [{\"gateway_id\": \"ce37636b-3ce7-5de2-9160-0f3283f7d392\", \"hardware_station\": null, \"hardware_type\": 2, \"hardware_id\": 100009, \"name\": \"\\u6e7f\\u5ea6#100009\", \"type_id\": 2, \"max\": 0, \"farm_id\": 1, \"cdate\": 1504253837, \"state\": true, \"num\": 30, \"status\": true, \"min\": 0, \"show\": \"30\", \"id\": \"6d8a4c0e-4f85-524a-87f8-382c333c44da\", \"unit\": \"%RH\"}, {\"gateway_id\": \"ce37636b-3ce7-5de2-9160-0f3283f7d392\", \"hardware_station\": null, \"hardware_type\": 2, \"hardware_id\": 100000, \"name\": \"\\u6e7f\\u5ea6#100000\", \"type_id\": 2, \"max\": 0, \"farm_id\": 1, \"cdate\": 1504253836, \"state\": true, \"num\": 5, \"status\": true, \"min\": 0, \"show\": \"5\", \"id\": \"d644b079-9d4d-521c-8e65-8940c96ba9a7\", \"unit\": \"%RH\"}, {\"gateway_id\": \"ce37636b-3ce7-5de2-9160-0f3283f7d392\", \"hardware_station\": null, \"hardware_type\": 2, \"hardware_id\": 100001, \"name\": \"\\u6e7f\\u5ea6#100001\", \"type_id\": 2, \"max\": 0, \"farm_id\": 1, \"cdate\": 1504253835, \"state\": true, \"num\": 4, \"status\": true, \"min\": 0, \"show\": \"4\", \"id\": \"dc24428c-eafc-5715-b7d1-f3222d28c3bb\", \"unit\": \"%RH\"}, {\"gateway_id\": \"ce37636b-3ce7-5de2-9160-0f3283f7d392\", \"hardware_station\": null, \"hardware_type\": 2, \"hardware_id\": 100004, \"name\": \"\\u6e7f\\u5ea6#100004\", \"type_id\": 2, \"max\": 0, \"farm_id\": 1, \"cdate\": 1504253834, \"state\": true, \"num\": 17, \"status\": true, \"min\": 0, \"show\": \"17\", \"id\": \"62199416-cca0-5114-b900-a10f51e7e447\", \"unit\": \"%RH\"}, {\"gateway_id\": \"ce37636b-3ce7-5de2-9160-0f3283f7d392\", \"hardware_station\": null, \"hardware_type\": 2, \"hardware_id\": 100005, \"name\": \"\\u6e7f\\u5ea6#100005\", \"type_id\": 2, \"max\": 0, \"farm_id\": 1, \"cdate\": 1504253833, \"state\": true, \"num\": 7, \"status\": true, \"min\": 0, \"show\": \"7\", \"id\": \"456daa98-a1f0-59e6-a337-7ca1fa7b2527\", \"unit\": \"%RH\"}, {\"gateway_id\": \"ce37636b-3ce7-5de2-9160-0f3283f7d392\", \"hardware_station\": null, \"hardware_type\": 2, \"hardware_id\": 100003, \"name\": \"\\u6e7f\\u5ea6#100003\", \"type_id\": 2, \"max\": 0, \"farm_id\": 1, \"cdate\": 1504253832, \"state\": true, \"num\": 39, \"status\": true, \"min\": 0, \"show\": \"39\", \"id\": \"11bd4ad1-b4ff-5b1f-948a-935d859b408c\", \"unit\": \"%RH\"}, {\"gateway_id\": \"ce37636b-3ce7-5de2-9160-0f3283f7d392\", \"hardware_station\": null, \"hardware_type\": 2, \"hardware_id\": 100007, \"name\": \"\\u6e7f\\u5ea6#100007\", \"type_id\": 2, \"max\": 0, \"farm_id\": 1, \"cdate\": 1504253828, \"state\": true, \"num\": 43, \"status\": true, \"min\": 0, \"show\": \"43\", \"id\": \"f8e3a42a-7fa3-575a-b99e-2dab4f992239\", \"unit\": \"%RH\"}, {\"gateway_id\": \"ce37636b-3ce7-5de2-9160-0f3283f7d392\", \"hardware_station\": null, \"hardware_type\": 2, \"hardware_id\": 100010, \"name\": \"\\u6e7f\\u5ea6#100010\", \"type_id\": 2, \"max\": 0, \"farm_id\": 1, \"cdate\": 1504253827, \"state\": true, \"num\": 20, \"status\": true, \"min\": 0, \"show\": \"20\", \"id\": \"138876d7-1710-56fa-824b-10402cba17f8\", \"unit\": \"%RH\"}, {\"gateway_id\": \"ce37636b-3ce7-5de2-9160-0f3283f7d392\", \"hardware_station\": null, \"hardware_type\": 2, \"hardware_id\": 100002, \"name\": \"\\u6e7f\\u5ea6#100002\", \"type_id\": 2, \"max\": 0, \"farm_id\": 1, \"cdate\": 1504253826, \"state\": true, \"num\": 43, \"status\": true, \"min\": 0, \"show\": \"43\", \"id\": \"eecfe61f-de83-588f-8cbd-41519d4ebef3\", \"unit\": \"%RH\"}, {\"gateway_id\": \"ce37636b-3ce7-5de2-9160-0f3283f7d392\", \"hardware_station\": null, \"hardware_type\": 2, \"hardware_id\": 100006, \"name\": \"\\u6e7f\\u5ea6#100006\", \"type_id\": 2, \"max\": 0, \"farm_id\": 1, \"cdate\": 1504253818, \"state\": true, \"num\": 4, \"status\": true, \"min\": 0, \"show\": \"4\", \"id\": \"78bd90ac-6af3-5091-83e5-f3397063f743\", \"unit\": \"%RH\"}, {\"gateway_id\": \"ce37636b-3ce7-5de2-9160-0f3283f7d392\", \"hardware_station\": null, \"hardware_type\": 2, \"hardware_id\": 100008, \"name\": \"\\u6e7f\\u5ea6#100008\", \"type_id\": 2, \"max\": 0, \"farm_id\": 1, \"cdate\": 1504253815, \"state\": true, \"num\": 37, \"status\": true, \"min\": 0, \"show\": \"37\", \"id\": \"5fda8633-aed8-5a3b-8175-2c61e7553d91\", \"unit\": \"%RH\"}], \"setting\": {\"farm\": 1, \"user\": 0, \"name\": \"\\u519c\\u5c0f\\u76d2\", \"copyright\": \"2017 nongxiaohe.com v1.0.0\", \"site\": \"http://www.nongxiaohe.com/\"}, \"pic\": [{\"gateway_id\": \"ce37636b-3ce7-5de2-9160-0f3283f7d392\", \"hardware_station\": null, \"hardware_type\": 5, \"hardware_id\": 200001, \"name\": \"pic.jpg\", \"type_id\": null, \"farm_id\": 1, \"cdate\": 1504262668, \"cdates\": \"2017-09-01 10:44:28\", \"state\": true, \"num\": 0, \"status\": true, \"show\": \"/camera/2017/09/01/01c323ac0208580601252e2ce9eb3286.jpg\", \"id\": \"2f612150-f670-54e9-9886-a044cfb18e20\"}]}}",
  351. "type": "json"
  352. },
  353. {
  354. "title": "操作失败",
  355. "content": "{\"status\": 2, \"msg\": \"\\u64cd\\u4f5c\\u5931\\u8d25\", \"code\": 0, \"data\": {}}",
  356. "type": "json"
  357. }
  358. ]
  359. },
  360. "filename": "/root/input/nongxiaohe/front/api/device.py",
  361. "groupTitle": "Device"
  362. },
  363. {
  364. "type": "get",
  365. "url": "/device/msg",
  366. "title": "获取设备日志",
  367. "version": "1.0.0",
  368. "name": "getDeviceMsg",
  369. "group": "Device",
  370. "parameter": {
  371. "fields": {
  372. "Parameter": [
  373. {
  374. "group": "Parameter",
  375. "type": "String",
  376. "optional": false,
  377. "field": "page",
  378. "description": "<p>页数</p>"
  379. },
  380. {
  381. "group": "Parameter",
  382. "type": "String",
  383. "optional": false,
  384. "field": "id",
  385. "description": "<p>网关id</p>"
  386. },
  387. {
  388. "group": "Parameter",
  389. "type": "String",
  390. "optional": false,
  391. "field": "device",
  392. "description": "<p>设备id</p>"
  393. }
  394. ]
  395. }
  396. },
  397. "success": {
  398. "fields": {
  399. "Success 200": [
  400. {
  401. "group": "Success 200",
  402. "type": "Object[]",
  403. "optional": false,
  404. "field": "setting",
  405. "description": "<p>基本信息</p>"
  406. },
  407. {
  408. "group": "Success 200",
  409. "type": "String",
  410. "optional": false,
  411. "field": "setting.name",
  412. "description": "<p>站点名</p>"
  413. },
  414. {
  415. "group": "Success 200",
  416. "type": "Number",
  417. "optional": false,
  418. "field": "setting.farm",
  419. "description": "<p>当前的农场ID</p>"
  420. },
  421. {
  422. "group": "Success 200",
  423. "type": "Object[]",
  424. "optional": false,
  425. "field": "msg",
  426. "description": "<p>日志列表</p>"
  427. },
  428. {
  429. "group": "Success 200",
  430. "type": "Number",
  431. "optional": false,
  432. "field": "msg.id",
  433. "description": "<p>日志ID</p>"
  434. },
  435. {
  436. "group": "Success 200",
  437. "type": "String",
  438. "optional": false,
  439. "field": "msg.content",
  440. "description": "<p>日志内容</p>"
  441. },
  442. {
  443. "group": "Success 200",
  444. "type": "String",
  445. "optional": false,
  446. "field": "msg.cdates",
  447. "description": "<p>日志时间</p>"
  448. },
  449. {
  450. "group": "Success 200",
  451. "type": "String",
  452. "optional": false,
  453. "field": "msg.cdate",
  454. "description": "<p>日志时间戳</p>"
  455. },
  456. {
  457. "group": "Success 200",
  458. "type": "Object[]",
  459. "optional": false,
  460. "field": "page",
  461. "description": "<p>分页信息</p>"
  462. },
  463. {
  464. "group": "Success 200",
  465. "type": "String",
  466. "optional": false,
  467. "field": "page.current",
  468. "description": "<p>当前页</p>"
  469. },
  470. {
  471. "group": "Success 200",
  472. "type": "String",
  473. "optional": false,
  474. "field": "page.total",
  475. "description": "<p>总页数</p>"
  476. },
  477. {
  478. "group": "Success 200",
  479. "type": "String",
  480. "optional": false,
  481. "field": "page.num",
  482. "description": "<p>每页数据条数</p>"
  483. },
  484. {
  485. "group": "Success 200",
  486. "type": "String",
  487. "optional": false,
  488. "field": "page.totalNum",
  489. "description": "<p>总数据条数</p>"
  490. }
  491. ]
  492. }
  493. },
  494. "error": {
  495. "examples": [
  496. {
  497. "title": "操作成功",
  498. "content": "{\"status\": 1, \"msg\": \"yes\", \"code\": 0, \"data\": {\"info\": {\"status\": true, \"hardware_id\": 10086, \"name\": \"\\u9ed8\\u8ba4\\u7f51\\u5173\", \"farm_id\": 1, \"cdate\": 1504233947, \"state\": true, \"power_num\": \"\", \"power_status\": \"\", \"id\": \"ce37636b-3ce7-5de2-9160-0f3283f7d392\"}, \"msg\": [], \"setting\": {\"farm\": 1, \"user\": 0, \"name\": \"\\u519c\\u5c0f\\u76d2\", \"copyright\": \"2017 nongxiaohe.com v1.0.0\", \"site\": \"http://www.nongxiaohe.com/\"}, \"cur_device\": {\"gateway_id\": \"ce37636b-3ce7-5de2-9160-0f3283f7d392\", \"hardware_station\": \"\", \"hardware_type\": 2, \"hardware_id\": 100001, \"name\": \"\\u6e7f\\u5ea6#100001\", \"type_id\": 2, \"farm_id\": 1, \"cdate\": 1504253835, \"state\": true, \"num\": 4, \"status\": true, \"show\": \"4\", \"id\": \"dc24428c-eafc-5715-b7d1-f3222d28c3bb\"}}}",
  499. "type": "json"
  500. },
  501. {
  502. "title": "操作失败",
  503. "content": "{\"status\": 2, \"msg\": \"\\u64cd\\u4f5c\\u5931\\u8d25\", \"code\": 0, \"data\": {}}",
  504. "type": "json"
  505. }
  506. ]
  507. },
  508. "filename": "/root/input/nongxiaohe/front/api/device.py",
  509. "groupTitle": "Device"
  510. },
  511. {
  512. "type": "get",
  513. "url": "/device/pic",
  514. "title": "获取图像记录",
  515. "version": "1.0.0",
  516. "name": "getDevicePic",
  517. "group": "Device",
  518. "parameter": {
  519. "fields": {
  520. "Parameter": [
  521. {
  522. "group": "Parameter",
  523. "type": "String",
  524. "optional": false,
  525. "field": "page",
  526. "description": "<p>页数</p>"
  527. },
  528. {
  529. "group": "Parameter",
  530. "type": "String",
  531. "optional": false,
  532. "field": "id",
  533. "description": "<p>网关id</p>"
  534. },
  535. {
  536. "group": "Parameter",
  537. "type": "String",
  538. "optional": false,
  539. "field": "search_date",
  540. "description": "<p>拍照时间:2017-10-10</p>"
  541. }
  542. ]
  543. }
  544. },
  545. "success": {
  546. "fields": {
  547. "Success 200": [
  548. {
  549. "group": "Success 200",
  550. "type": "Object[]",
  551. "optional": false,
  552. "field": "setting",
  553. "description": "<p>基本信息</p>"
  554. },
  555. {
  556. "group": "Success 200",
  557. "type": "String",
  558. "optional": false,
  559. "field": "setting.name",
  560. "description": "<p>站点名</p>"
  561. },
  562. {
  563. "group": "Success 200",
  564. "type": "Number",
  565. "optional": false,
  566. "field": "setting.farm",
  567. "description": "<p>当前的农场ID</p>"
  568. },
  569. {
  570. "group": "Success 200",
  571. "type": "Object[]",
  572. "optional": false,
  573. "field": "info",
  574. "description": "<p>网关状态基本信息</p>"
  575. },
  576. {
  577. "group": "Success 200",
  578. "type": "String",
  579. "optional": false,
  580. "field": "info.id",
  581. "description": "<p>网关ID</p>"
  582. },
  583. {
  584. "group": "Success 200",
  585. "type": "String",
  586. "optional": false,
  587. "field": "info.name",
  588. "description": "<p>网关名称</p>"
  589. },
  590. {
  591. "group": "Success 200",
  592. "type": "Object[]",
  593. "optional": false,
  594. "field": "pic",
  595. "description": "<p>图像数据</p>"
  596. },
  597. {
  598. "group": "Success 200",
  599. "type": "Number",
  600. "optional": false,
  601. "field": "pic.id",
  602. "description": "<p>图片ID</p>"
  603. },
  604. {
  605. "group": "Success 200",
  606. "type": "String",
  607. "optional": false,
  608. "field": "pic.name",
  609. "description": "<p>图片名称</p>"
  610. },
  611. {
  612. "group": "Success 200",
  613. "type": "String",
  614. "optional": false,
  615. "field": "pic.show",
  616. "description": "<p>图片地址</p>"
  617. },
  618. {
  619. "group": "Success 200",
  620. "type": "String",
  621. "optional": false,
  622. "field": "pic.cdates",
  623. "description": "<p>采集时间</p>"
  624. },
  625. {
  626. "group": "Success 200",
  627. "type": "String",
  628. "optional": false,
  629. "field": "pic.cdate",
  630. "description": "<p>采集时间戳</p>"
  631. },
  632. {
  633. "group": "Success 200",
  634. "type": "Object[]",
  635. "optional": false,
  636. "field": "search",
  637. "description": "<p>当前搜索的值</p>"
  638. },
  639. {
  640. "group": "Success 200",
  641. "type": "String",
  642. "optional": false,
  643. "field": "search.date",
  644. "description": "<p>拍照时间</p>"
  645. },
  646. {
  647. "group": "Success 200",
  648. "type": "String",
  649. "optional": false,
  650. "field": "url",
  651. "description": "<p>网站url</p>"
  652. },
  653. {
  654. "group": "Success 200",
  655. "type": "Object[]",
  656. "optional": false,
  657. "field": "page",
  658. "description": "<p>分页信息</p>"
  659. },
  660. {
  661. "group": "Success 200",
  662. "type": "String",
  663. "optional": false,
  664. "field": "page.current",
  665. "description": "<p>当前页</p>"
  666. },
  667. {
  668. "group": "Success 200",
  669. "type": "String",
  670. "optional": false,
  671. "field": "page.total",
  672. "description": "<p>总页数</p>"
  673. },
  674. {
  675. "group": "Success 200",
  676. "type": "String",
  677. "optional": false,
  678. "field": "page.num",
  679. "description": "<p>每页数据条数</p>"
  680. },
  681. {
  682. "group": "Success 200",
  683. "type": "String",
  684. "optional": false,
  685. "field": "page.totalNum",
  686. "description": "<p>总数据条数</p>"
  687. }
  688. ]
  689. }
  690. },
  691. "error": {
  692. "examples": [
  693. {
  694. "title": "操作成功",
  695. "content": "{\"status\": 1, \"msg\": \"yes\", \"code\": 0, \"data\": {\"info\": {\"status\": true, \"hardware_id\": 10086, \"name\": \"\\u9ed8\\u8ba4\\u7f51\\u5173\", \"farm_id\": 1, \"cdate\": 1504233947, \"state\": true, \"power_num\": \"\", \"power_status\": \"\", \"id\": \"ce37636b-3ce7-5de2-9160-0f3283f7d392\"}, \"url\": \"http://192.168.15.10:8088/\", \"pic\": [{\"gateway_id\": \"ce37636b-3ce7-5de2-9160-0f3283f7d392\", \"pic\": \"/camera/2017/09/01/01c323ac0208580601252e2ce9eb3286.jpg\", \"farm_id\": 1, \"cdate\": 1504262668, \"cdates\": \"2017-09-01 10:44:28\", \"state\": true, \"id\": \"5ea5d688-e092-5131-a382-686298da4f94\", \"device_id\": \"2f612150-f670-54e9-9886-a044cfb18e20\"}, {\"gateway_id\": \"ce37636b-3ce7-5de2-9160-0f3283f7d392\", \"pic\": \"/camera/2017/09/01/f5e1509cf0d6b1cb2f048a058dabd75b.jpg\", \"farm_id\": 1, \"cdate\": 1504262666, \"cdates\": \"2017-09-01 10:44:26\", \"state\": true, \"id\": \"bd36fa61-5210-57c5-b8b8-a81e5797ee85\", \"device_id\": \"2f612150-f670-54e9-9886-a044cfb18e20\"}, {\"gateway_id\": \"ce37636b-3ce7-5de2-9160-0f3283f7d392\", \"pic\": \"/camera/2017/09/01/8f3a6d9d614cd280d2cb4a78f90d121a.jpg\", \"farm_id\": 1, \"cdate\": 1504262665, \"cdates\": \"2017-09-01 10:44:25\", \"state\": true, \"id\": \"162ac864-b2e9-5a7a-84cb-ac57e31ef99c\", \"device_id\": \"2f612150-f670-54e9-9886-a044cfb18e20\"}], \"search_date\": null, \"setting\": {\"farm\": 1, \"user\": 0, \"name\": \"\\u519c\\u5c0f\\u76d2\", \"copyright\": \"2017 nongxiaohe.com v1.0.0\", \"site\": \"http://www.nongxiaohe.com/\"}, \"page\": {\"current\": 1, \"ajax\": false, \"total\": 1.0, \"num\": 15, \"totalNum\": 3}}}",
  696. "type": "json"
  697. },
  698. {
  699. "title": "操作失败",
  700. "content": "{\"status\": 2, \"msg\": \"\\u64cd\\u4f5c\\u5931\\u8d25\", \"code\": 0, \"data\": {}}",
  701. "type": "json"
  702. }
  703. ]
  704. },
  705. "filename": "/root/input/nongxiaohe/front/api/device.py",
  706. "groupTitle": "Device"
  707. },
  708. {
  709. "type": "get",
  710. "url": "/device/set",
  711. "title": "获取设备极限值信息",
  712. "version": "1.0.0",
  713. "name": "getDeviceSet",
  714. "group": "Device",
  715. "parameter": {
  716. "fields": {
  717. "Parameter": [
  718. {
  719. "group": "Parameter",
  720. "type": "String",
  721. "optional": false,
  722. "field": "id",
  723. "description": "<p>网关id</p>"
  724. },
  725. {
  726. "group": "Parameter",
  727. "type": "String",
  728. "optional": false,
  729. "field": "device",
  730. "description": "<p>设备id</p>"
  731. }
  732. ]
  733. }
  734. },
  735. "success": {
  736. "fields": {
  737. "Success 200": [
  738. {
  739. "group": "Success 200",
  740. "type": "Object[]",
  741. "optional": false,
  742. "field": "setting",
  743. "description": "<p>基本信息</p>"
  744. },
  745. {
  746. "group": "Success 200",
  747. "type": "String",
  748. "optional": false,
  749. "field": "setting.name",
  750. "description": "<p>站点名</p>"
  751. },
  752. {
  753. "group": "Success 200",
  754. "type": "Number",
  755. "optional": false,
  756. "field": "setting.farm",
  757. "description": "<p>当前的农场ID</p>"
  758. },
  759. {
  760. "group": "Success 200",
  761. "type": "Object[]",
  762. "optional": false,
  763. "field": "device",
  764. "description": "<p>设备数据</p>"
  765. },
  766. {
  767. "group": "Success 200",
  768. "type": "Number",
  769. "optional": false,
  770. "field": "device.id",
  771. "description": "<p>设备ID</p>"
  772. },
  773. {
  774. "group": "Success 200",
  775. "type": "String",
  776. "optional": false,
  777. "field": "device.name",
  778. "description": "<p>设备名称</p>"
  779. },
  780. {
  781. "group": "Success 200",
  782. "type": "String",
  783. "optional": false,
  784. "field": "device.show",
  785. "description": "<p>显示的数据</p>"
  786. },
  787. {
  788. "group": "Success 200",
  789. "type": "String",
  790. "optional": false,
  791. "field": "device.unit",
  792. "description": "<p>设备的单位</p>"
  793. },
  794. {
  795. "group": "Success 200",
  796. "type": "Number",
  797. "optional": false,
  798. "field": "device.max",
  799. "description": "<p>设备的上限</p>"
  800. },
  801. {
  802. "group": "Success 200",
  803. "type": "Number",
  804. "optional": false,
  805. "field": "device.min",
  806. "description": "<p>设备的下限</p>"
  807. },
  808. {
  809. "group": "Success 200",
  810. "type": "Bool",
  811. "optional": false,
  812. "field": "device.status",
  813. "description": "<p>设备状态</p>"
  814. }
  815. ]
  816. }
  817. },
  818. "error": {
  819. "examples": [
  820. {
  821. "title": "操作成功",
  822. "content": "{\"status\": 1, \"msg\": \"yes\", \"code\": 0, \"data\": {\"setting\": {\"farm\": 1, \"user\": 0, \"name\": \"\\u519c\\u5c0f\\u76d2\", \"copyright\": \"2017 nongxiaohe.com v1.0.0\", \"site\": \"http://www.nongxiaohe.com/\"}, \"list\": [{\"pic\": \"http://192.168.15.10:8087/upload/2017/08/30/455f9d6c26b5c989b32eda1809e58d5f.jpg\", \"method_id\": null, \"land_id\": \"249be20d-5759-5af0-9859-b770d9f44e2a\", \"farm_id\": 1, \"state\": true, \"amount\": \"100ml\", \"workdate\": 1504105397, \"category_id\": \"9365ea66-be55-56f7-a511-059fc85a9478\", \"cdate\": 1504076614, \"id\": \"19e05f00-ae55-5605-be12-86dcd2866df9\"}], \"page\": {\"current\": 1, \"ajax\": false, \"total\": 1.0, \"num\": 15, \"totalNum\": 1}}}",
  823. "type": "json"
  824. },
  825. {
  826. "title": "操作失败",
  827. "content": "{\"status\": 2, \"msg\": \"\\u64cd\\u4f5c\\u5931\\u8d25\", \"code\": 0, \"data\": {}}",
  828. "type": "json"
  829. }
  830. ]
  831. },
  832. "filename": "/root/input/nongxiaohe/front/api/device.py",
  833. "groupTitle": "Device"
  834. },
  835. {
  836. "type": "get",
  837. "url": "/device/stat",
  838. "title": "获取数据统计",
  839. "version": "1.0.0",
  840. "name": "getDeviceStat",
  841. "group": "Device",
  842. "parameter": {
  843. "fields": {
  844. "Parameter": [
  845. {
  846. "group": "Parameter",
  847. "type": "String",
  848. "optional": false,
  849. "field": "id",
  850. "description": "<p>网关id</p>"
  851. },
  852. {
  853. "group": "Parameter",
  854. "type": "String",
  855. "optional": false,
  856. "field": "device",
  857. "description": "<p>设备id</p>"
  858. },
  859. {
  860. "group": "Parameter",
  861. "type": "String",
  862. "optional": false,
  863. "field": "search_group",
  864. "description": "<p>周期ID</p>"
  865. },
  866. {
  867. "group": "Parameter",
  868. "type": "String",
  869. "optional": false,
  870. "field": "search_start",
  871. "description": "<p>开始时间:2017-10-10 10:10:10</p>"
  872. },
  873. {
  874. "group": "Parameter",
  875. "type": "String",
  876. "optional": false,
  877. "field": "search_end",
  878. "description": "<p>结束时间:2017-10-10 10:10:10</p>"
  879. }
  880. ]
  881. }
  882. },
  883. "success": {
  884. "fields": {
  885. "Success 200": [
  886. {
  887. "group": "Success 200",
  888. "type": "Object[]",
  889. "optional": false,
  890. "field": "setting",
  891. "description": "<p>基本信息</p>"
  892. },
  893. {
  894. "group": "Success 200",
  895. "type": "String",
  896. "optional": false,
  897. "field": "setting.name",
  898. "description": "<p>站点名</p>"
  899. },
  900. {
  901. "group": "Success 200",
  902. "type": "Number",
  903. "optional": false,
  904. "field": "setting.farm",
  905. "description": "<p>当前的农场ID</p>"
  906. },
  907. {
  908. "group": "Success 200",
  909. "type": "Object[]",
  910. "optional": false,
  911. "field": "info",
  912. "description": "<p>网关状态基本信息</p>"
  913. },
  914. {
  915. "group": "Success 200",
  916. "type": "String",
  917. "optional": false,
  918. "field": "info.id",
  919. "description": "<p>网关ID</p>"
  920. },
  921. {
  922. "group": "Success 200",
  923. "type": "String",
  924. "optional": false,
  925. "field": "info.name",
  926. "description": "<p>网关名称</p>"
  927. },
  928. {
  929. "group": "Success 200",
  930. "type": "Object[]",
  931. "optional": false,
  932. "field": "data",
  933. "description": "<p>设备选择</p>"
  934. },
  935. {
  936. "group": "Success 200",
  937. "type": "Number",
  938. "optional": false,
  939. "field": "data.id",
  940. "description": "<p>设备ID</p>"
  941. },
  942. {
  943. "group": "Success 200",
  944. "type": "String",
  945. "optional": false,
  946. "field": "data.name",
  947. "description": "<p>设备名称</p>"
  948. },
  949. {
  950. "group": "Success 200",
  951. "type": "Object[]",
  952. "optional": false,
  953. "field": "group",
  954. "description": "<p>周期选择</p>"
  955. },
  956. {
  957. "group": "Success 200",
  958. "type": "Number",
  959. "optional": false,
  960. "field": "group.id",
  961. "description": "<p>周期ID</p>"
  962. },
  963. {
  964. "group": "Success 200",
  965. "type": "String",
  966. "optional": false,
  967. "field": "group.name",
  968. "description": "<p>周期名称</p>"
  969. },
  970. {
  971. "group": "Success 200",
  972. "type": "Object[]",
  973. "optional": false,
  974. "field": "cur_device",
  975. "description": "<p>当前选择的设备</p>"
  976. },
  977. {
  978. "group": "Success 200",
  979. "type": "Number",
  980. "optional": false,
  981. "field": "cur_device.id",
  982. "description": "<p>设备ID</p>"
  983. },
  984. {
  985. "group": "Success 200",
  986. "type": "String",
  987. "optional": false,
  988. "field": "cur_device.name",
  989. "description": "<p>设备名称</p>"
  990. },
  991. {
  992. "group": "Success 200",
  993. "type": "Object[]",
  994. "optional": false,
  995. "field": "data.data",
  996. "description": "<p>本条数据的具体数据</p>"
  997. },
  998. {
  999. "group": "Success 200",
  1000. "type": "String",
  1001. "optional": false,
  1002. "field": "data.data.time",
  1003. "description": "<p>数据时间</p>"
  1004. },
  1005. {
  1006. "group": "Success 200",
  1007. "type": "String",
  1008. "optional": false,
  1009. "field": "data.data.value",
  1010. "description": "<p>数据具体的值</p>"
  1011. },
  1012. {
  1013. "group": "Success 200",
  1014. "type": "Object[]",
  1015. "optional": false,
  1016. "field": "search",
  1017. "description": "<p>当前搜索的值</p>"
  1018. },
  1019. {
  1020. "group": "Success 200",
  1021. "type": "String",
  1022. "optional": false,
  1023. "field": "search.group",
  1024. "description": "<p>周期的值</p>"
  1025. },
  1026. {
  1027. "group": "Success 200",
  1028. "type": "String",
  1029. "optional": false,
  1030. "field": "search.start",
  1031. "description": "<p>开始时间</p>"
  1032. },
  1033. {
  1034. "group": "Success 200",
  1035. "type": "String",
  1036. "optional": false,
  1037. "field": "search.end",
  1038. "description": "<p>结束时间</p>"
  1039. }
  1040. ]
  1041. }
  1042. },
  1043. "error": {
  1044. "examples": [
  1045. {
  1046. "title": "操作成功",
  1047. "content": "{\"status\": 1, \"msg\": \"yes\", \"code\": 0, \"data\": {\"info\": {\"status\": true, \"hardware_id\": 10086, \"name\": \"\\u9ed8\\u8ba4\\u7f51\\u5173\", \"farm_id\": 1, \"cdate\": 1504233947, \"state\": true, \"power_num\": \"\", \"power_status\": \"\", \"id\": \"ce37636b-3ce7-5de2-9160-0f3283f7d392\"}, \"search\": {\"group\": \"1\"}, \"group\": [{\"id\": \"1\", \"name\": \"\\u4e00\\u5929\"}, {\"id\": \"7\", \"name\": \"\\u4e00\\u5468\"}, {\"id\": \"30\", \"name\": \"\\u4e00\\u4e2a\\u6708\"}, {\"id\": \"180\", \"name\": \"\\u534a\\u5e74\"}], \"setting\": {\"farm\": 1, \"user\": 0, \"name\": \"\\u519c\\u5c0f\\u76d2\", \"copyright\": \"2017 nongxiaohe.com v1.0.0\", \"site\": \"http://www.nongxiaohe.com/\"}, \"cur_device\": {\"gateway_id\": \"ce37636b-3ce7-5de2-9160-0f3283f7d392\", \"hardware_station\": \"\", \"hardware_type\": 2, \"hardware_id\": 100001, \"name\": \"\\u6e7f\\u5ea6#100001\", \"type_id\": 2, \"farm_id\": 1, \"cdate\": 1504253835, \"state\": true, \"num\": 4, \"status\": true, \"show\": \"4\", \"id\": \"dc24428c-eafc-5715-b7d1-f3222d28c3bb\"}, \"device\": [{\"gateway_id\": \"ce37636b-3ce7-5de2-9160-0f3283f7d392\", \"hardware_station\": null, \"hardware_type\": 2, \"hardware_id\": 100009, \"name\": \"\\u6e7f\\u5ea6#100009\", \"type_id\": 2, \"farm_id\": 1, \"cdate\": 1504253837, \"state\": true, \"num\": 30, \"status\": true, \"show\": \"30\", \"id\": \"6d8a4c0e-4f85-524a-87f8-382c333c44da\"}, {\"gateway_id\": \"ce37636b-3ce7-5de2-9160-0f3283f7d392\", \"hardware_station\": null, \"hardware_type\": 2, \"hardware_id\": 100000, \"name\": \"\\u6e7f\\u5ea6#100000\", \"type_id\": 2, \"farm_id\": 1, \"cdate\": 1504253836, \"state\": true, \"num\": 5, \"status\": true, \"show\": \"5\", \"id\": \"d644b079-9d4d-521c-8e65-8940c96ba9a7\"}, {\"gateway_id\": \"ce37636b-3ce7-5de2-9160-0f3283f7d392\", \"hardware_station\": null, \"hardware_type\": 2, \"hardware_id\": 100001, \"name\": \"\\u6e7f\\u5ea6#100001\", \"type_id\": 2, \"farm_id\": 1, \"cdate\": 1504253835, \"state\": true, \"num\": 4, \"status\": true, \"show\": \"4\", \"id\": \"dc24428c-eafc-5715-b7d1-f3222d28c3bb\"}, {\"gateway_id\": \"ce37636b-3ce7-5de2-9160-0f3283f7d392\", \"hardware_station\": null, \"hardware_type\": 2, \"hardware_id\": 100004, \"name\": \"\\u6e7f\\u5ea6#100004\", \"type_id\": 2, \"farm_id\": 1, \"cdate\": 1504253834, \"state\": true, \"num\": 17, \"status\": true, \"show\": \"17\", \"id\": \"62199416-cca0-5114-b900-a10f51e7e447\"}, {\"gateway_id\": \"ce37636b-3ce7-5de2-9160-0f3283f7d392\", \"hardware_station\": null, \"hardware_type\": 2, \"hardware_id\": 100005, \"name\": \"\\u6e7f\\u5ea6#100005\", \"type_id\": 2, \"farm_id\": 1, \"cdate\": 1504253833, \"state\": true, \"num\": 7, \"status\": true, \"show\": \"7\", \"id\": \"456daa98-a1f0-59e6-a337-7ca1fa7b2527\"}, {\"gateway_id\": \"ce37636b-3ce7-5de2-9160-0f3283f7d392\", \"hardware_station\": null, \"hardware_type\": 2, \"hardware_id\": 100003, \"name\": \"\\u6e7f\\u5ea6#100003\", \"type_id\": 2, \"farm_id\": 1, \"cdate\": 1504253832, \"state\": true, \"num\": 39, \"status\": true, \"show\": \"39\", \"id\": \"11bd4ad1-b4ff-5b1f-948a-935d859b408c\"}, {\"gateway_id\": \"ce37636b-3ce7-5de2-9160-0f3283f7d392\", \"hardware_station\": null, \"hardware_type\": 2, \"hardware_id\": 100007, \"name\": \"\\u6e7f\\u5ea6#100007\", \"type_id\": 2, \"farm_id\": 1, \"cdate\": 1504253828, \"state\": true, \"num\": 43, \"status\": true, \"show\": \"43\", \"id\": \"f8e3a42a-7fa3-575a-b99e-2dab4f992239\"}, {\"gateway_id\": \"ce37636b-3ce7-5de2-9160-0f3283f7d392\", \"hardware_station\": null, \"hardware_type\": 2, \"hardware_id\": 100010, \"name\": \"\\u6e7f\\u5ea6#100010\", \"type_id\": 2, \"farm_id\": 1, \"cdate\": 1504253827, \"state\": true, \"num\": 20, \"status\": true, \"show\": \"20\", \"id\": \"138876d7-1710-56fa-824b-10402cba17f8\"}, {\"gateway_id\": \"ce37636b-3ce7-5de2-9160-0f3283f7d392\", \"hardware_station\": null, \"hardware_type\": 2, \"hardware_id\": 100002, \"name\": \"\\u6e7f\\u5ea6#100002\", \"type_id\": 2, \"farm_id\": 1, \"cdate\": 1504253826, \"state\": true, \"num\": 43, \"status\": true, \"show\": \"43\", \"id\": \"eecfe61f-de83-588f-8cbd-41519d4ebef3\"}, {\"gateway_id\": \"ce37636b-3ce7-5de2-9160-0f3283f7d392\", \"hardware_station\": null, \"hardware_type\": 2, \"hardware_id\": 100006, \"name\": \"\\u6e7f\\u5ea6#100006\", \"type_id\": 2, \"farm_id\": 1, \"cdate\": 1504253818, \"state\": true, \"num\": 4, \"status\": true, \"show\": \"4\", \"id\": \"78bd90ac-6af3-5091-83e5-f3397063f743\"}, {\"gateway_id\": \"ce37636b-3ce7-5de2-9160-0f3283f7d392\", \"hardware_station\": null, \"hardware_type\": 2, \"hardware_id\": 100008, \"name\": \"\\u6e7f\\u5ea6#100008\", \"type_id\": 2, \"farm_id\": 1, \"cdate\": 1504253815, \"state\": true, \"num\": 37, \"status\": true, \"show\": \"37\", \"id\": \"5fda8633-aed8-5a3b-8175-2c61e7553d91\"}], \"data\": [{\"data\": {\"rows\": [[\"2017-09-01 11:15:00\", 45], [\"2017-09-01 11:20:00\", 50], [\"2017-09-01 11:25:00\", 49], [\"2017-09-01 11:30:00\", 49], [\"2017-09-01 11:35:00\", 50], [\"2017-09-01 11:40:00\", 48], [\"2017-09-01 11:45:00\", 49], [\"2017-09-01 11:50:00\", 47], [\"2017-09-01 11:55:00\", 49], [\"2017-09-01 12:00:00\", 49], [\"2017-09-01 12:05:00\", 47], [\"2017-09-01 12:10:00\", 50], [\"2017-09-01 12:15:00\", 49], [\"2017-09-01 12:20:00\", 50], [\"2017-09-01 12:25:00\", 48], [\"2017-09-01 12:30:00\", 50], [\"2017-09-01 12:35:00\", 48], [\"2017-09-01 12:40:00\", 50], [\"2017-09-01 12:45:00\", 47], [\"2017-09-01 12:50:00\", 50], [\"2017-09-01 12:55:00\", 49], [\"2017-09-01 13:00:00\", 46], [\"2017-09-01 13:05:00\", 50], [\"2017-09-01 13:10:00\", 50], [\"2017-09-01 13:15:00\", 49], [\"2017-09-01 13:20:00\", 50], [\"2017-09-01 13:25:00\", 49], [\"2017-09-01 13:30:00\", 50], [\"2017-09-01 13:35:00\", 50], [\"2017-09-01 13:40:00\", 48], [\"2017-09-01 13:45:00\", 49], [\"2017-09-01 13:50:00\", 49], [\"2017-09-01 13:55:00\", 49], [\"2017-09-01 14:00:00\", 49], [\"2017-09-01 14:05:00\", 47], [\"2017-09-01 14:10:00\", 49], [\"2017-09-01 14:15:00\", 48], [\"2017-09-01 14:20:00\", 45], [\"2017-09-01 14:25:00\", 50], [\"2017-09-01 14:30:00\", 50], [\"2017-09-01 14:35:00\", 49], [\"2017-09-01 14:40:00\", 49], [\"2017-09-01 14:45:00\", 49], [\"2017-09-01 14:50:00\", 49], [\"2017-09-01 14:55:00\", 47], [\"2017-09-01 15:00:00\", 49], [\"2017-09-01 15:05:00\", 50], [\"2017-09-01 15:10:00\", 49], [\"2017-09-01 15:15:00\", 47], [\"2017-09-01 15:25:00\", 50], [\"2017-09-01 15:30:00\", 50], [\"2017-09-01 15:35:00\", 49], [\"2017-09-01 15:40:00\", 49], [\"2017-09-01 15:45:00\", 49], [\"2017-09-01 15:50:00\", 48], [\"2017-09-01 15:55:00\", 47], [\"2017-09-01 16:05:00\", 46], [\"2017-09-01 16:10:00\", 49], [\"2017-09-01 16:15:00\", 49]], \"value\": \"[45, 50, 49, 49, 50, 48, 49, 47, 49, 49, 47, 50, 49, 50, 48, 50, 48, 50, 47, 50, 49, 46, 50, 50, 49, 50, 49, 50, 50, 48, 49, 49, 49, 49, 47, 49, 48, 45, 50, 50, 49, 49, 49, 49, 47, 49, 50, 49, 47, 50, 50, 49, 49, 49, 48, 47, 46, 49, 49]\", \"time\": \"[\\\"2017-09-01 11:15:00\\\", \\\"2017-09-01 11:20:00\\\", \\\"2017-09-01 11:25:00\\\", \\\"2017-09-01 11:30:00\\\", \\\"2017-09-01 11:35:00\\\", \\\"2017-09-01 11:40:00\\\", \\\"2017-09-01 11:45:00\\\", \\\"2017-09-01 11:50:00\\\", \\\"2017-09-01 11:55:00\\\", \\\"2017-09-01 12:00:00\\\", \\\"2017-09-01 12:05:00\\\", \\\"2017-09-01 12:10:00\\\", \\\"2017-09-01 12:15:00\\\", \\\"2017-09-01 12:20:00\\\", \\\"2017-09-01 12:25:00\\\", \\\"2017-09-01 12:30:00\\\", \\\"2017-09-01 12:35:00\\\", \\\"2017-09-01 12:40:00\\\", \\\"2017-09-01 12:45:00\\\", \\\"2017-09-01 12:50:00\\\", \\\"2017-09-01 12:55:00\\\", \\\"2017-09-01 13:00:00\\\", \\\"2017-09-01 13:05:00\\\", \\\"2017-09-01 13:10:00\\\", \\\"2017-09-01 13:15:00\\\", \\\"2017-09-01 13:20:00\\\", \\\"2017-09-01 13:25:00\\\", \\\"2017-09-01 13:30:00\\\", \\\"2017-09-01 13:35:00\\\", \\\"2017-09-01 13:40:00\\\", \\\"2017-09-01 13:45:00\\\", \\\"2017-09-01 13:50:00\\\", \\\"2017-09-01 13:55:00\\\", \\\"2017-09-01 14:00:00\\\", \\\"2017-09-01 14:05:00\\\", \\\"2017-09-01 14:10:00\\\", \\\"2017-09-01 14:15:00\\\", \\\"2017-09-01 14:20:00\\\", \\\"2017-09-01 14:25:00\\\", \\\"2017-09-01 14:30:00\\\", \\\"2017-09-01 14:35:00\\\", \\\"2017-09-01 14:40:00\\\", \\\"2017-09-01 14:45:00\\\", \\\"2017-09-01 14:50:00\\\", \\\"2017-09-01 14:55:00\\\", \\\"2017-09-01 15:00:00\\\", \\\"2017-09-01 15:05:00\\\", \\\"2017-09-01 15:10:00\\\", \\\"2017-09-01 15:15:00\\\", \\\"2017-09-01 15:25:00\\\", \\\"2017-09-01 15:30:00\\\", \\\"2017-09-01 15:35:00\\\", \\\"2017-09-01 15:40:00\\\", \\\"2017-09-01 15:45:00\\\", \\\"2017-09-01 15:50:00\\\", \\\"2017-09-01 15:55:00\\\", \\\"2017-09-01 16:05:00\\\", \\\"2017-09-01 16:10:00\\\", \\\"2017-09-01 16:15:00\\\"]\"}, \"name\": \"\\u6700\\u9ad8\"}, {\"data\": {\"rows\": [[\"2017-09-01 11:15:00\", 3], [\"2017-09-01 11:20:00\", 3], [\"2017-09-01 11:25:00\", 1], [\"2017-09-01 11:30:00\", 1], [\"2017-09-01 11:35:00\", 1], [\"2017-09-01 11:40:00\", 2], [\"2017-09-01 11:45:00\", 2], [\"2017-09-01 11:50:00\", 1], [\"2017-09-01 11:55:00\", 3], [\"2017-09-01 12:00:00\", 3], [\"2017-09-01 12:05:00\", 1], [\"2017-09-01 12:10:00\", 1], [\"2017-09-01 12:15:00\", 2], [\"2017-09-01 12:20:00\", 1], [\"2017-09-01 12:25:00\", 1], [\"2017-09-01 12:30:00\", 2], [\"2017-09-01 12:35:00\", 1], [\"2017-09-01 12:40:00\", 3], [\"2017-09-01 12:45:00\", 1], [\"2017-09-01 12:50:00\", 4], [\"2017-09-01 12:55:00\", 1], [\"2017-09-01 13:00:00\", 3], [\"2017-09-01 13:05:00\", 1], [\"2017-09-01 13:10:00\", 1], [\"2017-09-01 13:15:00\", 1], [\"2017-09-01 13:20:00\", 7], [\"2017-09-01 13:25:00\", 1], [\"2017-09-01 13:30:00\", 1], [\"2017-09-01 13:35:00\", 1], [\"2017-09-01 13:40:00\", 1], [\"2017-09-01 13:45:00\", 1], [\"2017-09-01 13:50:00\", 4], [\"2017-09-01 13:55:00\", 5], [\"2017-09-01 14:00:00\", 2], [\"2017-09-01 14:05:00\", 2], [\"2017-09-01 14:10:00\", 3], [\"2017-09-01 14:15:00\", 4], [\"2017-09-01 14:20:00\", 1], [\"2017-09-01 14:25:00\", 1], [\"2017-09-01 14:30:00\", 1], [\"2017-09-01 14:35:00\", 1], [\"2017-09-01 14:40:00\", 2], [\"2017-09-01 14:45:00\", 2], [\"2017-09-01 14:50:00\", 2], [\"2017-09-01 14:55:00\", 1], [\"2017-09-01 15:00:00\", 1], [\"2017-09-01 15:05:00\", 1], [\"2017-09-01 15:10:00\", 1], [\"2017-09-01 15:15:00\", 1], [\"2017-09-01 15:25:00\", 3], [\"2017-09-01 15:30:00\", 1], [\"2017-09-01 15:35:00\", 1], [\"2017-09-01 15:40:00\", 9], [\"2017-09-01 15:45:00\", 2], [\"2017-09-01 15:50:00\", 5], [\"2017-09-01 15:55:00\", 8], [\"2017-09-01 16:05:00\", 5], [\"2017-09-01 16:10:00\", 1], [\"2017-09-01 16:15:00\", 4]], \"value\": \"[3, 3, 1, 1, 1, 2, 2, 1, 3, 3, 1, 1, 2, 1, 1, 2, 1, 3, 1, 4, 1, 3, 1, 1, 1, 7, 1, 1, 1, 1, 1, 4, 5, 2, 2, 3, 4, 1, 1, 1, 1, 2, 2, 2, 1, 1, 1, 1, 1, 3, 1, 1, 9, 2, 5, 8, 5, 1, 4]\", \"time\": \"[\\\"2017-09-01 11:15:00\\\", \\\"2017-09-01 11:20:00\\\", \\\"2017-09-01 11:25:00\\\", \\\"2017-09-01 11:30:00\\\", \\\"2017-09-01 11:35:00\\\", \\\"2017-09-01 11:40:00\\\", \\\"2017-09-01 11:45:00\\\", \\\"2017-09-01 11:50:00\\\", \\\"2017-09-01 11:55:00\\\", \\\"2017-09-01 12:00:00\\\", \\\"2017-09-01 12:05:00\\\", \\\"2017-09-01 12:10:00\\\", \\\"2017-09-01 12:15:00\\\", \\\"2017-09-01 12:20:00\\\", \\\"2017-09-01 12:25:00\\\", \\\"2017-09-01 12:30:00\\\", \\\"2017-09-01 12:35:00\\\", \\\"2017-09-01 12:40:00\\\", \\\"2017-09-01 12:45:00\\\", \\\"2017-09-01 12:50:00\\\", \\\"2017-09-01 12:55:00\\\", \\\"2017-09-01 13:00:00\\\", \\\"2017-09-01 13:05:00\\\", \\\"2017-09-01 13:10:00\\\", \\\"2017-09-01 13:15:00\\\", \\\"2017-09-01 13:20:00\\\", \\\"2017-09-01 13:25:00\\\", \\\"2017-09-01 13:30:00\\\", \\\"2017-09-01 13:35:00\\\", \\\"2017-09-01 13:40:00\\\", \\\"2017-09-01 13:45:00\\\", \\\"2017-09-01 13:50:00\\\", \\\"2017-09-01 13:55:00\\\", \\\"2017-09-01 14:00:00\\\", \\\"2017-09-01 14:05:00\\\", \\\"2017-09-01 14:10:00\\\", \\\"2017-09-01 14:15:00\\\", \\\"2017-09-01 14:20:00\\\", \\\"2017-09-01 14:25:00\\\", \\\"2017-09-01 14:30:00\\\", \\\"2017-09-01 14:35:00\\\", \\\"2017-09-01 14:40:00\\\", \\\"2017-09-01 14:45:00\\\", \\\"2017-09-01 14:50:00\\\", \\\"2017-09-01 14:55:00\\\", \\\"2017-09-01 15:00:00\\\", \\\"2017-09-01 15:05:00\\\", \\\"2017-09-01 15:10:00\\\", \\\"2017-09-01 15:15:00\\\", \\\"2017-09-01 15:25:00\\\", \\\"2017-09-01 15:30:00\\\", \\\"2017-09-01 15:35:00\\\", \\\"2017-09-01 15:40:00\\\", \\\"2017-09-01 15:45:00\\\", \\\"2017-09-01 15:50:00\\\", \\\"2017-09-01 15:55:00\\\", \\\"2017-09-01 16:05:00\\\", \\\"2017-09-01 16:10:00\\\", \\\"2017-09-01 16:15:00\\\"]\"}, \"name\": \"\\u6700\\u4f4e\"}]}}",
  1048. "type": "json"
  1049. },
  1050. {
  1051. "title": "操作失败",
  1052. "content": "{\"status\": 2, \"msg\": \"\\u64cd\\u4f5c\\u5931\\u8d25\", \"code\": 0, \"data\": {}}",
  1053. "type": "json"
  1054. }
  1055. ]
  1056. },
  1057. "filename": "/root/input/nongxiaohe/front/api/device.py",
  1058. "groupTitle": "Device"
  1059. },
  1060. {
  1061. "type": "get",
  1062. "url": "/farm",
  1063. "title": "获取农场基本信息",
  1064. "version": "1.0.0",
  1065. "name": "getFarm",
  1066. "group": "Farm",
  1067. "success": {
  1068. "fields": {
  1069. "Success 200": [
  1070. {
  1071. "group": "Success 200",
  1072. "type": "Object[]",
  1073. "optional": false,
  1074. "field": "setting",
  1075. "description": "<p>基本信息</p>"
  1076. },
  1077. {
  1078. "group": "Success 200",
  1079. "type": "String",
  1080. "optional": false,
  1081. "field": "setting.name",
  1082. "description": "<p>站点名</p>"
  1083. },
  1084. {
  1085. "group": "Success 200",
  1086. "type": "Number",
  1087. "optional": false,
  1088. "field": "setting.farm",
  1089. "description": "<p>当前的农场ID</p>"
  1090. },
  1091. {
  1092. "group": "Success 200",
  1093. "type": "Object[]",
  1094. "optional": false,
  1095. "field": "farm",
  1096. "description": "<p>农场基本信息</p>"
  1097. },
  1098. {
  1099. "group": "Success 200",
  1100. "type": "String",
  1101. "optional": false,
  1102. "field": "farm.name",
  1103. "description": "<p>农场名</p>"
  1104. },
  1105. {
  1106. "group": "Success 200",
  1107. "type": "String",
  1108. "optional": false,
  1109. "field": "farm.master_name",
  1110. "description": "<p>联系人</p>"
  1111. },
  1112. {
  1113. "group": "Success 200",
  1114. "type": "String",
  1115. "optional": false,
  1116. "field": "farm.tel",
  1117. "description": "<p>联系电话</p>"
  1118. },
  1119. {
  1120. "group": "Success 200",
  1121. "type": "String",
  1122. "optional": false,
  1123. "field": "farm.address",
  1124. "description": "<p>农场地址</p>"
  1125. }
  1126. ]
  1127. }
  1128. },
  1129. "error": {
  1130. "examples": [
  1131. {
  1132. "title": "操作成功",
  1133. "content": "{\"status\": 1, \"msg\": \"yes\", \"code\": 0, \"data\": {\"farm\": {\"info\": \"\", \"master_name\": \"\", \"tel\": \"\", \"name\": \"\\u9ed8\\u8ba4\\u56ed\\u533a\", \"pic\": \"\", \"cdate\": 1503915445, \"state\": true, \"address\": \"\", \"id\": 1}, \"setting\": {\"farm\": 1, \"user\": 0, \"name\": \"\\u519c\\u5c0f\\u76d2\", \"copyright\": \"2017 nongxiaohe.com v1.0.0\", \"site\": \"http://www.nongxiaohe.com/\"}}}",
  1134. "type": "json"
  1135. },
  1136. {
  1137. "title": "操作失败",
  1138. "content": "{\"status\": 2, \"msg\": \"\\u64cd\\u4f5c\\u5931\\u8d25\", \"code\": 0, \"data\": {}}",
  1139. "type": "json"
  1140. }
  1141. ]
  1142. },
  1143. "filename": "/root/input/nongxiaohe/front/api/farm.py",
  1144. "groupTitle": "Farm"
  1145. },
  1146. {
  1147. "type": "get",
  1148. "url": "/farm/msg",
  1149. "title": "获取消息通知",
  1150. "version": "1.0.0",
  1151. "name": "getMsg",
  1152. "group": "Farm",
  1153. "parameter": {
  1154. "fields": {
  1155. "Parameter": [
  1156. {
  1157. "group": "Parameter",
  1158. "type": "String",
  1159. "optional": false,
  1160. "field": "page",
  1161. "description": "<p>页数</p>"
  1162. }
  1163. ]
  1164. }
  1165. },
  1166. "success": {
  1167. "fields": {
  1168. "Success 200": [
  1169. {
  1170. "group": "Success 200",
  1171. "type": "Object[]",
  1172. "optional": false,
  1173. "field": "setting",
  1174. "description": "<p>基本信息</p>"
  1175. },
  1176. {
  1177. "group": "Success 200",
  1178. "type": "String",
  1179. "optional": false,
  1180. "field": "setting.name",
  1181. "description": "<p>站点名</p>"
  1182. },
  1183. {
  1184. "group": "Success 200",
  1185. "type": "Number",
  1186. "optional": false,
  1187. "field": "setting.farm",
  1188. "description": "<p>当前的农场ID</p>"
  1189. },
  1190. {
  1191. "group": "Success 200",
  1192. "type": "Object[]",
  1193. "optional": false,
  1194. "field": "list",
  1195. "description": "<p>消息列表</p>"
  1196. },
  1197. {
  1198. "group": "Success 200",
  1199. "type": "Number",
  1200. "optional": false,
  1201. "field": "list.id",
  1202. "description": "<p>消息ID</p>"
  1203. },
  1204. {
  1205. "group": "Success 200",
  1206. "type": "String",
  1207. "optional": false,
  1208. "field": "list.content",
  1209. "description": "<p>消息内容</p>"
  1210. },
  1211. {
  1212. "group": "Success 200",
  1213. "type": "String",
  1214. "optional": false,
  1215. "field": "list.cdates",
  1216. "description": "<p>消息时间</p>"
  1217. },
  1218. {
  1219. "group": "Success 200",
  1220. "type": "String",
  1221. "optional": false,
  1222. "field": "list.cdate",
  1223. "description": "<p>消息时间戳</p>"
  1224. },
  1225. {
  1226. "group": "Success 200",
  1227. "type": "Object[]",
  1228. "optional": false,
  1229. "field": "page",
  1230. "description": "<p>分页信息</p>"
  1231. },
  1232. {
  1233. "group": "Success 200",
  1234. "type": "String",
  1235. "optional": false,
  1236. "field": "page.current",
  1237. "description": "<p>当前页</p>"
  1238. },
  1239. {
  1240. "group": "Success 200",
  1241. "type": "String",
  1242. "optional": false,
  1243. "field": "page.total",
  1244. "description": "<p>总页数</p>"
  1245. },
  1246. {
  1247. "group": "Success 200",
  1248. "type": "String",
  1249. "optional": false,
  1250. "field": "page.num",
  1251. "description": "<p>每页数据条数</p>"
  1252. },
  1253. {
  1254. "group": "Success 200",
  1255. "type": "String",
  1256. "optional": false,
  1257. "field": "page.totalNum",
  1258. "description": "<p>总数据条数</p>"
  1259. }
  1260. ]
  1261. }
  1262. },
  1263. "error": {
  1264. "examples": [
  1265. {
  1266. "title": "操作成功",
  1267. "content": "{\"status\": 1, \"msg\": \"yes\", \"code\": 0, \"data\": {\"setting\": {\"farm\": 1, \"user\": 0, \"name\": \"\\u519c\\u5c0f\\u76d2\", \"copyright\": \"2017 nongxiaohe.com v1.0.0\", \"site\": \"http://www.nongxiaohe.com/\"}, \"list\": []}}",
  1268. "type": "json"
  1269. },
  1270. {
  1271. "title": "操作失败",
  1272. "content": "{\"status\": 2, \"msg\": \"\\u64cd\\u4f5c\\u5931\\u8d25\", \"code\": 0, \"data\": {}}",
  1273. "type": "json"
  1274. }
  1275. ]
  1276. },
  1277. "filename": "/root/input/nongxiaohe/front/api/farm.py",
  1278. "groupTitle": "Farm"
  1279. },
  1280. {
  1281. "type": "get",
  1282. "url": "/origin/info",
  1283. "title": "获取溯源批次信息",
  1284. "version": "1.0.0",
  1285. "name": "getOrigin",
  1286. "group": "Farm",
  1287. "success": {
  1288. "fields": {
  1289. "Success 200": [
  1290. {
  1291. "group": "Success 200",
  1292. "type": "Object[]",
  1293. "optional": false,
  1294. "field": "setting",
  1295. "description": "<p>基本信息</p>"
  1296. },
  1297. {
  1298. "group": "Success 200",
  1299. "type": "String",
  1300. "optional": false,
  1301. "field": "setting.name",
  1302. "description": "<p>站点名</p>"
  1303. },
  1304. {
  1305. "group": "Success 200",
  1306. "type": "Number",
  1307. "optional": false,
  1308. "field": "setting.farm",
  1309. "description": "<p>当前的农场ID</p>"
  1310. },
  1311. {
  1312. "group": "Success 200",
  1313. "type": "Object[]",
  1314. "optional": false,
  1315. "field": "info",
  1316. "description": "<p>溯源批次信息</p>"
  1317. },
  1318. {
  1319. "group": "Success 200",
  1320. "type": "String",
  1321. "optional": false,
  1322. "field": "info.name",
  1323. "description": "<p>名称</p>"
  1324. },
  1325. {
  1326. "group": "Success 200",
  1327. "type": "String",
  1328. "optional": false,
  1329. "field": "info.id",
  1330. "description": "<p>ID</p>"
  1331. }
  1332. ]
  1333. }
  1334. },
  1335. "error": {
  1336. "examples": [
  1337. {
  1338. "title": "操作成功",
  1339. "content": "{\"status\": 1, \"msg\": \"yes\", \"code\": 0, \"data\": {\"setting\": {\"farm\": 1, \"user\": 0, \"name\": \"\\u519c\\u5c0f\\u76d2\", \"copyright\": \"2017 nongxiaohe.com v1.0.0\", \"site\": \"http://www.nongxiaohe.com/\"}, \"list\": [{\"pic\": \"http://192.168.15.10:8087/upload/2017/08/30/455f9d6c26b5c989b32eda1809e58d5f.jpg\", \"method_id\": null, \"land_id\": \"249be20d-5759-5af0-9859-b770d9f44e2a\", \"farm_id\": 1, \"state\": true, \"amount\": \"100ml\", \"workdate\": 1504105397, \"category_id\": \"9365ea66-be55-56f7-a511-059fc85a9478\", \"cdate\": 1504076614, \"id\": \"19e05f00-ae55-5605-be12-86dcd2866df9\"}], \"page\": {\"current\": 1, \"ajax\": false, \"total\": 1.0, \"num\": 15, \"totalNum\": 1}}}",
  1340. "type": "json"
  1341. },
  1342. {
  1343. "title": "操作失败",
  1344. "content": "{\"status\": 2, \"msg\": \"\\u64cd\\u4f5c\\u5931\\u8d25\", \"code\": 0, \"data\": {}}",
  1345. "type": "json"
  1346. }
  1347. ]
  1348. },
  1349. "filename": "/root/input/nongxiaohe/front/api/origin.py",
  1350. "groupTitle": "Farm"
  1351. },
  1352. {
  1353. "type": "get",
  1354. "url": "/origin",
  1355. "title": "获取溯源批次列表",
  1356. "version": "1.0.0",
  1357. "name": "getOrigin",
  1358. "group": "Farm",
  1359. "parameter": {
  1360. "fields": {
  1361. "Parameter": [
  1362. {
  1363. "group": "Parameter",
  1364. "type": "String",
  1365. "optional": false,
  1366. "field": "page",
  1367. "description": "<p>页数</p>"
  1368. }
  1369. ]
  1370. }
  1371. },
  1372. "success": {
  1373. "fields": {
  1374. "Success 200": [
  1375. {
  1376. "group": "Success 200",
  1377. "type": "Object[]",
  1378. "optional": false,
  1379. "field": "setting",
  1380. "description": "<p>基本信息</p>"
  1381. },
  1382. {
  1383. "group": "Success 200",
  1384. "type": "String",
  1385. "optional": false,
  1386. "field": "setting.name",
  1387. "description": "<p>站点名</p>"
  1388. },
  1389. {
  1390. "group": "Success 200",
  1391. "type": "Number",
  1392. "optional": false,
  1393. "field": "setting.farm",
  1394. "description": "<p>当前的农场ID</p>"
  1395. },
  1396. {
  1397. "group": "Success 200",
  1398. "type": "Object[]",
  1399. "optional": false,
  1400. "field": "list",
  1401. "description": "<p>溯源批次列表信息</p>"
  1402. },
  1403. {
  1404. "group": "Success 200",
  1405. "type": "String",
  1406. "optional": false,
  1407. "field": "list.name",
  1408. "description": "<p>名称</p>"
  1409. },
  1410. {
  1411. "group": "Success 200",
  1412. "type": "String",
  1413. "optional": false,
  1414. "field": "list.id",
  1415. "description": "<p>ID</p>"
  1416. },
  1417. {
  1418. "group": "Success 200",
  1419. "type": "Object[]",
  1420. "optional": false,
  1421. "field": "page",
  1422. "description": "<p>分页信息</p>"
  1423. },
  1424. {
  1425. "group": "Success 200",
  1426. "type": "String",
  1427. "optional": false,
  1428. "field": "page.current",
  1429. "description": "<p>当前页</p>"
  1430. },
  1431. {
  1432. "group": "Success 200",
  1433. "type": "String",
  1434. "optional": false,
  1435. "field": "page.total",
  1436. "description": "<p>总页数</p>"
  1437. },
  1438. {
  1439. "group": "Success 200",
  1440. "type": "String",
  1441. "optional": false,
  1442. "field": "page.num",
  1443. "description": "<p>每页数据条数</p>"
  1444. },
  1445. {
  1446. "group": "Success 200",
  1447. "type": "String",
  1448. "optional": false,
  1449. "field": "page.totalNum",
  1450. "description": "<p>总数据条数</p>"
  1451. }
  1452. ]
  1453. }
  1454. },
  1455. "error": {
  1456. "examples": [
  1457. {
  1458. "title": "操作成功",
  1459. "content": "{\"status\": 1, \"msg\": \"yes\", \"code\": 0, \"data\": {\"setting\": {\"farm\": 1, \"user\": 0, \"name\": \"\\u519c\\u5c0f\\u76d2\", \"copyright\": \"2017 nongxiaohe.com v1.0.0\", \"site\": \"http://www.nongxiaohe.com/\"}, \"list\": [{\"pic\": \"http://192.168.15.10:8087/upload/2017/08/30/455f9d6c26b5c989b32eda1809e58d5f.jpg\", \"method_id\": null, \"land_id\": \"249be20d-5759-5af0-9859-b770d9f44e2a\", \"farm_id\": 1, \"state\": true, \"amount\": \"100ml\", \"workdate\": 1504105397, \"category_id\": \"9365ea66-be55-56f7-a511-059fc85a9478\", \"cdate\": 1504076614, \"id\": \"19e05f00-ae55-5605-be12-86dcd2866df9\"}], \"page\": {\"current\": 1, \"ajax\": false, \"total\": 1.0, \"num\": 15, \"totalNum\": 1}}}",
  1460. "type": "json"
  1461. },
  1462. {
  1463. "title": "操作失败",
  1464. "content": "{\"status\": 2, \"msg\": \"\\u64cd\\u4f5c\\u5931\\u8d25\", \"code\": 0, \"data\": {}}",
  1465. "type": "json"
  1466. }
  1467. ]
  1468. },
  1469. "filename": "/root/input/nongxiaohe/front/api/origin.py",
  1470. "groupTitle": "Farm"
  1471. },
  1472. {
  1473. "type": "get",
  1474. "url": "/work/info",
  1475. "title": "获取农事信息",
  1476. "version": "1.0.0",
  1477. "name": "getWork",
  1478. "group": "Farm",
  1479. "success": {
  1480. "fields": {
  1481. "Success 200": [
  1482. {
  1483. "group": "Success 200",
  1484. "type": "Object[]",
  1485. "optional": false,
  1486. "field": "setting",
  1487. "description": "<p>基本信息</p>"
  1488. },
  1489. {
  1490. "group": "Success 200",
  1491. "type": "String",
  1492. "optional": false,
  1493. "field": "setting.name",
  1494. "description": "<p>站点名</p>"
  1495. },
  1496. {
  1497. "group": "Success 200",
  1498. "type": "Number",
  1499. "optional": false,
  1500. "field": "setting.farm",
  1501. "description": "<p>当前的农场ID</p>"
  1502. },
  1503. {
  1504. "group": "Success 200",
  1505. "type": "Object[]",
  1506. "optional": false,
  1507. "field": "info",
  1508. "description": "<p>农事信息</p>"
  1509. },
  1510. {
  1511. "group": "Success 200",
  1512. "type": "String",
  1513. "optional": false,
  1514. "field": "info.name",
  1515. "description": "<p>名称</p>"
  1516. },
  1517. {
  1518. "group": "Success 200",
  1519. "type": "String",
  1520. "optional": false,
  1521. "field": "info.id",
  1522. "description": "<p>ID</p>"
  1523. }
  1524. ]
  1525. }
  1526. },
  1527. "error": {
  1528. "examples": [
  1529. {
  1530. "title": "操作成功",
  1531. "content": "{\"status\": 1, \"msg\": \"yes\", \"code\": 0, \"data\": {\"setting\": {\"farm\": 1, \"user\": 0, \"name\": \"\\u519c\\u5c0f\\u76d2\", \"copyright\": \"2017 nongxiaohe.com v1.0.0\", \"site\": \"http://www.nongxiaohe.com/\"}, \"list\": [{\"pic\": \"http://192.168.15.10:8087/upload/2017/08/30/455f9d6c26b5c989b32eda1809e58d5f.jpg\", \"method_id\": null, \"land_id\": \"249be20d-5759-5af0-9859-b770d9f44e2a\", \"farm_id\": 1, \"state\": true, \"amount\": \"100ml\", \"workdate\": 1504105397, \"category_id\": \"9365ea66-be55-56f7-a511-059fc85a9478\", \"cdate\": 1504076614, \"id\": \"19e05f00-ae55-5605-be12-86dcd2866df9\"}], \"page\": {\"current\": 1, \"ajax\": false, \"total\": 1.0, \"num\": 15, \"totalNum\": 1}}}",
  1532. "type": "json"
  1533. },
  1534. {
  1535. "title": "操作失败",
  1536. "content": "{\"status\": 2, \"msg\": \"\\u64cd\\u4f5c\\u5931\\u8d25\", \"code\": 0, \"data\": {}}",
  1537. "type": "json"
  1538. }
  1539. ]
  1540. },
  1541. "filename": "/root/input/nongxiaohe/front/api/work.py",
  1542. "groupTitle": "Farm"
  1543. },
  1544. {
  1545. "type": "get",
  1546. "url": "/work/category",
  1547. "title": "获取农事分类列表",
  1548. "version": "1.0.0",
  1549. "name": "getWorkCateList",
  1550. "group": "Farm",
  1551. "success": {
  1552. "fields": {
  1553. "Success 200": [
  1554. {
  1555. "group": "Success 200",
  1556. "type": "Object[]",
  1557. "optional": false,
  1558. "field": "setting",
  1559. "description": "<p>基本信息</p>"
  1560. },
  1561. {
  1562. "group": "Success 200",
  1563. "type": "String",
  1564. "optional": false,
  1565. "field": "setting.name",
  1566. "description": "<p>站点名</p>"
  1567. },
  1568. {
  1569. "group": "Success 200",
  1570. "type": "Number",
  1571. "optional": false,
  1572. "field": "setting.farm",
  1573. "description": "<p>当前的农场ID</p>"
  1574. },
  1575. {
  1576. "group": "Success 200",
  1577. "type": "Object[]",
  1578. "optional": false,
  1579. "field": "list",
  1580. "description": "<p>分类列表信息</p>"
  1581. },
  1582. {
  1583. "group": "Success 200",
  1584. "type": "String",
  1585. "optional": false,
  1586. "field": "list.name",
  1587. "description": "<p>名称</p>"
  1588. },
  1589. {
  1590. "group": "Success 200",
  1591. "type": "String",
  1592. "optional": false,
  1593. "field": "list.id",
  1594. "description": "<p>ID</p>"
  1595. }
  1596. ]
  1597. }
  1598. },
  1599. "error": {
  1600. "examples": [
  1601. {
  1602. "title": "操作成功",
  1603. "content": "{\"status\": 1, \"msg\": \"yes\", \"code\": 0, \"data\": {\"setting\": {\"farm\": 1, \"user\": 0, \"name\": \"\\u519c\\u5c0f\\u76d2\", \"copyright\": \"2017 nongxiaohe.com v1.0.0\", \"site\": \"http://www.nongxiaohe.com/\"}, \"list\": [{\"state\": true, \"farm_id\": 1, \"cdate\": 1504074837, \"id\": \"9365ea66-be55-56f7-a511-059fc85a9478\", \"name\": \"\\u65bd\\u80a5\"}]}}",
  1604. "type": "json"
  1605. },
  1606. {
  1607. "title": "操作失败",
  1608. "content": "{\"status\": 2, \"msg\": \"\\u64cd\\u4f5c\\u5931\\u8d25\", \"code\": 0, \"data\": {}}",
  1609. "type": "json"
  1610. }
  1611. ]
  1612. },
  1613. "filename": "/root/input/nongxiaohe/front/api/work.py",
  1614. "groupTitle": "Farm"
  1615. },
  1616. {
  1617. "type": "get",
  1618. "url": "/work/land",
  1619. "title": "获取农事地块列表",
  1620. "version": "1.0.0",
  1621. "name": "getWorkLandList",
  1622. "group": "Farm",
  1623. "success": {
  1624. "fields": {
  1625. "Success 200": [
  1626. {
  1627. "group": "Success 200",
  1628. "type": "Object[]",
  1629. "optional": false,
  1630. "field": "setting",
  1631. "description": "<p>基本信息</p>"
  1632. },
  1633. {
  1634. "group": "Success 200",
  1635. "type": "String",
  1636. "optional": false,
  1637. "field": "setting.name",
  1638. "description": "<p>站点名</p>"
  1639. },
  1640. {
  1641. "group": "Success 200",
  1642. "type": "Number",
  1643. "optional": false,
  1644. "field": "setting.farm",
  1645. "description": "<p>当前的农场ID</p>"
  1646. },
  1647. {
  1648. "group": "Success 200",
  1649. "type": "Object[]",
  1650. "optional": false,
  1651. "field": "list",
  1652. "description": "<p>地块列表信息</p>"
  1653. },
  1654. {
  1655. "group": "Success 200",
  1656. "type": "String",
  1657. "optional": false,
  1658. "field": "list.name",
  1659. "description": "<p>名称</p>"
  1660. },
  1661. {
  1662. "group": "Success 200",
  1663. "type": "String",
  1664. "optional": false,
  1665. "field": "list.id",
  1666. "description": "<p>ID</p>"
  1667. }
  1668. ]
  1669. }
  1670. },
  1671. "error": {
  1672. "examples": [
  1673. {
  1674. "title": "操作成功",
  1675. "content": "{\"status\": 1, \"msg\": \"yes\", \"code\": 0, \"data\": {\"setting\": {\"farm\": 1, \"user\": 0, \"name\": \"\\u519c\\u5c0f\\u76d2\", \"copyright\": \"2017 nongxiaohe.com v1.0.0\", \"site\": \"http://www.nongxiaohe.com/\"}, \"list\": [{\"state\": true, \"farm_id\": 1, \"cdate\": 1504074548, \"id\": \"249be20d-5759-5af0-9859-b770d9f44e2a\", \"name\": \"test\"}]}}",
  1676. "type": "json"
  1677. },
  1678. {
  1679. "title": "操作失败",
  1680. "content": "{\"status\": 2, \"msg\": \"\\u64cd\\u4f5c\\u5931\\u8d25\", \"code\": 0, \"data\": {}}",
  1681. "type": "json"
  1682. }
  1683. ]
  1684. },
  1685. "filename": "/root/input/nongxiaohe/front/api/work.py",
  1686. "groupTitle": "Farm"
  1687. },
  1688. {
  1689. "type": "get",
  1690. "url": "/work",
  1691. "title": "获取农事记录列表",
  1692. "version": "1.0.0",
  1693. "name": "getWorkList",
  1694. "group": "Farm",
  1695. "parameter": {
  1696. "fields": {
  1697. "Parameter": [
  1698. {
  1699. "group": "Parameter",
  1700. "type": "String",
  1701. "optional": false,
  1702. "field": "page",
  1703. "description": "<p>页数</p>"
  1704. }
  1705. ]
  1706. }
  1707. },
  1708. "success": {
  1709. "fields": {
  1710. "Success 200": [
  1711. {
  1712. "group": "Success 200",
  1713. "type": "Object[]",
  1714. "optional": false,
  1715. "field": "setting",
  1716. "description": "<p>基本信息</p>"
  1717. },
  1718. {
  1719. "group": "Success 200",
  1720. "type": "String",
  1721. "optional": false,
  1722. "field": "setting.name",
  1723. "description": "<p>站点名</p>"
  1724. },
  1725. {
  1726. "group": "Success 200",
  1727. "type": "Number",
  1728. "optional": false,
  1729. "field": "setting.farm",
  1730. "description": "<p>当前的农场ID</p>"
  1731. },
  1732. {
  1733. "group": "Success 200",
  1734. "type": "Object[]",
  1735. "optional": false,
  1736. "field": "list",
  1737. "description": "<p>农事列表信息</p>"
  1738. },
  1739. {
  1740. "group": "Success 200",
  1741. "type": "String",
  1742. "optional": false,
  1743. "field": "list.name",
  1744. "description": "<p>名称</p>"
  1745. },
  1746. {
  1747. "group": "Success 200",
  1748. "type": "String",
  1749. "optional": false,
  1750. "field": "list.id",
  1751. "description": "<p>ID</p>"
  1752. },
  1753. {
  1754. "group": "Success 200",
  1755. "type": "Object[]",
  1756. "optional": false,
  1757. "field": "page",
  1758. "description": "<p>分页信息</p>"
  1759. },
  1760. {
  1761. "group": "Success 200",
  1762. "type": "String",
  1763. "optional": false,
  1764. "field": "page.current",
  1765. "description": "<p>当前页</p>"
  1766. },
  1767. {
  1768. "group": "Success 200",
  1769. "type": "String",
  1770. "optional": false,
  1771. "field": "page.total",
  1772. "description": "<p>总页数</p>"
  1773. },
  1774. {
  1775. "group": "Success 200",
  1776. "type": "String",
  1777. "optional": false,
  1778. "field": "page.num",
  1779. "description": "<p>每页数据条数</p>"
  1780. },
  1781. {
  1782. "group": "Success 200",
  1783. "type": "String",
  1784. "optional": false,
  1785. "field": "page.totalNum",
  1786. "description": "<p>总数据条数</p>"
  1787. }
  1788. ]
  1789. }
  1790. },
  1791. "error": {
  1792. "examples": [
  1793. {
  1794. "title": "操作成功",
  1795. "content": "{\"status\": 1, \"msg\": \"yes\", \"code\": 0, \"data\": {\"setting\": {\"farm\": 1, \"user\": 0, \"name\": \"\\u519c\\u5c0f\\u76d2\", \"copyright\": \"2017 nongxiaohe.com v1.0.0\", \"site\": \"http://www.nongxiaohe.com/\"}, \"list\": [{\"pic\": \"http://192.168.15.10:8087/upload/2017/08/30/455f9d6c26b5c989b32eda1809e58d5f.jpg\", \"method_id\": null, \"land_id\": \"249be20d-5759-5af0-9859-b770d9f44e2a\", \"farm_id\": 1, \"state\": true, \"amount\": \"100ml\", \"workdate\": 1504105397, \"category_id\": \"9365ea66-be55-56f7-a511-059fc85a9478\", \"cdate\": 1504076614, \"id\": \"19e05f00-ae55-5605-be12-86dcd2866df9\"}], \"page\": {\"current\": 1, \"ajax\": false, \"total\": 1.0, \"num\": 15, \"totalNum\": 1}}}",
  1796. "type": "json"
  1797. },
  1798. {
  1799. "title": "操作失败",
  1800. "content": "{\"status\": 2, \"msg\": \"\\u64cd\\u4f5c\\u5931\\u8d25\", \"code\": 0, \"data\": {}}",
  1801. "type": "json"
  1802. }
  1803. ]
  1804. },
  1805. "filename": "/root/input/nongxiaohe/front/api/work.py",
  1806. "groupTitle": "Farm"
  1807. },
  1808. {
  1809. "type": "post",
  1810. "url": "/device/set",
  1811. "title": "更新极限值设置",
  1812. "version": "1.0.0",
  1813. "name": "updateDeviceSet",
  1814. "group": "Farm",
  1815. "parameter": {
  1816. "fields": {
  1817. "Parameter": [
  1818. {
  1819. "group": "Parameter",
  1820. "type": "String",
  1821. "optional": false,
  1822. "field": "id",
  1823. "description": "<p>设备id</p>"
  1824. },
  1825. {
  1826. "group": "Parameter",
  1827. "type": "String",
  1828. "optional": false,
  1829. "field": "update_max",
  1830. "description": "<p>最大上限</p>"
  1831. },
  1832. {
  1833. "group": "Parameter",
  1834. "type": "String",
  1835. "optional": false,
  1836. "field": "update_min",
  1837. "description": "<p>最小下限</p>"
  1838. }
  1839. ]
  1840. }
  1841. },
  1842. "success": {
  1843. "fields": {
  1844. "Success 200": [
  1845. {
  1846. "group": "Success 200",
  1847. "type": "Bool",
  1848. "optional": false,
  1849. "field": "status",
  1850. "description": "<p>状态</p>"
  1851. },
  1852. {
  1853. "group": "Success 200",
  1854. "type": "String",
  1855. "optional": false,
  1856. "field": "msg",
  1857. "description": "<p>描述</p>"
  1858. },
  1859. {
  1860. "group": "Success 200",
  1861. "type": "Number",
  1862. "optional": false,
  1863. "field": "code",
  1864. "description": "<p>状态码</p>"
  1865. }
  1866. ]
  1867. }
  1868. },
  1869. "error": {
  1870. "examples": [
  1871. {
  1872. "title": "操作成功",
  1873. "content": "{\"status\": 1, \"msg\": \"操作成功\", \"code\": 0, \"data\": {}}",
  1874. "type": "json"
  1875. },
  1876. {
  1877. "title": "操作失败",
  1878. "content": "{\"status\": 2, \"msg\": \"\\u64cd\\u4f5c\\u5931\\u8d25\", \"code\": 0, \"data\": {}}",
  1879. "type": "json"
  1880. }
  1881. ]
  1882. },
  1883. "filename": "/root/input/nongxiaohe/front/api/device.py",
  1884. "groupTitle": "Farm"
  1885. },
  1886. {
  1887. "type": "post",
  1888. "url": "/farm",
  1889. "title": "更新农场信息",
  1890. "version": "1.0.0",
  1891. "name": "updateFarm",
  1892. "group": "Farm",
  1893. "parameter": {
  1894. "fields": {
  1895. "Parameter": [
  1896. {
  1897. "group": "Parameter",
  1898. "type": "String",
  1899. "optional": false,
  1900. "field": "id",
  1901. "description": "<p>农事ID,为空则插入新记录</p>"
  1902. },
  1903. {
  1904. "group": "Parameter",
  1905. "type": "String",
  1906. "optional": false,
  1907. "field": "update_name",
  1908. "description": "<p>农场名称</p>"
  1909. },
  1910. {
  1911. "group": "Parameter",
  1912. "type": "String",
  1913. "optional": false,
  1914. "field": "update_address",
  1915. "description": "<p>农场地址</p>"
  1916. },
  1917. {
  1918. "group": "Parameter",
  1919. "type": "String",
  1920. "optional": false,
  1921. "field": "update_master_name",
  1922. "description": "<p>联系人</p>"
  1923. },
  1924. {
  1925. "group": "Parameter",
  1926. "type": "String",
  1927. "optional": false,
  1928. "field": "update_tel",
  1929. "description": "<p>联系电话</p>"
  1930. },
  1931. {
  1932. "group": "Parameter",
  1933. "type": "String",
  1934. "optional": false,
  1935. "field": "update_pic",
  1936. "description": "<p>农场照片</p>"
  1937. }
  1938. ]
  1939. }
  1940. },
  1941. "success": {
  1942. "fields": {
  1943. "Success 200": [
  1944. {
  1945. "group": "Success 200",
  1946. "type": "Bool",
  1947. "optional": false,
  1948. "field": "status",
  1949. "description": "<p>状态</p>"
  1950. },
  1951. {
  1952. "group": "Success 200",
  1953. "type": "String",
  1954. "optional": false,
  1955. "field": "msg",
  1956. "description": "<p>描述</p>"
  1957. },
  1958. {
  1959. "group": "Success 200",
  1960. "type": "Number",
  1961. "optional": false,
  1962. "field": "code",
  1963. "description": "<p>状态码</p>"
  1964. }
  1965. ]
  1966. }
  1967. },
  1968. "error": {
  1969. "examples": [
  1970. {
  1971. "title": "操作成功",
  1972. "content": "{\"status\": 1, \"msg\": \"操作成功\", \"code\": 0, \"data\": {}}",
  1973. "type": "json"
  1974. },
  1975. {
  1976. "title": "操作失败",
  1977. "content": "{\"status\": 2, \"msg\": \"\\u64cd\\u4f5c\\u5931\\u8d25\", \"code\": 0, \"data\": {}}",
  1978. "type": "json"
  1979. }
  1980. ]
  1981. },
  1982. "filename": "/root/input/nongxiaohe/front/api/farm.py",
  1983. "groupTitle": "Farm"
  1984. },
  1985. {
  1986. "type": "post",
  1987. "url": "/origin",
  1988. "title": "更新溯源批次",
  1989. "version": "1.0.0",
  1990. "name": "updateOrigin",
  1991. "group": "Farm",
  1992. "parameter": {
  1993. "fields": {
  1994. "Parameter": [
  1995. {
  1996. "group": "Parameter",
  1997. "type": "String",
  1998. "optional": false,
  1999. "field": "id",
  2000. "description": "<p>批次ID,为空则插入新记录</p>"
  2001. },
  2002. {
  2003. "group": "Parameter",
  2004. "type": "String",
  2005. "optional": false,
  2006. "field": "update_name",
  2007. "description": "<p>批次名称</p>"
  2008. },
  2009. {
  2010. "group": "Parameter",
  2011. "type": "String",
  2012. "optional": false,
  2013. "field": "update_pic",
  2014. "description": "<p>图片,多个逗号隔开</p>"
  2015. },
  2016. {
  2017. "group": "Parameter",
  2018. "type": "String",
  2019. "optional": false,
  2020. "field": "update_device_id",
  2021. "description": "<p>设备网关ID</p>"
  2022. },
  2023. {
  2024. "group": "Parameter",
  2025. "type": "String",
  2026. "optional": false,
  2027. "field": "update_land",
  2028. "description": "<p>地块ID</p>"
  2029. },
  2030. {
  2031. "group": "Parameter",
  2032. "type": "String",
  2033. "optional": false,
  2034. "field": "update_zzdate",
  2035. "description": "<p>种植时间:2017-10-10</p>"
  2036. },
  2037. {
  2038. "group": "Parameter",
  2039. "type": "String",
  2040. "optional": false,
  2041. "field": "update_csdate",
  2042. "description": "<p>采收时间:2017-10-10</p>"
  2043. }
  2044. ]
  2045. }
  2046. },
  2047. "success": {
  2048. "fields": {
  2049. "Success 200": [
  2050. {
  2051. "group": "Success 200",
  2052. "type": "Bool",
  2053. "optional": false,
  2054. "field": "status",
  2055. "description": "<p>状态</p>"
  2056. },
  2057. {
  2058. "group": "Success 200",
  2059. "type": "String",
  2060. "optional": false,
  2061. "field": "msg",
  2062. "description": "<p>描述</p>"
  2063. },
  2064. {
  2065. "group": "Success 200",
  2066. "type": "Number",
  2067. "optional": false,
  2068. "field": "code",
  2069. "description": "<p>状态码</p>"
  2070. }
  2071. ]
  2072. }
  2073. },
  2074. "error": {
  2075. "examples": [
  2076. {
  2077. "title": "操作成功",
  2078. "content": "{\"status\": 1, \"msg\": \"操作成功\", \"code\": 0, \"data\": {}}",
  2079. "type": "json"
  2080. },
  2081. {
  2082. "title": "操作失败",
  2083. "content": "{\"status\": 2, \"msg\": \"\\u64cd\\u4f5c\\u5931\\u8d25\", \"code\": 0, \"data\": {}}",
  2084. "type": "json"
  2085. }
  2086. ]
  2087. },
  2088. "filename": "/root/input/nongxiaohe/front/api/origin.py",
  2089. "groupTitle": "Farm"
  2090. },
  2091. {
  2092. "type": "post",
  2093. "url": "/work",
  2094. "title": "更新农事记录",
  2095. "version": "1.0.0",
  2096. "name": "updateWork",
  2097. "group": "Farm",
  2098. "parameter": {
  2099. "fields": {
  2100. "Parameter": [
  2101. {
  2102. "group": "Parameter",
  2103. "type": "String",
  2104. "optional": false,
  2105. "field": "id",
  2106. "description": "<p>农事ID,为空则插入新记录</p>"
  2107. },
  2108. {
  2109. "group": "Parameter",
  2110. "type": "String",
  2111. "optional": false,
  2112. "field": "update_pic",
  2113. "description": "<p>图片,多个逗号隔开</p>"
  2114. },
  2115. {
  2116. "group": "Parameter",
  2117. "type": "String",
  2118. "optional": false,
  2119. "field": "update_category",
  2120. "description": "<p>农事方式ID</p>"
  2121. },
  2122. {
  2123. "group": "Parameter",
  2124. "type": "String",
  2125. "optional": false,
  2126. "field": "update_land",
  2127. "description": "<p>地块ID</p>"
  2128. },
  2129. {
  2130. "group": "Parameter",
  2131. "type": "String",
  2132. "optional": false,
  2133. "field": "update_workdate",
  2134. "description": "<p>农事时间:2017-10-10</p>"
  2135. },
  2136. {
  2137. "group": "Parameter",
  2138. "type": "String",
  2139. "optional": false,
  2140. "field": "update_content",
  2141. "description": "<p>劳作内容</p>"
  2142. },
  2143. {
  2144. "group": "Parameter",
  2145. "type": "String",
  2146. "optional": false,
  2147. "field": "update_amount",
  2148. "description": "<p>劳作数量</p>"
  2149. }
  2150. ]
  2151. }
  2152. },
  2153. "success": {
  2154. "fields": {
  2155. "Success 200": [
  2156. {
  2157. "group": "Success 200",
  2158. "type": "Bool",
  2159. "optional": false,
  2160. "field": "status",
  2161. "description": "<p>状态</p>"
  2162. },
  2163. {
  2164. "group": "Success 200",
  2165. "type": "String",
  2166. "optional": false,
  2167. "field": "msg",
  2168. "description": "<p>描述</p>"
  2169. },
  2170. {
  2171. "group": "Success 200",
  2172. "type": "Number",
  2173. "optional": false,
  2174. "field": "code",
  2175. "description": "<p>状态码</p>"
  2176. }
  2177. ]
  2178. }
  2179. },
  2180. "error": {
  2181. "examples": [
  2182. {
  2183. "title": "操作成功",
  2184. "content": "{\"status\": 1, \"msg\": \"操作成功\", \"code\": 0, \"data\": {}}",
  2185. "type": "json"
  2186. },
  2187. {
  2188. "title": "操作失败",
  2189. "content": "{\"status\": 2, \"msg\": \"\\u64cd\\u4f5c\\u5931\\u8d25\", \"code\": 0, \"data\": {}}",
  2190. "type": "json"
  2191. }
  2192. ]
  2193. },
  2194. "filename": "/root/input/nongxiaohe/front/api/work.py",
  2195. "groupTitle": "Farm"
  2196. },
  2197. {
  2198. "type": "post",
  2199. "url": "/work/land",
  2200. "title": "更新地块",
  2201. "version": "1.0.0",
  2202. "name": "updateWorkLand",
  2203. "group": "Farm",
  2204. "parameter": {
  2205. "fields": {
  2206. "Parameter": [
  2207. {
  2208. "group": "Parameter",
  2209. "type": "String",
  2210. "optional": false,
  2211. "field": "id",
  2212. "description": "<p>地块ID,为空则插入新记录</p>"
  2213. },
  2214. {
  2215. "group": "Parameter",
  2216. "type": "String",
  2217. "optional": false,
  2218. "field": "update_name",
  2219. "description": "<p>地块名称</p>"
  2220. }
  2221. ]
  2222. }
  2223. },
  2224. "success": {
  2225. "fields": {
  2226. "Success 200": [
  2227. {
  2228. "group": "Success 200",
  2229. "type": "Bool",
  2230. "optional": false,
  2231. "field": "status",
  2232. "description": "<p>状态</p>"
  2233. },
  2234. {
  2235. "group": "Success 200",
  2236. "type": "String",
  2237. "optional": false,
  2238. "field": "msg",
  2239. "description": "<p>描述</p>"
  2240. },
  2241. {
  2242. "group": "Success 200",
  2243. "type": "Number",
  2244. "optional": false,
  2245. "field": "code",
  2246. "description": "<p>状态码</p>"
  2247. }
  2248. ]
  2249. }
  2250. },
  2251. "error": {
  2252. "examples": [
  2253. {
  2254. "title": "操作成功",
  2255. "content": "{\"status\": 1, \"msg\": \"操作成功\", \"code\": 0, \"data\": {}}",
  2256. "type": "json"
  2257. },
  2258. {
  2259. "title": "操作失败",
  2260. "content": "{\"status\": 2, \"msg\": \"\\u64cd\\u4f5c\\u5931\\u8d25\", \"code\": 0, \"data\": {}}",
  2261. "type": "json"
  2262. }
  2263. ]
  2264. },
  2265. "filename": "/root/input/nongxiaohe/front/api/work.py",
  2266. "groupTitle": "Farm"
  2267. }
  2268. ]