docs.go 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704
  1. // Package docs GENERATED BY THE COMMAND ABOVE; 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/create": {
  61. "post": {
  62. "description": "企业创建商品,添加到商品库",
  63. "consumes": [
  64. "application/json"
  65. ],
  66. "produces": [
  67. "application/json"
  68. ],
  69. "summary": "CreateProduct 创建商品",
  70. "parameters": [
  71. {
  72. "type": "string",
  73. "description": "登录TOKEN信息",
  74. "name": "Authorization",
  75. "in": "header",
  76. "required": true
  77. },
  78. {
  79. "description": "创建商品请求结构体",
  80. "name": "req",
  81. "in": "body",
  82. "required": true,
  83. "schema": {
  84. "$ref": "#/definitions/http_model.CreateProductRequest"
  85. }
  86. }
  87. ],
  88. "responses": {
  89. "200": {
  90. "description": "创建商品相应结构体",
  91. "schema": {
  92. "allOf": [
  93. {
  94. "$ref": "#/definitions/http_model.CommonResponse"
  95. },
  96. {
  97. "type": "object",
  98. "properties": {
  99. "data": {
  100. "$ref": "#/definitions/http_model.CreateProductData"
  101. }
  102. }
  103. }
  104. ]
  105. }
  106. }
  107. }
  108. }
  109. },
  110. "/product/find": {
  111. "post": {
  112. "description": "根据产品名称查询产品信息",
  113. "consumes": [
  114. "application/json"
  115. ],
  116. "produces": [
  117. "application/json"
  118. ],
  119. "summary": "findProduct 根据产品名称查询产品信息",
  120. "parameters": [
  121. {
  122. "type": "string",
  123. "description": "登录TOKEN信息",
  124. "name": "Authorization",
  125. "in": "header",
  126. "required": true
  127. },
  128. {
  129. "description": "发送产品id请求参数结构体",
  130. "name": "req",
  131. "in": "body",
  132. "required": true,
  133. "schema": {
  134. "$ref": "#/definitions/http_model.FindProductRequest"
  135. }
  136. }
  137. ],
  138. "responses": {
  139. "200": {
  140. "description": "查询对应产品返回相应结构体",
  141. "schema": {
  142. "allOf": [
  143. {
  144. "$ref": "#/definitions/http_model.CommonResponse"
  145. },
  146. {
  147. "type": "object",
  148. "properties": {
  149. "data": {
  150. "$ref": "#/definitions/http_model.FindProductData"
  151. }
  152. }
  153. }
  154. ]
  155. }
  156. }
  157. }
  158. }
  159. },
  160. "/product/list": {
  161. "post": {
  162. "description": "展示企业的商品列表",
  163. "consumes": [
  164. "application/json"
  165. ],
  166. "produces": [
  167. "application/json"
  168. ],
  169. "summary": "ProjectList 商品列表",
  170. "parameters": [
  171. {
  172. "type": "string",
  173. "description": "登录TOKEN信息",
  174. "name": "Authorization",
  175. "in": "header",
  176. "required": true
  177. },
  178. {
  179. "description": "创建全部商品请求结构体",
  180. "name": "req",
  181. "in": "body",
  182. "required": true,
  183. "schema": {
  184. "$ref": "#/definitions/http_model.FullProjectListRequest"
  185. }
  186. }
  187. ],
  188. "responses": {
  189. "200": {
  190. "description": "创建全部商品列表相应结构体",
  191. "schema": {
  192. "allOf": [
  193. {
  194. "$ref": "#/definitions/http_model.CommonResponse"
  195. },
  196. {
  197. "type": "object",
  198. "properties": {
  199. "data": {
  200. "$ref": "#/definitions/http_model.FullProjectListData"
  201. }
  202. }
  203. }
  204. ]
  205. }
  206. }
  207. }
  208. }
  209. },
  210. "/project/show": {
  211. "post": {
  212. "description": "企业查看执行中项目",
  213. "consumes": [
  214. "application/json"
  215. ],
  216. "produces": [
  217. "application/json"
  218. ],
  219. "summary": "CreateProduct 创建商品",
  220. "parameters": [
  221. {
  222. "type": "string",
  223. "description": "登录TOKEN信息",
  224. "name": "Authorization",
  225. "in": "header",
  226. "required": true
  227. },
  228. {
  229. "description": "查看项目请求结构体",
  230. "name": "req",
  231. "in": "body",
  232. "required": true,
  233. "schema": {
  234. "$ref": "#/definitions/http_model.ShowProjectRequest"
  235. }
  236. }
  237. ],
  238. "responses": {
  239. "200": {
  240. "description": "查看项目相应结构体",
  241. "schema": {
  242. "allOf": [
  243. {
  244. "$ref": "#/definitions/http_model.CommonResponse"
  245. },
  246. {
  247. "type": "object",
  248. "properties": {
  249. "data": {
  250. "$ref": "#/definitions/http_model.ShowProjectData"
  251. }
  252. }
  253. }
  254. ]
  255. }
  256. }
  257. }
  258. }
  259. },
  260. "/sendCode": {
  261. "post": {
  262. "description": "发送验证码,每次发送到邮箱",
  263. "consumes": [
  264. "application/json"
  265. ],
  266. "produces": [
  267. "application/json"
  268. ],
  269. "summary": "sendCode 发送验证码",
  270. "parameters": [
  271. {
  272. "description": "发送验证码请求参数结构体",
  273. "name": "req",
  274. "in": "body",
  275. "required": true,
  276. "schema": {
  277. "$ref": "#/definitions/http_model.SendCodeRequest"
  278. }
  279. }
  280. ],
  281. "responses": {
  282. "200": {
  283. "description": "发送验证码请求相应结构体",
  284. "schema": {
  285. "allOf": [
  286. {
  287. "$ref": "#/definitions/http_model.CommonResponse"
  288. },
  289. {
  290. "type": "object",
  291. "properties": {
  292. "data": {
  293. "$ref": "#/definitions/http_model.SendCodeData"
  294. }
  295. }
  296. }
  297. ]
  298. }
  299. }
  300. }
  301. }
  302. }
  303. },
  304. "definitions": {
  305. "http_model.CodeLoginData": {
  306. "type": "object",
  307. "properties": {
  308. "token": {
  309. "type": "string"
  310. }
  311. }
  312. },
  313. "http_model.CodeLoginRequest": {
  314. "type": "object",
  315. "properties": {
  316. "code": {
  317. "type": "string"
  318. },
  319. "phone": {
  320. "type": "string"
  321. }
  322. }
  323. },
  324. "http_model.CommonResponse": {
  325. "type": "object",
  326. "properties": {
  327. "data": {},
  328. "message": {
  329. "type": "string"
  330. },
  331. "status": {
  332. "type": "integer"
  333. }
  334. }
  335. },
  336. "http_model.CreateProductData": {
  337. "type": "object",
  338. "properties": {
  339. "product_id": {
  340. "description": "商品id",
  341. "type": "integer"
  342. }
  343. }
  344. },
  345. "http_model.CreateProductPhoto": {
  346. "type": "object",
  347. "properties": {
  348. "photo_uid": {
  349. "type": "string"
  350. },
  351. "photo_url": {
  352. "description": "图片或视频url",
  353. "type": "string"
  354. },
  355. "symbol": {
  356. "description": "图片为主图或详情图标志位,1为主图,2为详情图,3为视频",
  357. "type": "integer"
  358. }
  359. }
  360. },
  361. "http_model.CreateProductRequest": {
  362. "type": "object",
  363. "properties": {
  364. "brand_name": {
  365. "type": "string"
  366. },
  367. "product_detail": {
  368. "type": "string"
  369. },
  370. "product_id": {
  371. "type": "integer"
  372. },
  373. "product_name": {
  374. "description": "商品名称",
  375. "type": "string"
  376. },
  377. "product_photos": {
  378. "description": "商品图片列表",
  379. "type": "array",
  380. "items": {
  381. "$ref": "#/definitions/http_model.CreateProductPhoto"
  382. }
  383. },
  384. "product_price": {
  385. "description": "商品价值",
  386. "type": "integer"
  387. },
  388. "product_type": {
  389. "description": "商品类型",
  390. "type": "integer"
  391. },
  392. "product_url": {
  393. "description": "商品链接,可为电商网址、公司官网、大众点评的店铺地址等可以说明商品信息或者品牌信息的线上地址;",
  394. "type": "string"
  395. },
  396. "shop_address": {
  397. "description": "店铺地址,商品类型为线下品牌时需填写",
  398. "type": "string"
  399. }
  400. }
  401. },
  402. "http_model.FindProductData": {
  403. "type": "object",
  404. "properties": {
  405. "brand_name": {
  406. "description": "品牌名称",
  407. "type": "string"
  408. },
  409. "enterprise_id": {
  410. "description": "所属企业id",
  411. "type": "integer"
  412. },
  413. "product_detail": {
  414. "type": "string"
  415. },
  416. "product_id": {
  417. "type": "integer"
  418. },
  419. "product_name": {
  420. "description": "商品名称",
  421. "type": "string"
  422. },
  423. "product_photos": {
  424. "description": "商品图片列表",
  425. "type": "array",
  426. "items": {
  427. "$ref": "#/definitions/http_model.ProductPhoto"
  428. }
  429. },
  430. "product_price": {
  431. "description": "商品价值",
  432. "type": "integer"
  433. },
  434. "product_type": {
  435. "description": "商品类型",
  436. "type": "integer"
  437. },
  438. "product_url": {
  439. "description": "商品链接,可为电商网址、公司官网、大众点评的店铺地址等可以说明商品信息或者品牌信息的线上地址;",
  440. "type": "string"
  441. },
  442. "shop_address": {
  443. "description": "店铺地址,商品类型为线下品牌时需填写",
  444. "type": "string"
  445. }
  446. }
  447. },
  448. "http_model.FindProductRequest": {
  449. "type": "object",
  450. "properties": {
  451. "product_id": {
  452. "type": "integer"
  453. }
  454. }
  455. },
  456. "http_model.FullProjectListData": {
  457. "type": "object",
  458. "properties": {
  459. "full_project_pre_view": {
  460. "type": "array",
  461. "items": {
  462. "$ref": "#/definitions/http_model.FullProjectPreview"
  463. }
  464. },
  465. "total": {
  466. "type": "string"
  467. }
  468. }
  469. },
  470. "http_model.FullProjectListRequest": {
  471. "type": "object",
  472. "properties": {
  473. "page_num": {
  474. "type": "integer"
  475. },
  476. "page_size": {
  477. "type": "integer"
  478. },
  479. "project_content_type": {
  480. "description": "内容形式",
  481. "type": "string"
  482. },
  483. "project_fee_forms": {
  484. "description": "稿费形式",
  485. "type": "string"
  486. },
  487. "project_form": {
  488. "description": "项目形式",
  489. "type": "string"
  490. },
  491. "project_platform": {
  492. "description": "项目平台",
  493. "type": "string"
  494. },
  495. "project_status": {
  496. "description": "项目状态",
  497. "type": "string"
  498. },
  499. "project_updated": {
  500. "description": "最后操作时间",
  501. "type": "string"
  502. }
  503. }
  504. },
  505. "http_model.FullProjectPreview": {
  506. "type": "object",
  507. "properties": {
  508. "project_content_type": {
  509. "description": "内容形式",
  510. "type": "string"
  511. },
  512. "project_fee_forms": {
  513. "description": "稿费形式",
  514. "type": "array",
  515. "items": {
  516. "type": "string"
  517. }
  518. },
  519. "project_form": {
  520. "description": "项目形式",
  521. "type": "string"
  522. },
  523. "project_id": {
  524. "description": "项目ID",
  525. "type": "string"
  526. },
  527. "project_name": {
  528. "description": "项目名",
  529. "type": "string"
  530. },
  531. "project_platform": {
  532. "description": "项目平台",
  533. "type": "string"
  534. },
  535. "project_status": {
  536. "description": "项目状态",
  537. "type": "string"
  538. },
  539. "project_updated": {
  540. "description": "最后操作时间",
  541. "type": "string"
  542. }
  543. }
  544. },
  545. "http_model.ProductPhoto": {
  546. "type": "object",
  547. "properties": {
  548. "photo_uid": {
  549. "type": "string"
  550. },
  551. "photo_url": {
  552. "description": "图片或视频url",
  553. "type": "string"
  554. },
  555. "symbol": {
  556. "description": "图片为主图或详情图标志位,1为主图,2为详情图,3为视频",
  557. "type": "integer"
  558. }
  559. }
  560. },
  561. "http_model.SendCodeData": {
  562. "type": "object"
  563. },
  564. "http_model.SendCodeRequest": {
  565. "type": "object",
  566. "properties": {
  567. "phone": {
  568. "type": "string"
  569. }
  570. }
  571. },
  572. "http_model.ShowProjectData": {
  573. "type": "object",
  574. "properties": {
  575. "Project_id": {
  576. "description": "项目id",
  577. "type": "string"
  578. },
  579. "content_type": {
  580. "description": "内容形式,1代表图文,2代表视频",
  581. "type": "string"
  582. },
  583. "product_id": {
  584. "description": "关联商品id",
  585. "type": "string"
  586. },
  587. "project_detail": {
  588. "description": "项目详情",
  589. "type": "string"
  590. },
  591. "project_form": {
  592. "description": "项目形式,1-4分别代表实体商品寄拍、虚拟产品测评、线下探店打卡、素材微原创",
  593. "type": "string"
  594. },
  595. "project_name": {
  596. "description": "项目名称",
  597. "type": "string"
  598. },
  599. "project_photos": {
  600. "description": "项目图片",
  601. "type": "array",
  602. "items": {
  603. "$ref": "#/definitions/http_model.ShowProjectPhoto"
  604. }
  605. },
  606. "project_platform": {
  607. "description": "项目平台,1-7分别代表小红书、抖音、微博、快手、b站、大众点评、知乎",
  608. "type": "string"
  609. },
  610. "project_status": {
  611. "description": "项目状态,1-7分别代表创建中、待审核、招募中、待支付、失效、执行中、已结案",
  612. "type": "string"
  613. },
  614. "project_type": {
  615. "description": "项目类型,1代表全流程项目,2代表专项项目",
  616. "type": "string"
  617. },
  618. "recruit_ddl": {
  619. "description": "招募截止时间",
  620. "type": "string"
  621. },
  622. "recruit_strategys": {
  623. "description": "定价策略",
  624. "type": "array",
  625. "items": {
  626. "$ref": "#/definitions/http_model.ShowRecruitStrategy"
  627. }
  628. },
  629. "talent_type": {
  630. "description": "达人类型",
  631. "type": "string"
  632. }
  633. }
  634. },
  635. "http_model.ShowProjectPhoto": {
  636. "type": "object",
  637. "properties": {
  638. "photo_uid": {
  639. "type": "string"
  640. },
  641. "photo_url": {
  642. "description": "图片url",
  643. "type": "string"
  644. }
  645. }
  646. },
  647. "http_model.ShowProjectRequest": {
  648. "type": "object",
  649. "properties": {
  650. "Project_id": {
  651. "description": "项目id",
  652. "type": "integer"
  653. }
  654. }
  655. },
  656. "http_model.ShowRecruitStrategy": {
  657. "type": "object",
  658. "properties": {
  659. "fee_form": {
  660. "description": "稿费形式,1-3分别代表自报价、固定稿费、产品置换",
  661. "type": "string"
  662. },
  663. "followers_low": {
  664. "description": "达人粉丝数下限",
  665. "type": "string"
  666. },
  667. "followers_up": {
  668. "description": "达人粉丝数上限",
  669. "type": "string"
  670. },
  671. "offer": {
  672. "description": "报价",
  673. "type": "string"
  674. },
  675. "recruit_number": {
  676. "description": "招募数量",
  677. "type": "string"
  678. },
  679. "strategy_id": {
  680. "description": "策略id",
  681. "type": "string"
  682. }
  683. }
  684. }
  685. }
  686. }`
  687. // SwaggerInfo holds exported Swagger Info so clients can modify it
  688. var SwaggerInfo = &swag.Spec{
  689. Version: "",
  690. Host: "",
  691. BasePath: "",
  692. Schemes: []string{},
  693. Title: "",
  694. Description: "",
  695. InfoInstanceName: "swagger",
  696. SwaggerTemplate: docTemplate,
  697. }
  698. func init() {
  699. swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
  700. }