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.FullProjectListData: properties: full_project_pre_view: items: $ref: '#/definitions/http_model.FullProjectPreview' type: array total: type: string type: object http_model.FullProjectListRequest: properties: page_num: type: integer page_size: type: integer project_content_type: description: 内容形式 type: string project_fee_forms: description: 稿费形式 type: string project_form: description: 项目形式 type: string project_platform: description: 项目平台 type: string project_status: description: 项目状态 type: string project_updated: description: 最后操作时间 type: string type: object http_model.FullProjectPreview: properties: project_content_type: description: 内容形式 type: string project_fee_forms: description: 稿费形式 items: type: string type: array project_form: description: 项目形式 type: string project_id: description: 项目ID type: string project_name: description: 项目名 type: string project_platform: description: 项目平台 type: string project_status: description: 项目状态 type: string project_updated: 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 创建商品 /product/list: get: 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.FullProjectListRequest' produces: - application/json responses: "200": description: 创建全部商品列表相应结构体 schema: allOf: - $ref: '#/definitions/http_model.CommonResponse' - properties: data: $ref: '#/definitions/http_model.FullProjectListData' type: object summary: ProjectList 商品列表 /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"