123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- definitions:
- http_model.CommonResponse:
- properties:
- data: {}
- message:
- type: string
- status:
- type: integer
- type: object
- http_model.CreateProductData:
- properties:
- product_id:
- description: 商品id
- type: integer
- type: object
- http_model.CreateProductPhoto:
- properties:
- photo_uid:
- type: string
- photo_url:
- description: 图片或视频url
- type: string
- symbol:
- description: 图片为主图或详情图标志位,1为主图,2为详情图,3为视频
- type: integer
- type: object
- http_model.CreateProductRequest:
- properties:
- brand_name:
- type: string
- product_detail:
- type: string
- product_id:
- type: integer
- product_name:
- description: 商品名称
- type: string
- product_photos:
- description: 商品图片列表
- items:
- $ref: '#/definitions/http_model.CreateProductPhoto'
- type: array
- product_price:
- description: 商品价值
- type: integer
- product_type:
- description: 商品类型
- type: integer
- product_url:
- description: 商品链接,可为电商网址、公司官网、大众点评的店铺地址等可以说明商品信息或者品牌信息的线上地址;
- type: string
- shop_address:
- description: 店铺地址,商品类型为线下品牌时需填写
- type: string
- type: object
- http_model.SendCodeData:
- type: object
- http_model.SendCodeRequest:
- properties:
- phone:
- type: string
- type: object
- info:
- contact: {}
- paths:
- /product/create:
- post:
- consumes:
- - application/json
- description: 企业创建商品,添加到商品库
- parameters:
- - description: 登录TOKEN信息
- in: header
- name: Authorization
- required: true
- type: string
- - description: 创建商品请求结构体
- in: body
- name: req
- required: true
- schema:
- $ref: '#/definitions/http_model.CreateProductRequest'
- produces:
- - application/json
- responses:
- "200":
- description: 创建商品相应结构体
- schema:
- allOf:
- - $ref: '#/definitions/http_model.CommonResponse'
- - properties:
- data:
- $ref: '#/definitions/http_model.CreateProductData'
- type: object
- summary: CreateProduct 创建商品
- /sendCode:
- post:
- consumes:
- - application/json
- description: 发送验证码,每次发送到邮箱
- parameters:
- - description: 发送验证码请求参数结构体
- in: body
- name: req
- required: true
- schema:
- $ref: '#/definitions/http_model.SendCodeRequest'
- produces:
- - application/json
- responses:
- "200":
- description: 发送验证码请求相应结构体
- schema:
- allOf:
- - $ref: '#/definitions/http_model.CommonResponse'
- - properties:
- data:
- $ref: '#/definitions/http_model.SendCodeData'
- type: object
- summary: sendCode 发送验证码
- swagger: "2.0"
|