api.json 93 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500
  1. {
  2. "openapi": "3.0.0",
  3. "info": {
  4. "title": "POS系统api",
  5. "description": "\n * 所有接口请求请使用json形式(get除外)\n * pad后台管理请使用管理员登入获取token 把token放在协议头(head)来请求其他接口",
  6. "version": "0.1"
  7. },
  8. "paths": {
  9. "/api/Admin/index": {
  10. "get": {
  11. "tags": [
  12. "管理员管理"
  13. ],
  14. "summary": "管理员列表",
  15. "operationId": "app\\api\\controller\\Admin::index",
  16. "parameters": [
  17. {
  18. "name": "token",
  19. "in": "header",
  20. "description": "token",
  21. "schema": {
  22. "type": "string"
  23. }
  24. },
  25. {
  26. "name": "page",
  27. "in": "query",
  28. "description": "页码",
  29. "schema": {
  30. "type": "ineger",
  31. "default": "1"
  32. }
  33. },
  34. {
  35. "name": "pageSize",
  36. "in": "query",
  37. "description": "页尺寸",
  38. "schema": {
  39. "type": "integer",
  40. "default": "10"
  41. }
  42. },
  43. {
  44. "name": "status",
  45. "in": "query",
  46. "description": "状态 1正常 2删除",
  47. "schema": {
  48. "type": "integer",
  49. "default": "1"
  50. }
  51. },
  52. {
  53. "name": "name",
  54. "in": "query",
  55. "description": "名称",
  56. "schema": {
  57. "type": "string"
  58. }
  59. },
  60. {
  61. "name": "mobile",
  62. "in": "query",
  63. "description": "手机号",
  64. "schema": {
  65. "type": "string"
  66. }
  67. },
  68. {
  69. "name": "roleId",
  70. "in": "query",
  71. "description": "角色id",
  72. "schema": {
  73. "type": "ineger"
  74. }
  75. }
  76. ],
  77. "requestBody": {},
  78. "responses": {
  79. "200": {
  80. "description": "请求成功"
  81. }
  82. }
  83. }
  84. },
  85. "/api/Admin/save": {
  86. "post": {
  87. "tags": [
  88. "管理员管理"
  89. ],
  90. "summary": "保存管理员信息",
  91. "operationId": "app\\api\\controller\\Admin::save",
  92. "parameters": [
  93. {
  94. "name": "token",
  95. "in": "header",
  96. "description": "token",
  97. "schema": {
  98. "type": "string"
  99. }
  100. }
  101. ],
  102. "requestBody": {
  103. "content": {
  104. "multipart/form-data": {
  105. "schema": {
  106. "required": [
  107. "name",
  108. "account",
  109. "mobile",
  110. "roleId",
  111. "groupIds",
  112. "storeIds"
  113. ],
  114. "properties": {
  115. "name": {
  116. "description": "管理员名称",
  117. "type": "string",
  118. "default": "jack"
  119. },
  120. "account": {
  121. "description": "登入账号",
  122. "type": "string",
  123. "default": "admin01"
  124. },
  125. "password": {
  126. "description": "登入密码",
  127. "type": "string",
  128. "default": "123465"
  129. },
  130. "mobile": {
  131. "description": "手机号",
  132. "type": "string",
  133. "default": "12367897654"
  134. },
  135. "roleId": {
  136. "description": "角色id-单选",
  137. "type": "integer",
  138. "default": "1"
  139. },
  140. "groupIds": {
  141. "description": "集团id-多选",
  142. "type": "string",
  143. "default": "1,2"
  144. },
  145. "storeIds": {
  146. "description": "门店id-多选",
  147. "type": "string",
  148. "default": "1,2"
  149. },
  150. "macAdress": {
  151. "description": "mac地址",
  152. "type": "string",
  153. "default": "1,2"
  154. },
  155. "id": {
  156. "description": "管理员id",
  157. "type": "string",
  158. "default": "0"
  159. }
  160. },
  161. "type": "object"
  162. }
  163. }
  164. }
  165. },
  166. "responses": {
  167. "200": {
  168. "description": "请求成功"
  169. }
  170. }
  171. }
  172. },
  173. "/api/Admin/login": {
  174. "post": {
  175. "tags": [
  176. "管理员管理"
  177. ],
  178. "summary": "管理员登入",
  179. "operationId": "app\\api\\controller\\Admin::login",
  180. "parameters": [
  181. {
  182. "name": "token",
  183. "in": "header",
  184. "description": "token",
  185. "schema": {
  186. "type": "string"
  187. }
  188. }
  189. ],
  190. "requestBody": {
  191. "content": {
  192. "multipart/form-data": {
  193. "schema": {
  194. "required": [
  195. "account",
  196. "password",
  197. "code"
  198. ],
  199. "properties": {
  200. "account": {
  201. "description": "登入账号",
  202. "type": "string",
  203. "default": "admin"
  204. },
  205. "password": {
  206. "description": "登入密码",
  207. "type": "string",
  208. "default": "123456"
  209. },
  210. "code": {
  211. "description": "验证码",
  212. "type": "string",
  213. "default": "akjs"
  214. }
  215. },
  216. "type": "object"
  217. }
  218. }
  219. }
  220. },
  221. "responses": {
  222. "200": {
  223. "description": "请求成功"
  224. }
  225. }
  226. }
  227. },
  228. "/api/Admin/read": {
  229. "get": {
  230. "tags": [
  231. "管理员管理"
  232. ],
  233. "summary": "查看管理员个人信息",
  234. "operationId": "app\\api\\controller\\Admin::read",
  235. "parameters": [
  236. {
  237. "name": "token",
  238. "in": "header",
  239. "description": "token",
  240. "schema": {
  241. "type": "string"
  242. }
  243. },
  244. {
  245. "name": "id",
  246. "in": "query",
  247. "description": "管理员id",
  248. "schema": {
  249. "type": "ineger"
  250. }
  251. }
  252. ],
  253. "requestBody": {},
  254. "responses": {
  255. "200": {
  256. "description": "请求成功"
  257. }
  258. }
  259. }
  260. },
  261. "/api/Admin/delete": {
  262. "get": {
  263. "tags": [
  264. "管理员管理"
  265. ],
  266. "summary": "删除管理员信息",
  267. "operationId": "app\\api\\controller\\Admin::delete",
  268. "parameters": [
  269. {
  270. "name": "token",
  271. "in": "header",
  272. "description": "token",
  273. "schema": {
  274. "type": "string"
  275. }
  276. },
  277. {
  278. "name": "id",
  279. "in": "query",
  280. "description": "管理员id",
  281. "schema": {
  282. "type": "ineger",
  283. "default": "1"
  284. }
  285. },
  286. {
  287. "name": "status",
  288. "in": "query",
  289. "description": "1正常 2删除",
  290. "schema": {
  291. "type": "ineger",
  292. "default": "1"
  293. }
  294. }
  295. ],
  296. "requestBody": {},
  297. "responses": {
  298. "200": {
  299. "description": "请求成功"
  300. }
  301. }
  302. }
  303. },
  304. "/api/Admin/verifyImg": {
  305. "get": {
  306. "tags": [
  307. "管理员管理"
  308. ],
  309. "summary": "生成验证码",
  310. "operationId": "app\\api\\controller\\Admin::verifyImg",
  311. "requestBody": {},
  312. "responses": {
  313. "200": {
  314. "description": "请求成功"
  315. }
  316. }
  317. }
  318. },
  319. "/api/Admin/menu": {
  320. "get": {
  321. "tags": [
  322. "管理员管理"
  323. ],
  324. "summary": "菜单权限",
  325. "operationId": "app\\api\\controller\\Admin::menu",
  326. "parameters": [
  327. {
  328. "name": "token",
  329. "in": "header",
  330. "description": "token",
  331. "schema": {
  332. "type": "string"
  333. }
  334. }
  335. ],
  336. "requestBody": {},
  337. "responses": {
  338. "200": {
  339. "description": "请求成功"
  340. }
  341. }
  342. }
  343. },
  344. "/api/Brand/index": {
  345. "post": {
  346. "tags": [
  347. "品牌管理"
  348. ],
  349. "summary": "品牌列表",
  350. "operationId": "app\\api\\controller\\Brand::index",
  351. "parameters": [
  352. {
  353. "name": "token",
  354. "in": "header",
  355. "description": "token",
  356. "schema": {
  357. "type": "string"
  358. }
  359. },
  360. {
  361. "name": "page",
  362. "in": "query",
  363. "description": "页码",
  364. "schema": {
  365. "type": "ineger",
  366. "default": "1"
  367. }
  368. },
  369. {
  370. "name": "pageSize",
  371. "in": "query",
  372. "description": "页尺寸",
  373. "schema": {
  374. "type": "integer",
  375. "default": "10"
  376. }
  377. },
  378. {
  379. "name": "status",
  380. "in": "query",
  381. "description": "状态 1正常 2删除",
  382. "schema": {
  383. "type": "integer",
  384. "default": "1"
  385. }
  386. },
  387. {
  388. "name": "name",
  389. "in": "query",
  390. "description": "品牌名",
  391. "schema": {
  392. "type": "string"
  393. }
  394. }
  395. ],
  396. "requestBody": {},
  397. "responses": {
  398. "200": {
  399. "description": "请求成功"
  400. }
  401. }
  402. }
  403. },
  404. "/api/Brand/save": {
  405. "post": {
  406. "tags": [
  407. "品牌管理"
  408. ],
  409. "summary": "保存品牌信息",
  410. "operationId": "app\\api\\controller\\Brand::save",
  411. "parameters": [
  412. {
  413. "name": "token",
  414. "in": "header",
  415. "description": "token",
  416. "schema": {
  417. "type": "string"
  418. }
  419. }
  420. ],
  421. "requestBody": {
  422. "content": {
  423. "multipart/form-data": {
  424. "schema": {
  425. "required": [
  426. "name",
  427. "groupId"
  428. ],
  429. "properties": {
  430. "name": {
  431. "description": "品牌名称",
  432. "type": "string",
  433. "default": "大大品牌"
  434. },
  435. "groupId": {
  436. "description": "集团id",
  437. "type": "string",
  438. "default": "1"
  439. }
  440. },
  441. "type": "object"
  442. }
  443. }
  444. }
  445. },
  446. "responses": {
  447. "200": {
  448. "description": "请求成功"
  449. }
  450. }
  451. }
  452. },
  453. "/api/Brand/delete": {
  454. "get": {
  455. "tags": [
  456. "品牌管理"
  457. ],
  458. "summary": "删除品牌信息",
  459. "operationId": "app\\api\\controller\\Brand::delete",
  460. "parameters": [
  461. {
  462. "name": "token",
  463. "in": "header",
  464. "description": "token",
  465. "schema": {
  466. "type": "string"
  467. }
  468. },
  469. {
  470. "name": "id",
  471. "in": "query",
  472. "description": "品牌id",
  473. "schema": {
  474. "type": "ineger",
  475. "default": "1"
  476. }
  477. },
  478. {
  479. "name": "status",
  480. "in": "query",
  481. "description": "1正常 2删除",
  482. "schema": {
  483. "type": "ineger",
  484. "default": "1"
  485. }
  486. }
  487. ],
  488. "requestBody": {},
  489. "responses": {
  490. "200": {
  491. "description": "请求成功"
  492. }
  493. }
  494. }
  495. },
  496. "/api/Common/upload": {
  497. "post": {
  498. "tags": [
  499. "通用"
  500. ],
  501. "summary": "上传图片",
  502. "operationId": "app\\api\\controller\\Common::upload",
  503. "parameters": [
  504. {
  505. "name": "token",
  506. "in": "header",
  507. "description": "token",
  508. "schema": {
  509. "type": "string"
  510. }
  511. }
  512. ],
  513. "requestBody": {
  514. "content": {
  515. "multipart/form-data": {
  516. "schema": {
  517. "required": [
  518. "image"
  519. ],
  520. "properties": {
  521. "image": {
  522. "description": "图片(最大5m,支持的后缀jpg,png,gif,jpeg)",
  523. "type": "file"
  524. }
  525. },
  526. "type": "object"
  527. }
  528. }
  529. }
  530. },
  531. "responses": {
  532. "200": {
  533. "description": "请求成功"
  534. }
  535. }
  536. }
  537. },
  538. "/api/Company/index": {
  539. "post": {
  540. "tags": [
  541. "公司管理"
  542. ],
  543. "summary": "公司列表",
  544. "operationId": "app\\api\\controller\\Company::index",
  545. "parameters": [
  546. {
  547. "name": "token",
  548. "in": "header",
  549. "description": "token",
  550. "schema": {
  551. "type": "string"
  552. }
  553. },
  554. {
  555. "name": "page",
  556. "in": "query",
  557. "description": "页码",
  558. "schema": {
  559. "type": "ineger",
  560. "default": "1"
  561. }
  562. },
  563. {
  564. "name": "pageSize",
  565. "in": "query",
  566. "description": "页尺寸",
  567. "schema": {
  568. "type": "integer",
  569. "default": "10"
  570. }
  571. },
  572. {
  573. "name": "status",
  574. "in": "query",
  575. "description": "状态 1正常 2删除",
  576. "schema": {
  577. "type": "integer",
  578. "default": "1"
  579. }
  580. },
  581. {
  582. "name": "name",
  583. "in": "query",
  584. "description": "公司名",
  585. "schema": {
  586. "type": "string"
  587. }
  588. }
  589. ],
  590. "requestBody": {},
  591. "responses": {
  592. "200": {
  593. "description": "请求成功"
  594. }
  595. }
  596. }
  597. },
  598. "/api/Company/save": {
  599. "post": {
  600. "tags": [
  601. "公司管理"
  602. ],
  603. "summary": "保存公司信息",
  604. "operationId": "app\\api\\controller\\Company::save",
  605. "parameters": [
  606. {
  607. "name": "token",
  608. "in": "header",
  609. "description": "token",
  610. "schema": {
  611. "type": "string"
  612. }
  613. }
  614. ],
  615. "requestBody": {
  616. "content": {
  617. "multipart/form-data": {
  618. "schema": {
  619. "required": [
  620. "name",
  621. "groupId",
  622. "code",
  623. "payId"
  624. ],
  625. "properties": {
  626. "name": {
  627. "description": "公司名称",
  628. "type": "string",
  629. "default": "jj公司"
  630. },
  631. "groupId": {
  632. "description": "集团id",
  633. "type": "integer",
  634. "default": "1"
  635. },
  636. "code": {
  637. "description": "公司code",
  638. "type": "string",
  639. "default": "a01"
  640. },
  641. "payId": {
  642. "description": "支付id",
  643. "type": "integer",
  644. "default": "1"
  645. },
  646. "status": {
  647. "description": "状态 1正常 2删除",
  648. "type": "integer",
  649. "default": "1"
  650. }
  651. },
  652. "type": "object"
  653. }
  654. }
  655. }
  656. },
  657. "responses": {
  658. "200": {
  659. "description": "请求成功"
  660. }
  661. }
  662. }
  663. },
  664. "/api/Company/read": {
  665. "get": {
  666. "tags": [
  667. "公司管理"
  668. ],
  669. "summary": "查看公司信息",
  670. "operationId": "app\\api\\controller\\Company::read",
  671. "parameters": [
  672. {
  673. "name": "token",
  674. "in": "header",
  675. "description": "token",
  676. "schema": {
  677. "type": "string"
  678. }
  679. },
  680. {
  681. "name": "id",
  682. "in": "query",
  683. "description": "公司id",
  684. "schema": {
  685. "type": "ineger",
  686. "default": "1"
  687. }
  688. }
  689. ],
  690. "requestBody": {},
  691. "responses": {
  692. "200": {
  693. "description": "请求成功"
  694. }
  695. }
  696. }
  697. },
  698. "/api/Company/delete": {
  699. "get": {
  700. "tags": [
  701. "公司管理"
  702. ],
  703. "summary": "删除公司信息",
  704. "operationId": "app\\api\\controller\\Company::delete",
  705. "parameters": [
  706. {
  707. "name": "token",
  708. "in": "header",
  709. "description": "token",
  710. "schema": {
  711. "type": "string"
  712. }
  713. },
  714. {
  715. "name": "id",
  716. "in": "query",
  717. "description": "公司id",
  718. "schema": {
  719. "type": "ineger",
  720. "default": "1"
  721. }
  722. },
  723. {
  724. "name": "status",
  725. "in": "query",
  726. "description": "1正常 2删除",
  727. "schema": {
  728. "type": "ineger",
  729. "default": "1"
  730. }
  731. }
  732. ],
  733. "requestBody": {},
  734. "responses": {
  735. "200": {
  736. "description": "请求成功"
  737. }
  738. }
  739. }
  740. },
  741. "/api/Discuss/index": {
  742. "post": {
  743. "tags": [
  744. "评论管理"
  745. ],
  746. "summary": "评论列表",
  747. "operationId": "app\\api\\controller\\Discuss::index",
  748. "parameters": [
  749. {
  750. "name": "token",
  751. "in": "header",
  752. "description": "token",
  753. "schema": {
  754. "type": "string"
  755. }
  756. },
  757. {
  758. "name": "page",
  759. "in": "query",
  760. "description": "页码",
  761. "schema": {
  762. "type": "ineger",
  763. "default": "1"
  764. }
  765. },
  766. {
  767. "name": "pageSize",
  768. "in": "query",
  769. "description": "页尺寸",
  770. "schema": {
  771. "type": "integer",
  772. "default": "10"
  773. }
  774. },
  775. {
  776. "name": "storeId",
  777. "in": "query",
  778. "description": "门店id",
  779. "schema": {
  780. "type": "integer",
  781. "default": "1"
  782. }
  783. },
  784. {
  785. "name": "productId",
  786. "in": "query",
  787. "description": "产品id",
  788. "schema": {
  789. "type": "integer",
  790. "default": "1"
  791. }
  792. },
  793. {
  794. "name": "myDiscuss",
  795. "in": "query",
  796. "description": "用户的评论 1获取我的评论",
  797. "schema": {
  798. "type": "integer",
  799. "default": "1"
  800. }
  801. }
  802. ],
  803. "requestBody": {},
  804. "responses": {
  805. "200": {
  806. "description": "请求成功"
  807. }
  808. }
  809. }
  810. },
  811. "/api/Discuss/save": {
  812. "post": {
  813. "tags": [
  814. "评论管理"
  815. ],
  816. "summary": "保存评论信息",
  817. "operationId": "app\\api\\controller\\Discuss::save",
  818. "parameters": [
  819. {
  820. "name": "token",
  821. "in": "header",
  822. "description": "token",
  823. "schema": {
  824. "type": "string"
  825. }
  826. }
  827. ],
  828. "requestBody": {
  829. "content": {
  830. "multipart/form-data": {
  831. "schema": {
  832. "required": [
  833. "productId",
  834. "orderId",
  835. "storeId",
  836. "productScore",
  837. "storeScore",
  838. "content",
  839. "imgUrls"
  840. ],
  841. "properties": {
  842. "productId": {
  843. "description": "产品id",
  844. "type": "integer",
  845. "default": "1"
  846. },
  847. "orderId": {
  848. "description": "订单id",
  849. "type": "integer",
  850. "default": "1"
  851. },
  852. "storeId": {
  853. "description": "门店id",
  854. "type": "integer",
  855. "default": "1"
  856. },
  857. "productScore": {
  858. "description": "产品得分",
  859. "type": "integer",
  860. "default": "5"
  861. },
  862. "storeScore": {
  863. "description": "门店得分",
  864. "type": "integer",
  865. "default": "5"
  866. },
  867. "content": {
  868. "description": "评论详情",
  869. "type": "string",
  870. "default": "妹子真好看"
  871. },
  872. "imgUrls": {
  873. "description": "评论图片(多个用逗号分隔)",
  874. "type": "integer",
  875. "default": "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3363295869,2467511306&fm=26&gp=0.jpg,https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3363295869,2467511306&fm=26&gp=0.jpg"
  876. }
  877. },
  878. "type": "object"
  879. }
  880. }
  881. }
  882. },
  883. "responses": {
  884. "200": {
  885. "description": "请求成功"
  886. }
  887. }
  888. }
  889. },
  890. "/api/Group/index": {
  891. "post": {
  892. "tags": [
  893. "集团管理"
  894. ],
  895. "summary": "集团列表",
  896. "operationId": "app\\api\\controller\\Group::index",
  897. "parameters": [
  898. {
  899. "name": "token",
  900. "in": "header",
  901. "description": "token",
  902. "schema": {
  903. "type": "string"
  904. }
  905. },
  906. {
  907. "name": "page",
  908. "in": "query",
  909. "description": "页码",
  910. "schema": {
  911. "type": "ineger",
  912. "default": "1"
  913. }
  914. },
  915. {
  916. "name": "pageSize",
  917. "in": "query",
  918. "description": "页尺寸",
  919. "schema": {
  920. "type": "integer",
  921. "default": "10"
  922. }
  923. }
  924. ],
  925. "requestBody": {},
  926. "responses": {
  927. "200": {
  928. "description": "请求成功"
  929. }
  930. }
  931. }
  932. },
  933. "/api/Group/save": {
  934. "post": {
  935. "tags": [
  936. "集团管理"
  937. ],
  938. "summary": "保存集团信息",
  939. "operationId": "app\\api\\controller\\Group::save",
  940. "parameters": [
  941. {
  942. "name": "token",
  943. "in": "header",
  944. "description": "token",
  945. "schema": {
  946. "type": "string"
  947. }
  948. }
  949. ],
  950. "requestBody": {
  951. "content": {
  952. "multipart/form-data": {
  953. "schema": {
  954. "required": [
  955. "name"
  956. ],
  957. "properties": {
  958. "name": {
  959. "description": "集团名称",
  960. "type": "string",
  961. "default": "四海集团"
  962. }
  963. },
  964. "type": "object"
  965. }
  966. }
  967. }
  968. },
  969. "responses": {
  970. "200": {
  971. "description": "请求成功"
  972. }
  973. }
  974. }
  975. },
  976. "/api/Order/index": {
  977. "post": {
  978. "tags": [
  979. "订单管理"
  980. ],
  981. "summary": "订单列表",
  982. "operationId": "app\\api\\controller\\Order::index",
  983. "parameters": [
  984. {
  985. "name": "token",
  986. "in": "header",
  987. "description": "token",
  988. "schema": {
  989. "type": "string"
  990. }
  991. },
  992. {
  993. "name": "page",
  994. "in": "query",
  995. "description": "页码",
  996. "schema": {
  997. "type": "ineger",
  998. "default": "1"
  999. }
  1000. },
  1001. {
  1002. "name": "pageSize",
  1003. "in": "query",
  1004. "description": "页尺寸",
  1005. "schema": {
  1006. "type": "integer",
  1007. "default": "10"
  1008. }
  1009. },
  1010. {
  1011. "name": "orderStatus",
  1012. "in": "query",
  1013. "description": "订单状态 1未支付 2已支付 ",
  1014. "schema": {
  1015. "type": "integer"
  1016. }
  1017. },
  1018. {
  1019. "name": "writeOffStatus",
  1020. "in": "query",
  1021. "description": "核销状态 1未核销 2已核销 ",
  1022. "schema": {
  1023. "type": "integer"
  1024. }
  1025. },
  1026. {
  1027. "name": "orderSn",
  1028. "in": "query",
  1029. "description": "订单号",
  1030. "schema": {
  1031. "type": "string"
  1032. }
  1033. },
  1034. {
  1035. "name": "mobile",
  1036. "in": "query",
  1037. "description": "手机号",
  1038. "schema": {
  1039. "type": "string"
  1040. }
  1041. },
  1042. {
  1043. "name": "storeId",
  1044. "in": "query",
  1045. "description": "门店id",
  1046. "schema": {
  1047. "type": "integer"
  1048. }
  1049. },
  1050. {
  1051. "name": "appointmentTime",
  1052. "in": "query",
  1053. "description": "预约时间",
  1054. "schema": {
  1055. "type": "2020-01-02,2021-12-30"
  1056. }
  1057. },
  1058. {
  1059. "name": "createTime",
  1060. "in": "query",
  1061. "description": "订单时间",
  1062. "schema": {
  1063. "type": "2020-01-02,2021-12-30"
  1064. }
  1065. },
  1066. {
  1067. "name": "orderType",
  1068. "in": "query",
  1069. "description": "订单类型 1小程序下单 2后台增加",
  1070. "schema": {
  1071. "type": "string"
  1072. }
  1073. }
  1074. ],
  1075. "requestBody": {},
  1076. "responses": {
  1077. "200": {
  1078. "description": "请求成功"
  1079. }
  1080. }
  1081. }
  1082. },
  1083. "/api/Order/delete": {
  1084. "get": {
  1085. "tags": [
  1086. "订单管理"
  1087. ],
  1088. "summary": "删除品牌信息",
  1089. "operationId": "app\\api\\controller\\Order::delete",
  1090. "parameters": [
  1091. {
  1092. "name": "token",
  1093. "in": "header",
  1094. "description": "token",
  1095. "schema": {
  1096. "type": "string"
  1097. }
  1098. },
  1099. {
  1100. "name": "id",
  1101. "in": "query",
  1102. "description": "品牌id",
  1103. "schema": {
  1104. "type": "ineger",
  1105. "default": "1"
  1106. }
  1107. },
  1108. {
  1109. "name": "status",
  1110. "in": "query",
  1111. "description": "1正常 2删除",
  1112. "schema": {
  1113. "type": "ineger",
  1114. "default": "1"
  1115. }
  1116. }
  1117. ],
  1118. "requestBody": {},
  1119. "responses": {
  1120. "200": {
  1121. "description": "请求成功"
  1122. }
  1123. }
  1124. }
  1125. },
  1126. "/api/Order/createOrder": {
  1127. "post": {
  1128. "tags": [
  1129. "订单管理"
  1130. ],
  1131. "summary": "创建订单信息",
  1132. "operationId": "app\\api\\controller\\Order::createOrder",
  1133. "parameters": [
  1134. {
  1135. "name": "token",
  1136. "in": "header",
  1137. "description": "token",
  1138. "schema": {
  1139. "type": "string"
  1140. }
  1141. }
  1142. ],
  1143. "requestBody": {
  1144. "content": {
  1145. "multipart/form-data": {
  1146. "schema": {
  1147. "required": [
  1148. "productId",
  1149. "storeId",
  1150. "appointmentTime",
  1151. "num",
  1152. "mobile"
  1153. ],
  1154. "properties": {
  1155. "productId": {
  1156. "description": "商品id",
  1157. "type": "integer",
  1158. "default": "1"
  1159. },
  1160. "storeId": {
  1161. "description": "门店id",
  1162. "type": "integer",
  1163. "default": "1"
  1164. },
  1165. "appointmentTime": {
  1166. "description": "预约时间",
  1167. "type": "string",
  1168. "default": "2020-12-12 16:30:00"
  1169. },
  1170. "num": {
  1171. "description": "商品数量",
  1172. "type": "integer",
  1173. "default": "1"
  1174. },
  1175. "mobile": {
  1176. "description": "手机号",
  1177. "type": "string",
  1178. "default": "15623655623"
  1179. }
  1180. },
  1181. "type": "object"
  1182. }
  1183. }
  1184. }
  1185. },
  1186. "responses": {
  1187. "200": {
  1188. "description": "请求成功"
  1189. }
  1190. }
  1191. }
  1192. },
  1193. "/api/Order/assignStaff": {
  1194. "post": {
  1195. "tags": [
  1196. "订单管理"
  1197. ],
  1198. "summary": "分配职员",
  1199. "operationId": "app\\api\\controller\\Order::assignStaff",
  1200. "parameters": [
  1201. {
  1202. "name": "token",
  1203. "in": "header",
  1204. "description": "token",
  1205. "schema": {
  1206. "type": "string"
  1207. }
  1208. }
  1209. ],
  1210. "requestBody": {
  1211. "content": {
  1212. "multipart/form-data": {
  1213. "schema": {
  1214. "required": [
  1215. "orderId",
  1216. "staffId"
  1217. ],
  1218. "properties": {
  1219. "orderId": {
  1220. "description": "订单id",
  1221. "type": "integer",
  1222. "default": "1"
  1223. },
  1224. "staffId": {
  1225. "description": "职员id",
  1226. "type": "integer",
  1227. "default": "1"
  1228. }
  1229. },
  1230. "type": "object"
  1231. }
  1232. }
  1233. }
  1234. },
  1235. "responses": {
  1236. "200": {
  1237. "description": "请求成功"
  1238. }
  1239. }
  1240. }
  1241. },
  1242. "/api/Pay/index": {
  1243. "post": {
  1244. "tags": [
  1245. "支付管理"
  1246. ],
  1247. "summary": "支付配置列表",
  1248. "operationId": "app\\api\\controller\\Pay::index",
  1249. "parameters": [
  1250. {
  1251. "name": "token",
  1252. "in": "header",
  1253. "description": "token",
  1254. "schema": {
  1255. "type": "string"
  1256. }
  1257. },
  1258. {
  1259. "name": "page",
  1260. "in": "query",
  1261. "description": "页码",
  1262. "schema": {
  1263. "type": "ineger",
  1264. "default": "1"
  1265. }
  1266. },
  1267. {
  1268. "name": "pageSize",
  1269. "in": "query",
  1270. "description": "页尺寸",
  1271. "schema": {
  1272. "type": "integer",
  1273. "default": "10"
  1274. }
  1275. },
  1276. {
  1277. "name": "status",
  1278. "in": "query",
  1279. "description": "状态 1正常 2删除",
  1280. "schema": {
  1281. "type": "integer",
  1282. "default": "1"
  1283. }
  1284. },
  1285. {
  1286. "name": "code",
  1287. "in": "query",
  1288. "description": "支付code",
  1289. "schema": {
  1290. "type": "string"
  1291. }
  1292. }
  1293. ],
  1294. "requestBody": {},
  1295. "responses": {
  1296. "200": {
  1297. "description": "请求成功"
  1298. }
  1299. }
  1300. }
  1301. },
  1302. "/api/Pay/save": {
  1303. "post": {
  1304. "tags": [
  1305. "支付管理"
  1306. ],
  1307. "summary": "保存支付配置信息",
  1308. "operationId": "app\\api\\controller\\Pay::save",
  1309. "parameters": [
  1310. {
  1311. "name": "token",
  1312. "in": "header",
  1313. "description": "token",
  1314. "schema": {
  1315. "type": "string"
  1316. }
  1317. }
  1318. ],
  1319. "requestBody": {
  1320. "content": {
  1321. "multipart/form-data": {
  1322. "schema": {
  1323. "required": [
  1324. "code",
  1325. "groupId",
  1326. "masterPayId",
  1327. "masterAppId",
  1328. "xcxSecret"
  1329. ],
  1330. "properties": {
  1331. "code": {
  1332. "description": "支付code",
  1333. "type": "string",
  1334. "default": "jj公司"
  1335. },
  1336. "groupId": {
  1337. "description": "集团id",
  1338. "type": "integer",
  1339. "default": "1"
  1340. },
  1341. "masterPayId": {
  1342. "description": "主商户号",
  1343. "type": "string",
  1344. "default": "a01"
  1345. },
  1346. "subPayId": {
  1347. "description": "子商户号",
  1348. "type": "string",
  1349. "default": "1"
  1350. },
  1351. "masterAppId": {
  1352. "description": "主appId",
  1353. "type": "string",
  1354. "default": "1"
  1355. },
  1356. "subAppId": {
  1357. "description": "子appId",
  1358. "type": "string",
  1359. "default": "1"
  1360. },
  1361. "xcxSecret": {
  1362. "description": "秘钥",
  1363. "type": "string",
  1364. "default": "1"
  1365. },
  1366. "status": {
  1367. "description": "状态 1正常 2删除",
  1368. "type": "integer",
  1369. "default": "1"
  1370. },
  1371. "remark": {
  1372. "description": "备注",
  1373. "type": "dtring",
  1374. "default": "xx支付"
  1375. }
  1376. },
  1377. "type": "object"
  1378. }
  1379. }
  1380. }
  1381. },
  1382. "responses": {
  1383. "200": {
  1384. "description": "请求成功"
  1385. }
  1386. }
  1387. }
  1388. },
  1389. "/api/Pay/read": {
  1390. "get": {
  1391. "tags": [
  1392. "支付管理"
  1393. ],
  1394. "summary": "查看支付信息",
  1395. "operationId": "app\\api\\controller\\Pay::read",
  1396. "parameters": [
  1397. {
  1398. "name": "token",
  1399. "in": "header",
  1400. "description": "token",
  1401. "schema": {
  1402. "type": "string"
  1403. }
  1404. },
  1405. {
  1406. "name": "id",
  1407. "in": "query",
  1408. "description": "支付id",
  1409. "schema": {
  1410. "type": "ineger",
  1411. "default": "1"
  1412. }
  1413. }
  1414. ],
  1415. "requestBody": {},
  1416. "responses": {
  1417. "200": {
  1418. "description": "请求成功"
  1419. }
  1420. }
  1421. }
  1422. },
  1423. "/api/Pay/delete": {
  1424. "get": {
  1425. "tags": [
  1426. "支付管理"
  1427. ],
  1428. "summary": "删除支付配置信息",
  1429. "operationId": "app\\api\\controller\\Pay::delete",
  1430. "parameters": [
  1431. {
  1432. "name": "token",
  1433. "in": "header",
  1434. "description": "token",
  1435. "schema": {
  1436. "type": "string"
  1437. }
  1438. },
  1439. {
  1440. "name": "id",
  1441. "in": "query",
  1442. "description": "支付id",
  1443. "schema": {
  1444. "type": "ineger",
  1445. "default": "1"
  1446. }
  1447. },
  1448. {
  1449. "name": "status",
  1450. "in": "query",
  1451. "description": "1正常 2删除",
  1452. "schema": {
  1453. "type": "ineger",
  1454. "default": "1"
  1455. }
  1456. }
  1457. ],
  1458. "requestBody": {},
  1459. "responses": {
  1460. "200": {
  1461. "description": "请求成功"
  1462. }
  1463. }
  1464. }
  1465. },
  1466. "/api/Product/index": {
  1467. "post": {
  1468. "tags": [
  1469. "产品管理"
  1470. ],
  1471. "summary": "产品列表",
  1472. "operationId": "app\\api\\controller\\Product::index",
  1473. "parameters": [
  1474. {
  1475. "name": "token",
  1476. "in": "header",
  1477. "description": "token",
  1478. "schema": {
  1479. "type": "string"
  1480. }
  1481. },
  1482. {
  1483. "name": "page",
  1484. "in": "query",
  1485. "description": "页码",
  1486. "schema": {
  1487. "type": "ineger",
  1488. "default": "1"
  1489. }
  1490. },
  1491. {
  1492. "name": "pageSize",
  1493. "in": "query",
  1494. "description": "页尺寸",
  1495. "schema": {
  1496. "type": "integer",
  1497. "default": "10"
  1498. }
  1499. },
  1500. {
  1501. "name": "status",
  1502. "in": "query",
  1503. "description": "状态 1正常 2删除",
  1504. "schema": {
  1505. "type": "integer",
  1506. "default": "1"
  1507. }
  1508. },
  1509. {
  1510. "name": "name",
  1511. "in": "query",
  1512. "description": "产品名称",
  1513. "schema": {
  1514. "type": "string"
  1515. }
  1516. },
  1517. {
  1518. "name": "brandId",
  1519. "in": "query",
  1520. "description": "品牌id",
  1521. "schema": {
  1522. "type": "integer"
  1523. }
  1524. },
  1525. {
  1526. "name": "companyId",
  1527. "in": "query",
  1528. "description": "公司id",
  1529. "schema": {
  1530. "type": "integer"
  1531. }
  1532. }
  1533. ],
  1534. "requestBody": {},
  1535. "responses": {
  1536. "200": {
  1537. "description": "请求成功"
  1538. }
  1539. }
  1540. }
  1541. },
  1542. "/api/Product/typeList": {
  1543. "post": {
  1544. "tags": [
  1545. "产品管理"
  1546. ],
  1547. "summary": "产品类型列表(暂时不用)",
  1548. "operationId": "app\\api\\controller\\Product::typeList",
  1549. "parameters": [
  1550. {
  1551. "name": "token",
  1552. "in": "header",
  1553. "description": "token",
  1554. "schema": {
  1555. "type": "string"
  1556. }
  1557. },
  1558. {
  1559. "name": "page",
  1560. "in": "query",
  1561. "description": "页码",
  1562. "schema": {
  1563. "type": "ineger",
  1564. "default": "1"
  1565. }
  1566. },
  1567. {
  1568. "name": "pageSize",
  1569. "in": "query",
  1570. "description": "页尺寸",
  1571. "schema": {
  1572. "type": "integer",
  1573. "default": "10"
  1574. }
  1575. }
  1576. ],
  1577. "requestBody": {},
  1578. "responses": {
  1579. "200": {
  1580. "description": "请求成功"
  1581. }
  1582. }
  1583. }
  1584. },
  1585. "/api/Product/save": {
  1586. "post": {
  1587. "tags": [
  1588. "产品管理"
  1589. ],
  1590. "summary": "保存产品信息",
  1591. "operationId": "app\\api\\controller\\Product::save",
  1592. "parameters": [
  1593. {
  1594. "name": "token",
  1595. "in": "header",
  1596. "description": "token",
  1597. "schema": {
  1598. "type": "string"
  1599. }
  1600. }
  1601. ],
  1602. "requestBody": {
  1603. "content": {
  1604. "multipart/form-data": {
  1605. "schema": {
  1606. "required": [
  1607. "name",
  1608. "imgUrl",
  1609. "oldPrice",
  1610. "currentPrice",
  1611. "companyId",
  1612. "brandId",
  1613. "productContent"
  1614. ],
  1615. "properties": {
  1616. "name": {
  1617. "description": "产品名称",
  1618. "type": "string",
  1619. "default": "精油推背"
  1620. },
  1621. "imgUrl": {
  1622. "description": "产品图片",
  1623. "type": "integer",
  1624. "default": "http://xxx.com"
  1625. },
  1626. "oldPrice": {
  1627. "description": "原价",
  1628. "type": "string",
  1629. "default": "88.00"
  1630. },
  1631. "currentPrice": {
  1632. "description": "现价",
  1633. "type": "string",
  1634. "default": "66.00"
  1635. },
  1636. "productContent": {
  1637. "description": "产品介绍(富文本编辑)",
  1638. "type": "string",
  1639. "default": "本产品由xxx精油。。"
  1640. },
  1641. "companyId": {
  1642. "description": "公司id",
  1643. "type": "string",
  1644. "default": "1"
  1645. },
  1646. "brandId": {
  1647. "description": "品牌id",
  1648. "type": "string",
  1649. "default": "1"
  1650. },
  1651. "status": {
  1652. "description": "状态 1正常 2下架",
  1653. "type": "integer",
  1654. "default": "1"
  1655. }
  1656. },
  1657. "type": "object"
  1658. }
  1659. }
  1660. }
  1661. },
  1662. "responses": {
  1663. "200": {
  1664. "description": "请求成功"
  1665. }
  1666. }
  1667. }
  1668. },
  1669. "/api/Product/read": {
  1670. "get": {
  1671. "tags": [
  1672. "产品管理"
  1673. ],
  1674. "summary": "查看产品信息",
  1675. "operationId": "app\\api\\controller\\Product::read",
  1676. "parameters": [
  1677. {
  1678. "name": "token",
  1679. "in": "header",
  1680. "description": "token",
  1681. "schema": {
  1682. "type": "string"
  1683. }
  1684. },
  1685. {
  1686. "name": "id",
  1687. "in": "query",
  1688. "description": "产品id",
  1689. "schema": {
  1690. "type": "ineger",
  1691. "default": "1"
  1692. }
  1693. }
  1694. ],
  1695. "requestBody": {},
  1696. "responses": {
  1697. "200": {
  1698. "description": "请求成功"
  1699. }
  1700. }
  1701. }
  1702. },
  1703. "/api/Product/delete": {
  1704. "get": {
  1705. "tags": [
  1706. "产品管理"
  1707. ],
  1708. "summary": "删除产品信息",
  1709. "operationId": "app\\api\\controller\\Product::delete",
  1710. "parameters": [
  1711. {
  1712. "name": "token",
  1713. "in": "header",
  1714. "description": "token",
  1715. "schema": {
  1716. "type": "string"
  1717. }
  1718. },
  1719. {
  1720. "name": "id",
  1721. "in": "query",
  1722. "description": "产品id",
  1723. "schema": {
  1724. "type": "ineger",
  1725. "default": "1"
  1726. }
  1727. },
  1728. {
  1729. "name": "status",
  1730. "in": "query",
  1731. "description": "1正常 2删除",
  1732. "schema": {
  1733. "type": "ineger",
  1734. "default": "1"
  1735. }
  1736. }
  1737. ],
  1738. "requestBody": {},
  1739. "responses": {
  1740. "200": {
  1741. "description": "请求成功"
  1742. }
  1743. }
  1744. }
  1745. },
  1746. "/api/Staff/index": {
  1747. "post": {
  1748. "tags": [
  1749. "职员管理"
  1750. ],
  1751. "summary": "职员列表",
  1752. "operationId": "app\\api\\controller\\Staff::index",
  1753. "parameters": [
  1754. {
  1755. "name": "token",
  1756. "in": "header",
  1757. "description": "token",
  1758. "schema": {
  1759. "type": "string"
  1760. }
  1761. },
  1762. {
  1763. "name": "page",
  1764. "in": "query",
  1765. "description": "页码",
  1766. "schema": {
  1767. "type": "ineger",
  1768. "default": "1"
  1769. }
  1770. },
  1771. {
  1772. "name": "pageSize",
  1773. "in": "query",
  1774. "description": "页尺寸",
  1775. "schema": {
  1776. "type": "integer",
  1777. "default": "10"
  1778. }
  1779. },
  1780. {
  1781. "name": "status",
  1782. "in": "query",
  1783. "description": "状态 1正常 2删除",
  1784. "schema": {
  1785. "type": "integer",
  1786. "default": "1"
  1787. }
  1788. },
  1789. {
  1790. "name": "name",
  1791. "in": "query",
  1792. "description": "职员名",
  1793. "schema": {
  1794. "type": "string"
  1795. }
  1796. },
  1797. {
  1798. "name": "mobile",
  1799. "in": "query",
  1800. "description": "手机号",
  1801. "schema": {
  1802. "type": "string"
  1803. }
  1804. }
  1805. ],
  1806. "requestBody": {},
  1807. "responses": {
  1808. "200": {
  1809. "description": "请求成功"
  1810. }
  1811. }
  1812. }
  1813. },
  1814. "/api/Staff/save": {
  1815. "post": {
  1816. "tags": [
  1817. "职员管理"
  1818. ],
  1819. "summary": "保存职员信息",
  1820. "operationId": "app\\api\\controller\\Staff::save",
  1821. "parameters": [
  1822. {
  1823. "name": "token",
  1824. "in": "header",
  1825. "description": "token",
  1826. "schema": {
  1827. "type": "string"
  1828. }
  1829. }
  1830. ],
  1831. "requestBody": {
  1832. "content": {
  1833. "multipart/form-data": {
  1834. "schema": {
  1835. "required": [
  1836. "name",
  1837. "code",
  1838. "mobile",
  1839. "joinTime",
  1840. "staffTitleId",
  1841. "storeId"
  1842. ],
  1843. "properties": {
  1844. "name": {
  1845. "description": "职员名称",
  1846. "type": "string",
  1847. "default": "tony"
  1848. },
  1849. "code": {
  1850. "description": "职员工号",
  1851. "type": "string",
  1852. "default": "A9527"
  1853. },
  1854. "mobile": {
  1855. "description": "职员手机号",
  1856. "type": "string",
  1857. "default": "12367897654"
  1858. },
  1859. "joinTime": {
  1860. "description": "入职日期",
  1861. "type": "string",
  1862. "default": "2020-01-04"
  1863. },
  1864. "staffTitleId": {
  1865. "description": "职称id",
  1866. "type": "integer",
  1867. "default": "1"
  1868. },
  1869. "storeId": {
  1870. "description": "storeId",
  1871. "type": "integer",
  1872. "default": "1"
  1873. }
  1874. },
  1875. "type": "object"
  1876. }
  1877. }
  1878. }
  1879. },
  1880. "responses": {
  1881. "200": {
  1882. "description": "请求成功"
  1883. }
  1884. }
  1885. }
  1886. },
  1887. "/api/Staff/read": {
  1888. "get": {
  1889. "tags": [
  1890. "职员管理"
  1891. ],
  1892. "summary": "查看职员信息",
  1893. "operationId": "app\\api\\controller\\Staff::read",
  1894. "parameters": [
  1895. {
  1896. "name": "token",
  1897. "in": "header",
  1898. "description": "token",
  1899. "schema": {
  1900. "type": "string"
  1901. }
  1902. },
  1903. {
  1904. "name": "id",
  1905. "in": "query",
  1906. "description": "职员id",
  1907. "schema": {
  1908. "type": "ineger",
  1909. "default": "1"
  1910. }
  1911. }
  1912. ],
  1913. "requestBody": {},
  1914. "responses": {
  1915. "200": {
  1916. "description": "请求成功"
  1917. }
  1918. }
  1919. }
  1920. },
  1921. "/api/Staff/delete": {
  1922. "get": {
  1923. "tags": [
  1924. "职员管理"
  1925. ],
  1926. "summary": "删除职员信息",
  1927. "operationId": "app\\api\\controller\\Staff::delete",
  1928. "parameters": [
  1929. {
  1930. "name": "token",
  1931. "in": "header",
  1932. "description": "token",
  1933. "schema": {
  1934. "type": "string"
  1935. }
  1936. },
  1937. {
  1938. "name": "id",
  1939. "in": "query",
  1940. "description": "职员id",
  1941. "schema": {
  1942. "type": "ineger",
  1943. "default": "1"
  1944. }
  1945. },
  1946. {
  1947. "name": "status",
  1948. "in": "query",
  1949. "description": "1正常 2删除",
  1950. "schema": {
  1951. "type": "ineger",
  1952. "default": "1"
  1953. }
  1954. }
  1955. ],
  1956. "requestBody": {},
  1957. "responses": {
  1958. "200": {
  1959. "description": "请求成功"
  1960. }
  1961. }
  1962. }
  1963. },
  1964. "/api/Store/index": {
  1965. "post": {
  1966. "tags": [
  1967. "门店管理"
  1968. ],
  1969. "summary": "门店列表",
  1970. "operationId": "app\\api\\controller\\Store::index",
  1971. "parameters": [
  1972. {
  1973. "name": "token",
  1974. "in": "header",
  1975. "description": "token",
  1976. "schema": {
  1977. "type": "string"
  1978. }
  1979. },
  1980. {
  1981. "name": "page",
  1982. "in": "query",
  1983. "description": "页码",
  1984. "schema": {
  1985. "type": "ineger",
  1986. "default": "1"
  1987. }
  1988. },
  1989. {
  1990. "name": "pageSize",
  1991. "in": "query",
  1992. "description": "页尺寸",
  1993. "schema": {
  1994. "type": "integer",
  1995. "default": "10"
  1996. }
  1997. },
  1998. {
  1999. "name": "status",
  2000. "in": "query",
  2001. "description": "状态 1正常 2闭店 3歇业",
  2002. "schema": {
  2003. "type": "integer",
  2004. "default": "1"
  2005. }
  2006. },
  2007. {
  2008. "name": "name",
  2009. "in": "query",
  2010. "description": "门店名称",
  2011. "schema": {
  2012. "type": "string"
  2013. }
  2014. },
  2015. {
  2016. "name": "lat",
  2017. "in": "query",
  2018. "description": "经度",
  2019. "schema": {
  2020. "type": "string"
  2021. }
  2022. },
  2023. {
  2024. "name": "lon",
  2025. "in": "query",
  2026. "description": "纬度",
  2027. "schema": {
  2028. "type": "string"
  2029. }
  2030. }
  2031. ],
  2032. "requestBody": {},
  2033. "responses": {
  2034. "200": {
  2035. "description": "请求成功"
  2036. }
  2037. }
  2038. }
  2039. },
  2040. "/api/Store/save": {
  2041. "post": {
  2042. "tags": [
  2043. "门店管理"
  2044. ],
  2045. "summary": "保存门店信息",
  2046. "operationId": "app\\api\\controller\\Store::save",
  2047. "parameters": [
  2048. {
  2049. "name": "token",
  2050. "in": "header",
  2051. "description": "token",
  2052. "schema": {
  2053. "type": "string"
  2054. }
  2055. }
  2056. ],
  2057. "requestBody": {
  2058. "content": {
  2059. "multipart/form-data": {
  2060. "schema": {
  2061. "required": [
  2062. "name",
  2063. "code",
  2064. "openTime",
  2065. "closeTime",
  2066. "payCode",
  2067. "groupId",
  2068. "companyId",
  2069. "brandId",
  2070. "logo",
  2071. "latitude",
  2072. "longitude",
  2073. "address",
  2074. "mobile",
  2075. "storeContent"
  2076. ],
  2077. "properties": {
  2078. "name": {
  2079. "description": "门店名称",
  2080. "type": "string",
  2081. "default": "测试门店1"
  2082. },
  2083. "code": {
  2084. "description": "门店code",
  2085. "type": "string",
  2086. "default": "A001"
  2087. },
  2088. "openTime": {
  2089. "description": "营业时间",
  2090. "type": "string",
  2091. "default": "06:00"
  2092. },
  2093. "closeTime": {
  2094. "description": "闭店时间",
  2095. "type": "string",
  2096. "default": "22:00"
  2097. },
  2098. "payCode": {
  2099. "description": "支付标识",
  2100. "type": "string",
  2101. "default": "paycode1"
  2102. },
  2103. "groupId": {
  2104. "description": "所属集团id",
  2105. "type": "integer",
  2106. "default": "1"
  2107. },
  2108. "companyId": {
  2109. "description": "所属公司id",
  2110. "type": "integer",
  2111. "default": "1"
  2112. },
  2113. "brandId": {
  2114. "description": "所属品牌id",
  2115. "type": "integer",
  2116. "default": "1"
  2117. },
  2118. "logo": {
  2119. "description": "logo的url",
  2120. "type": "string",
  2121. "default": "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1608146390523&di=02b955a1fa80d1c43c6289f846ddc42c&imgtype=0&src=http%3A%2F%2Fimg.sccnn.com%2Fbimg%2F338%2F38706.jpg"
  2122. },
  2123. "latitude": {
  2124. "description": "纬度",
  2125. "type": "string",
  2126. "default": "31.241510099342623"
  2127. },
  2128. "longitude": {
  2129. "description": "经度",
  2130. "type": "string",
  2131. "default": "121.32174958203123"
  2132. },
  2133. "address": {
  2134. "description": "地址",
  2135. "type": "string",
  2136. "default": "上海市普陀区真北路"
  2137. },
  2138. "mobile": {
  2139. "description": "联系电话",
  2140. "type": "string",
  2141. "default": "15656789876"
  2142. },
  2143. "storeContent": {
  2144. "description": "门店介绍",
  2145. "type": "string",
  2146. "default": "本店所有商品照片为专业摄影师拍摄,后期起精心修制及色彩调整,尽量与实际商品保持一致。"
  2147. },
  2148. "id": {
  2149. "description": "门店id",
  2150. "type": "string",
  2151. "default": ""
  2152. },
  2153. "status": {
  2154. "description": "门店状态 1正常 2闭店 3暂歇",
  2155. "type": "0"
  2156. }
  2157. },
  2158. "type": "object"
  2159. }
  2160. }
  2161. }
  2162. },
  2163. "responses": {
  2164. "200": {
  2165. "description": "请求成功"
  2166. }
  2167. }
  2168. }
  2169. },
  2170. "/api/Store/read": {
  2171. "get": {
  2172. "tags": [
  2173. "门店管理"
  2174. ],
  2175. "summary": "查看门店信息",
  2176. "operationId": "app\\api\\controller\\Store::read",
  2177. "parameters": [
  2178. {
  2179. "name": "token",
  2180. "in": "header",
  2181. "description": "token",
  2182. "schema": {
  2183. "type": "string"
  2184. }
  2185. },
  2186. {
  2187. "name": "id",
  2188. "in": "query",
  2189. "description": "门店id",
  2190. "schema": {
  2191. "type": "ineger",
  2192. "default": "1"
  2193. }
  2194. }
  2195. ],
  2196. "requestBody": {},
  2197. "responses": {
  2198. "200": {
  2199. "description": "请求成功"
  2200. }
  2201. }
  2202. }
  2203. },
  2204. "/api/Store/delete": {
  2205. "get": {
  2206. "tags": [
  2207. "门店管理"
  2208. ],
  2209. "summary": "删除门店信息",
  2210. "operationId": "app\\api\\controller\\Store::delete",
  2211. "parameters": [
  2212. {
  2213. "name": "token",
  2214. "in": "header",
  2215. "description": "token",
  2216. "schema": {
  2217. "type": "string"
  2218. }
  2219. },
  2220. {
  2221. "name": "id",
  2222. "in": "query",
  2223. "description": "门店id",
  2224. "schema": {
  2225. "type": "ineger",
  2226. "default": "1"
  2227. }
  2228. },
  2229. {
  2230. "name": "status",
  2231. "in": "query",
  2232. "description": "1正常 2删除",
  2233. "schema": {
  2234. "type": "ineger",
  2235. "default": "1"
  2236. }
  2237. }
  2238. ],
  2239. "requestBody": {},
  2240. "responses": {
  2241. "200": {
  2242. "description": "请求成功"
  2243. }
  2244. }
  2245. }
  2246. },
  2247. "/api/Store/getStore": {
  2248. "post": {
  2249. "tags": [
  2250. "门店管理"
  2251. ],
  2252. "summary": "距离最近的一家门店",
  2253. "operationId": "app\\api\\controller\\Store::getStore",
  2254. "parameters": [
  2255. {
  2256. "name": "token",
  2257. "in": "header",
  2258. "description": "token",
  2259. "schema": {
  2260. "type": "string"
  2261. }
  2262. }
  2263. ],
  2264. "requestBody": {
  2265. "content": {
  2266. "multipart/form-data": {
  2267. "schema": {
  2268. "required": [
  2269. "lat",
  2270. "lon"
  2271. ],
  2272. "properties": {
  2273. "lat": {
  2274. "description": "纬度",
  2275. "type": "string",
  2276. "default": ""
  2277. },
  2278. "lon": {
  2279. "description": "经度",
  2280. "type": "string",
  2281. "default": ""
  2282. }
  2283. },
  2284. "type": "object"
  2285. }
  2286. }
  2287. }
  2288. },
  2289. "responses": {
  2290. "200": {
  2291. "description": "请求成功"
  2292. }
  2293. }
  2294. }
  2295. },
  2296. "/api/User": {
  2297. "post": {
  2298. "tags": [
  2299. "用户管理"
  2300. ],
  2301. "summary": "用户列表",
  2302. "operationId": "app\\api\\controller\\User::index",
  2303. "parameters": [
  2304. {
  2305. "name": "token",
  2306. "in": "header",
  2307. "description": "token",
  2308. "schema": {
  2309. "type": "string"
  2310. }
  2311. }
  2312. ],
  2313. "requestBody": {
  2314. "content": {
  2315. "multipart/form-data": {
  2316. "schema": {
  2317. "required": [],
  2318. "properties": {
  2319. "page": {
  2320. "description": "页码",
  2321. "type": "integer",
  2322. "default": "1"
  2323. },
  2324. "pageSize": {
  2325. "description": "页尺寸",
  2326. "type": "integer",
  2327. "default": "10"
  2328. },
  2329. "status": {
  2330. "description": "状态 1正常 2删除",
  2331. "type": "integer"
  2332. },
  2333. "mobile": {
  2334. "description": "手机号",
  2335. "type": "string"
  2336. },
  2337. "cardLevel": {
  2338. "description": "会员等级 1非会员,2金卡会员,3铂金会员",
  2339. "type": "integer"
  2340. },
  2341. "joinType": {
  2342. "description": "加入方式 1小程序 2后台预约",
  2343. "type": "integer"
  2344. }
  2345. },
  2346. "type": "object"
  2347. }
  2348. }
  2349. }
  2350. },
  2351. "responses": {
  2352. "200": {
  2353. "description": "请求成功"
  2354. }
  2355. }
  2356. }
  2357. },
  2358. "/api/user/save": {
  2359. "post": {
  2360. "tags": [
  2361. "用户管理"
  2362. ],
  2363. "summary": "保存用户(有id就更新,没id就新增)",
  2364. "operationId": "app\\api\\controller\\User::save",
  2365. "parameters": [
  2366. {
  2367. "name": "token",
  2368. "in": "header",
  2369. "description": "token",
  2370. "schema": {
  2371. "type": "string"
  2372. }
  2373. }
  2374. ],
  2375. "requestBody": {
  2376. "content": {
  2377. "application/json": {
  2378. "schema": {
  2379. "required": [
  2380. "title",
  2381. "content"
  2382. ],
  2383. "properties": {
  2384. "code": {
  2385. "description": "微信小程序",
  2386. "type": "string",
  2387. "default": "dd"
  2388. }
  2389. },
  2390. "type": "object"
  2391. }
  2392. }
  2393. }
  2394. },
  2395. "responses": {
  2396. "200": {
  2397. "description": "请求成功"
  2398. }
  2399. }
  2400. }
  2401. },
  2402. "/api/user/esitUser": {
  2403. "post": {
  2404. "tags": [
  2405. "用户管理"
  2406. ],
  2407. "summary": "修改用户信息",
  2408. "operationId": "app\\api\\controller\\User::editUser",
  2409. "parameters": [
  2410. {
  2411. "name": "token",
  2412. "in": "header",
  2413. "description": "token",
  2414. "schema": {
  2415. "type": "string"
  2416. }
  2417. }
  2418. ],
  2419. "requestBody": {
  2420. "content": {
  2421. "application/json": {
  2422. "schema": {
  2423. "required": [
  2424. "name",
  2425. "brithday",
  2426. "avatar"
  2427. ],
  2428. "properties": {
  2429. "name": {
  2430. "description": "用户姓名",
  2431. "type": "string",
  2432. "default": "小明"
  2433. },
  2434. "brithday": {
  2435. "description": "生日",
  2436. "type": "string",
  2437. "default": "1889-02-03"
  2438. },
  2439. "avatar": {
  2440. "description": "头像",
  2441. "type": "string",
  2442. "default": "http://xxx.com"
  2443. }
  2444. },
  2445. "type": "object"
  2446. }
  2447. }
  2448. }
  2449. },
  2450. "responses": {
  2451. "200": {
  2452. "description": "请求成功"
  2453. }
  2454. }
  2455. }
  2456. },
  2457. "/api/User/read": {
  2458. "post": {
  2459. "tags": [
  2460. "用户管理"
  2461. ],
  2462. "summary": "读取单个用户信息",
  2463. "operationId": "app\\api\\controller\\User::read",
  2464. "parameters": [
  2465. {
  2466. "name": "token",
  2467. "in": "header",
  2468. "description": "token",
  2469. "schema": {
  2470. "type": "string"
  2471. }
  2472. }
  2473. ],
  2474. "requestBody": {
  2475. "content": {
  2476. "multipart/form-data": {
  2477. "schema": {
  2478. "required": [
  2479. "id"
  2480. ],
  2481. "properties": {
  2482. "id": {
  2483. "description": "用户id",
  2484. "type": "int"
  2485. }
  2486. },
  2487. "type": "object"
  2488. }
  2489. }
  2490. }
  2491. },
  2492. "responses": {
  2493. "200": {
  2494. "description": "请求成功"
  2495. }
  2496. }
  2497. }
  2498. }
  2499. }
  2500. }