docs.go 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890
  1. // Package docs GENERATED BY SWAG; DO NOT EDIT
  2. // This file was generated by swaggo/swag
  3. package docs
  4. import "github.com/swaggo/swag"
  5. const docTemplate = `{
  6. "schemes": {{ marshal .Schemes }},
  7. "swagger": "2.0",
  8. "info": {
  9. "description": "{{escape .Description}}",
  10. "title": "{{.Title}}",
  11. "contact": {},
  12. "version": "{{.Version}}"
  13. },
  14. "host": "{{.Host}}",
  15. "basePath": "{{.BasePath}}",
  16. "paths": {
  17. "/login": {
  18. "post": {
  19. "description": "输入手机号和验证码,并登录",
  20. "consumes": [
  21. "application/json"
  22. ],
  23. "produces": [
  24. "application/json"
  25. ],
  26. "summary": "login 登录",
  27. "parameters": [
  28. {
  29. "description": "登录输入内容请求参数结构体",
  30. "name": "req",
  31. "in": "body",
  32. "required": true,
  33. "schema": {
  34. "$ref": "#/definitions/http_model.CodeLoginRequest"
  35. }
  36. }
  37. ],
  38. "responses": {
  39. "200": {
  40. "description": "登录返回相应结构体",
  41. "schema": {
  42. "allOf": [
  43. {
  44. "$ref": "#/definitions/http_model.CommonResponse"
  45. },
  46. {
  47. "type": "object",
  48. "properties": {
  49. "data": {
  50. "$ref": "#/definitions/http_model.CodeLoginData"
  51. }
  52. }
  53. }
  54. ]
  55. }
  56. }
  57. }
  58. }
  59. },
  60. "/product/changeTaskStatus": {
  61. "post": {
  62. "description": "更改项目任务的状态",
  63. "consumes": [
  64. "application/json"
  65. ],
  66. "produces": [
  67. "application/json"
  68. ],
  69. "summary": "ProjectChangeTaskStatus 更改项目任务状态",
  70. "parameters": [
  71. {
  72. "description": "更改项目任务状态的请求结构体",
  73. "name": "req",
  74. "in": "body",
  75. "required": true,
  76. "schema": {
  77. "$ref": "#/definitions/http_model.ProjectChangeTaskStatusRequest"
  78. }
  79. }
  80. ],
  81. "responses": {
  82. "200": {
  83. "description": "更改项目任务状态相应结构体",
  84. "schema": {
  85. "$ref": "#/definitions/http_model.CommonResponse"
  86. }
  87. }
  88. }
  89. }
  90. },
  91. "/product/create": {
  92. "post": {
  93. "description": "企业创建商品,添加到商品库",
  94. "consumes": [
  95. "application/json"
  96. ],
  97. "produces": [
  98. "application/json"
  99. ],
  100. "summary": "CreateProduct 创建商品",
  101. "parameters": [
  102. {
  103. "type": "string",
  104. "description": "登录TOKEN信息",
  105. "name": "Authorization",
  106. "in": "header",
  107. "required": true
  108. },
  109. {
  110. "description": "创建商品请求结构体",
  111. "name": "req",
  112. "in": "body",
  113. "required": true,
  114. "schema": {
  115. "$ref": "#/definitions/http_model.CreateProductRequest"
  116. }
  117. }
  118. ],
  119. "responses": {
  120. "200": {
  121. "description": "创建商品相应结构体",
  122. "schema": {
  123. "allOf": [
  124. {
  125. "$ref": "#/definitions/http_model.CommonResponse"
  126. },
  127. {
  128. "type": "object",
  129. "properties": {
  130. "data": {
  131. "$ref": "#/definitions/http_model.CreateProductData"
  132. }
  133. }
  134. }
  135. ]
  136. }
  137. }
  138. }
  139. }
  140. },
  141. "/product/find": {
  142. "post": {
  143. "description": "根据产品名称查询产品信息",
  144. "consumes": [
  145. "application/json"
  146. ],
  147. "produces": [
  148. "application/json"
  149. ],
  150. "summary": "findProduct 根据产品名称查询产品信息",
  151. "parameters": [
  152. {
  153. "type": "string",
  154. "description": "登录TOKEN信息",
  155. "name": "Authorization",
  156. "in": "header",
  157. "required": true
  158. },
  159. {
  160. "description": "发送产品id请求参数结构体",
  161. "name": "req",
  162. "in": "body",
  163. "required": true,
  164. "schema": {
  165. "$ref": "#/definitions/http_model.FindProductRequest"
  166. }
  167. }
  168. ],
  169. "responses": {
  170. "200": {
  171. "description": "查询对应产品返回相应结构体",
  172. "schema": {
  173. "allOf": [
  174. {
  175. "$ref": "#/definitions/http_model.CommonResponse"
  176. },
  177. {
  178. "type": "object",
  179. "properties": {
  180. "data": {
  181. "$ref": "#/definitions/http_model.FindProductData"
  182. }
  183. }
  184. }
  185. ]
  186. }
  187. }
  188. }
  189. }
  190. },
  191. "/product/list": {
  192. "post": {
  193. "description": "展示企业的商品列表",
  194. "consumes": [
  195. "application/json"
  196. ],
  197. "produces": [
  198. "application/json"
  199. ],
  200. "summary": "ProjectList 商品列表",
  201. "parameters": [
  202. {
  203. "type": "string",
  204. "description": "登录TOKEN信息",
  205. "name": "Authorization",
  206. "in": "header",
  207. "required": true
  208. },
  209. {
  210. "description": "创建全部商品请求结构体",
  211. "name": "req",
  212. "in": "body",
  213. "required": true,
  214. "schema": {
  215. "$ref": "#/definitions/http_model.FullProjectListRequest"
  216. }
  217. }
  218. ],
  219. "responses": {
  220. "200": {
  221. "description": "创建全部商品列表相应结构体",
  222. "schema": {
  223. "allOf": [
  224. {
  225. "$ref": "#/definitions/http_model.CommonResponse"
  226. },
  227. {
  228. "type": "object",
  229. "properties": {
  230. "data": {
  231. "$ref": "#/definitions/http_model.FullProjectListData"
  232. }
  233. }
  234. }
  235. ]
  236. }
  237. }
  238. }
  239. }
  240. },
  241. "/product/taskList": {
  242. "post": {
  243. "description": "展示某个项目的任务列表",
  244. "consumes": [
  245. "application/json"
  246. ],
  247. "produces": [
  248. "application/json"
  249. ],
  250. "summary": "ProjectTaskList 项目任务列表",
  251. "parameters": [
  252. {
  253. "description": "查询项目的任务列表的请求结构体",
  254. "name": "req",
  255. "in": "body",
  256. "required": true,
  257. "schema": {
  258. "$ref": "#/definitions/http_model.ProjectTaskListRequest"
  259. }
  260. }
  261. ],
  262. "responses": {
  263. "200": {
  264. "description": "查询项目的任务列表相应结构体",
  265. "schema": {
  266. "allOf": [
  267. {
  268. "$ref": "#/definitions/http_model.CommonResponse"
  269. },
  270. {
  271. "type": "object",
  272. "properties": {
  273. "data": {
  274. "$ref": "#/definitions/http_model.ProjectTaskListData"
  275. }
  276. }
  277. }
  278. ]
  279. }
  280. }
  281. }
  282. }
  283. },
  284. "/project/show": {
  285. "post": {
  286. "description": "企业查看执行中项目",
  287. "consumes": [
  288. "application/json"
  289. ],
  290. "produces": [
  291. "application/json"
  292. ],
  293. "summary": "CreateProduct 创建商品",
  294. "parameters": [
  295. {
  296. "type": "string",
  297. "description": "登录TOKEN信息",
  298. "name": "Authorization",
  299. "in": "header",
  300. "required": true
  301. },
  302. {
  303. "description": "查看项目请求结构体",
  304. "name": "req",
  305. "in": "body",
  306. "required": true,
  307. "schema": {
  308. "$ref": "#/definitions/http_model.ShowProjectRequest"
  309. }
  310. }
  311. ],
  312. "responses": {
  313. "200": {
  314. "description": "查看项目相应结构体",
  315. "schema": {
  316. "allOf": [
  317. {
  318. "$ref": "#/definitions/http_model.CommonResponse"
  319. },
  320. {
  321. "type": "object",
  322. "properties": {
  323. "data": {
  324. "$ref": "#/definitions/http_model.ShowProjectData"
  325. }
  326. }
  327. }
  328. ]
  329. }
  330. }
  331. }
  332. }
  333. },
  334. "/sendCode": {
  335. "post": {
  336. "description": "发送验证码,每次发送到邮箱",
  337. "consumes": [
  338. "application/json"
  339. ],
  340. "produces": [
  341. "application/json"
  342. ],
  343. "summary": "sendCode 发送验证码",
  344. "parameters": [
  345. {
  346. "description": "发送验证码请求参数结构体",
  347. "name": "req",
  348. "in": "body",
  349. "required": true,
  350. "schema": {
  351. "$ref": "#/definitions/http_model.SendCodeRequest"
  352. }
  353. }
  354. ],
  355. "responses": {
  356. "200": {
  357. "description": "发送验证码请求相应结构体",
  358. "schema": {
  359. "allOf": [
  360. {
  361. "$ref": "#/definitions/http_model.CommonResponse"
  362. },
  363. {
  364. "type": "object",
  365. "properties": {
  366. "data": {
  367. "$ref": "#/definitions/http_model.SendCodeData"
  368. }
  369. }
  370. }
  371. ]
  372. }
  373. }
  374. }
  375. }
  376. }
  377. },
  378. "definitions": {
  379. "http_model.CodeLoginData": {
  380. "type": "object",
  381. "properties": {
  382. "token": {
  383. "type": "string"
  384. }
  385. }
  386. },
  387. "http_model.CodeLoginRequest": {
  388. "type": "object",
  389. "properties": {
  390. "code": {
  391. "type": "string"
  392. },
  393. "phone": {
  394. "type": "string"
  395. }
  396. }
  397. },
  398. "http_model.CommonResponse": {
  399. "type": "object",
  400. "properties": {
  401. "data": {},
  402. "message": {
  403. "type": "string"
  404. },
  405. "status": {
  406. "type": "integer"
  407. }
  408. }
  409. },
  410. "http_model.CreateProductData": {
  411. "type": "object",
  412. "properties": {
  413. "product_id": {
  414. "description": "商品id",
  415. "type": "integer"
  416. }
  417. }
  418. },
  419. "http_model.CreateProductPhoto": {
  420. "type": "object",
  421. "properties": {
  422. "photo_uid": {
  423. "type": "string"
  424. },
  425. "photo_url": {
  426. "description": "图片或视频url",
  427. "type": "string"
  428. },
  429. "symbol": {
  430. "description": "图片为主图或详情图标志位,1为主图,2为详情图,3为视频",
  431. "type": "integer"
  432. }
  433. }
  434. },
  435. "http_model.CreateProductRequest": {
  436. "type": "object",
  437. "properties": {
  438. "brand_name": {
  439. "type": "string"
  440. },
  441. "product_detail": {
  442. "type": "string"
  443. },
  444. "product_id": {
  445. "type": "integer"
  446. },
  447. "product_name": {
  448. "description": "商品名称",
  449. "type": "string"
  450. },
  451. "product_photos": {
  452. "description": "商品图片列表",
  453. "type": "array",
  454. "items": {
  455. "$ref": "#/definitions/http_model.CreateProductPhoto"
  456. }
  457. },
  458. "product_price": {
  459. "description": "商品价值",
  460. "type": "integer"
  461. },
  462. "product_type": {
  463. "description": "商品类型",
  464. "type": "integer"
  465. },
  466. "product_url": {
  467. "description": "商品链接,可为电商网址、公司官网、大众点评的店铺地址等可以说明商品信息或者品牌信息的线上地址;",
  468. "type": "string"
  469. },
  470. "shop_address": {
  471. "description": "店铺地址,商品类型为线下品牌时需填写",
  472. "type": "string"
  473. }
  474. }
  475. },
  476. "http_model.FindProductData": {
  477. "type": "object",
  478. "properties": {
  479. "brand_name": {
  480. "description": "品牌名称",
  481. "type": "string"
  482. },
  483. "enterprise_id": {
  484. "description": "所属企业id",
  485. "type": "integer"
  486. },
  487. "product_detail": {
  488. "type": "string"
  489. },
  490. "product_id": {
  491. "type": "integer"
  492. },
  493. "product_name": {
  494. "description": "商品名称",
  495. "type": "string"
  496. },
  497. "product_photos": {
  498. "description": "商品图片列表",
  499. "type": "array",
  500. "items": {
  501. "$ref": "#/definitions/http_model.ProductPhoto"
  502. }
  503. },
  504. "product_price": {
  505. "description": "商品价值",
  506. "type": "integer"
  507. },
  508. "product_type": {
  509. "description": "商品类型",
  510. "type": "integer"
  511. },
  512. "product_url": {
  513. "description": "商品链接,可为电商网址、公司官网、大众点评的店铺地址等可以说明商品信息或者品牌信息的线上地址;",
  514. "type": "string"
  515. },
  516. "shop_address": {
  517. "description": "店铺地址,商品类型为线下品牌时需填写",
  518. "type": "string"
  519. }
  520. }
  521. },
  522. "http_model.FindProductRequest": {
  523. "type": "object",
  524. "properties": {
  525. "product_id": {
  526. "type": "integer"
  527. }
  528. }
  529. },
  530. "http_model.FullProjectListData": {
  531. "type": "object",
  532. "properties": {
  533. "full_project_pre_view": {
  534. "type": "array",
  535. "items": {
  536. "$ref": "#/definitions/http_model.FullProjectPreview"
  537. }
  538. },
  539. "total": {
  540. "type": "string"
  541. }
  542. }
  543. },
  544. "http_model.FullProjectListRequest": {
  545. "type": "object",
  546. "properties": {
  547. "page_num": {
  548. "type": "integer"
  549. },
  550. "page_size": {
  551. "type": "integer"
  552. },
  553. "project_content_type": {
  554. "description": "内容形式",
  555. "type": "string"
  556. },
  557. "project_form": {
  558. "description": "项目形式",
  559. "type": "string"
  560. },
  561. "project_id": {
  562. "description": "项目ID",
  563. "type": "string"
  564. },
  565. "project_name": {
  566. "description": "项目名",
  567. "type": "string"
  568. },
  569. "project_platform": {
  570. "description": "项目平台",
  571. "type": "string"
  572. },
  573. "project_status": {
  574. "description": "项目状态",
  575. "type": "string"
  576. },
  577. "project_updated": {
  578. "description": "最后操作时间",
  579. "type": "string"
  580. }
  581. }
  582. },
  583. "http_model.FullProjectPreview": {
  584. "type": "object",
  585. "properties": {
  586. "project_content_type": {
  587. "description": "ProjectFeeForms []string ` + "`" + `json:\"project_fee_forms\"` + "`" + ` // 稿费形式",
  588. "type": "string"
  589. },
  590. "project_form": {
  591. "description": "项目形式",
  592. "type": "string"
  593. },
  594. "project_id": {
  595. "description": "项目ID",
  596. "type": "string"
  597. },
  598. "project_name": {
  599. "description": "项目名",
  600. "type": "string"
  601. },
  602. "project_platform": {
  603. "description": "项目平台",
  604. "type": "string"
  605. },
  606. "project_status": {
  607. "description": "项目状态",
  608. "type": "string"
  609. },
  610. "project_updated": {
  611. "description": "最后操作时间",
  612. "type": "string"
  613. }
  614. }
  615. },
  616. "http_model.ProductPhoto": {
  617. "type": "object",
  618. "properties": {
  619. "photo_uid": {
  620. "type": "string"
  621. },
  622. "photo_url": {
  623. "description": "图片或视频url",
  624. "type": "string"
  625. },
  626. "symbol": {
  627. "description": "图片为主图或详情图标志位,1为主图,2为详情图,3为视频",
  628. "type": "integer"
  629. }
  630. }
  631. },
  632. "http_model.ProjectChangeTaskStatusRequest": {
  633. "type": "object",
  634. "properties": {
  635. "taskIds": {
  636. "type": "array",
  637. "items": {
  638. "type": "string"
  639. }
  640. },
  641. "task_status": {
  642. "type": "string"
  643. }
  644. }
  645. },
  646. "http_model.ProjectTaskListData": {
  647. "type": "object",
  648. "properties": {
  649. "project_task_pre_view": {
  650. "type": "array",
  651. "items": {
  652. "$ref": "#/definitions/http_model.ProjectTaskPreview"
  653. }
  654. },
  655. "total": {
  656. "type": "string"
  657. }
  658. }
  659. },
  660. "http_model.ProjectTaskListRequest": {
  661. "type": "object",
  662. "properties": {
  663. "page_num": {
  664. "type": "integer"
  665. },
  666. "page_size": {
  667. "type": "integer"
  668. },
  669. "platform_nickname": {
  670. "description": "账号昵称",
  671. "type": "string"
  672. },
  673. "project_id": {
  674. "description": "项目ID",
  675. "type": "string"
  676. },
  677. "strategy_id": {
  678. "description": "策略ID",
  679. "type": "string"
  680. },
  681. "task_id": {
  682. "description": "任务ID",
  683. "type": "string"
  684. },
  685. "task_status": {
  686. "description": "任务状态",
  687. "type": "string"
  688. }
  689. }
  690. },
  691. "http_model.ProjectTaskPreview": {
  692. "type": "object",
  693. "properties": {
  694. "create_date": {
  695. "description": "创建时间",
  696. "type": "string"
  697. },
  698. "fans_count": {
  699. "description": "粉丝数",
  700. "type": "string"
  701. },
  702. "home_page_capture_url": {
  703. "description": "主页链接",
  704. "type": "string"
  705. },
  706. "platform_nickname": {
  707. "description": "账号昵称",
  708. "type": "string"
  709. },
  710. "strategy_id": {
  711. "description": "报名选择的招募策略id",
  712. "type": "string"
  713. },
  714. "talent_personal_info_snap": {
  715. "description": "达人个人信息快照",
  716. "type": "string"
  717. },
  718. "task_id": {
  719. "description": "任务ID",
  720. "type": "string"
  721. },
  722. "task_reward": {
  723. "description": "任务奖励金额",
  724. "type": "string"
  725. },
  726. "task_status": {
  727. "description": "任务状态",
  728. "type": "string"
  729. }
  730. }
  731. },
  732. "http_model.SendCodeData": {
  733. "type": "object"
  734. },
  735. "http_model.SendCodeRequest": {
  736. "type": "object",
  737. "properties": {
  738. "email": {
  739. "type": "string"
  740. },
  741. "phone": {
  742. "type": "string"
  743. }
  744. }
  745. },
  746. "http_model.ShowProjectData": {
  747. "type": "object",
  748. "properties": {
  749. "content_type": {
  750. "description": "内容形式,1代表图文,2代表视频",
  751. "type": "string"
  752. },
  753. "create_at": {
  754. "description": "创建时间",
  755. "type": "string"
  756. },
  757. "enterprise_id": {
  758. "description": "企业id",
  759. "type": "string"
  760. },
  761. "phone": {
  762. "description": "联系方式",
  763. "type": "string"
  764. },
  765. "product_id": {
  766. "description": "关联商品id",
  767. "type": "string"
  768. },
  769. "project_detail": {
  770. "description": "项目详情",
  771. "type": "string"
  772. },
  773. "project_form": {
  774. "description": "项目形式,1-4分别代表实体商品寄拍、虚拟产品测评、线下探店打卡、素材微原创",
  775. "type": "string"
  776. },
  777. "project_id": {
  778. "description": "项目id",
  779. "type": "string"
  780. },
  781. "project_name": {
  782. "description": "项目名称",
  783. "type": "string"
  784. },
  785. "project_photos": {
  786. "description": "项目图片",
  787. "type": "array",
  788. "items": {
  789. "$ref": "#/definitions/http_model.ShowProjectPhoto"
  790. }
  791. },
  792. "project_platform": {
  793. "description": "项目平台,1-7分别代表小红书、抖音、微博、快手、b站、大众点评、知乎",
  794. "type": "string"
  795. },
  796. "project_status": {
  797. "description": "项目状态,1-7分别代表创建中、待审核、招募中、待支付、失效、执行中、已结案",
  798. "type": "string"
  799. },
  800. "project_type": {
  801. "description": "项目类型,1代表全流程项目,2代表专项项目",
  802. "type": "string"
  803. },
  804. "recruit_ddl": {
  805. "description": "招募截止时间",
  806. "type": "string"
  807. },
  808. "recruit_strategys": {
  809. "description": "定价策略",
  810. "type": "array",
  811. "items": {
  812. "$ref": "#/definitions/http_model.ShowRecruitStrategy"
  813. }
  814. },
  815. "talent_type": {
  816. "description": "达人类型",
  817. "type": "string"
  818. }
  819. }
  820. },
  821. "http_model.ShowProjectPhoto": {
  822. "type": "object",
  823. "properties": {
  824. "photo_uid": {
  825. "type": "string"
  826. },
  827. "photo_url": {
  828. "description": "图片url",
  829. "type": "string"
  830. }
  831. }
  832. },
  833. "http_model.ShowProjectRequest": {
  834. "type": "object",
  835. "properties": {
  836. "Project_id": {
  837. "description": "项目id",
  838. "type": "integer"
  839. }
  840. }
  841. },
  842. "http_model.ShowRecruitStrategy": {
  843. "type": "object",
  844. "properties": {
  845. "fee_form": {
  846. "description": "稿费形式,1-3分别代表自报价、固定稿费、产品置换",
  847. "type": "string"
  848. },
  849. "followers_low": {
  850. "description": "达人粉丝数下限",
  851. "type": "string"
  852. },
  853. "followers_up": {
  854. "description": "达人粉丝数上限",
  855. "type": "string"
  856. },
  857. "offer": {
  858. "description": "报价",
  859. "type": "string"
  860. },
  861. "recruit_number": {
  862. "description": "招募数量",
  863. "type": "string"
  864. },
  865. "strategy_id": {
  866. "description": "策略id",
  867. "type": "string"
  868. }
  869. }
  870. }
  871. }
  872. }`
  873. // SwaggerInfo holds exported Swagger Info so clients can modify it
  874. var SwaggerInfo = &swag.Spec{
  875. Version: "",
  876. Host: "",
  877. BasePath: "",
  878. Schemes: []string{},
  879. Title: "",
  880. Description: "",
  881. InfoInstanceName: "swagger",
  882. SwaggerTemplate: docTemplate,
  883. }
  884. func init() {
  885. swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
  886. }