123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220 |
- // Package docs GENERATED BY SWAG; DO NOT EDIT
- // This file was generated by swaggo/swag
- package docs
- import "github.com/swaggo/swag"
- const docTemplate = `{
- "schemes": {{ marshal .Schemes }},
- "swagger": "2.0",
- "info": {
- "description": "{{escape .Description}}",
- "title": "{{.Title}}",
- "contact": {},
- "version": "{{.Version}}"
- },
- "host": "{{.Host}}",
- "basePath": "{{.BasePath}}",
- "paths": {
- "/product/create": {
- "post": {
- "description": "企业创建商品,添加到商品库",
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "summary": "CreateProduct 创建商品",
- "parameters": [
- {
- "type": "string",
- "description": "登录TOKEN信息",
- "name": "Authorization",
- "in": "header",
- "required": true
- },
- {
- "description": "创建商品请求结构体",
- "name": "req",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/http_model.CreateProductRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "创建商品相应结构体",
- "schema": {
- "allOf": [
- {
- "$ref": "#/definitions/http_model.CommonResponse"
- },
- {
- "type": "object",
- "properties": {
- "data": {
- "$ref": "#/definitions/http_model.CreateProductData"
- }
- }
- }
- ]
- }
- }
- }
- }
- },
- "/sendCode": {
- "post": {
- "description": "发送验证码,每次发送到邮箱",
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "summary": "sendCode 发送验证码",
- "parameters": [
- {
- "description": "发送验证码请求参数结构体",
- "name": "req",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/http_model.SendCodeRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "发送验证码请求相应结构体",
- "schema": {
- "allOf": [
- {
- "$ref": "#/definitions/http_model.CommonResponse"
- },
- {
- "type": "object",
- "properties": {
- "data": {
- "$ref": "#/definitions/http_model.SendCodeData"
- }
- }
- }
- ]
- }
- }
- }
- }
- }
- },
- "definitions": {
- "http_model.CommonResponse": {
- "type": "object",
- "properties": {
- "data": {},
- "message": {
- "type": "string"
- },
- "status": {
- "type": "integer"
- }
- }
- },
- "http_model.CreateProductData": {
- "type": "object",
- "properties": {
- "product_id": {
- "description": "商品id",
- "type": "integer"
- }
- }
- },
- "http_model.CreateProductPhoto": {
- "type": "object",
- "properties": {
- "photo_uid": {
- "type": "string"
- },
- "photo_url": {
- "description": "图片或视频url",
- "type": "string"
- },
- "symbol": {
- "description": "图片为主图或详情图标志位,1为主图,2为详情图,3为视频",
- "type": "integer"
- }
- }
- },
- "http_model.CreateProductRequest": {
- "type": "object",
- "properties": {
- "brand_name": {
- "type": "string"
- },
- "product_detail": {
- "type": "string"
- },
- "product_id": {
- "type": "integer"
- },
- "product_name": {
- "description": "商品名称",
- "type": "string"
- },
- "product_photos": {
- "description": "商品图片列表",
- "type": "array",
- "items": {
- "$ref": "#/definitions/http_model.CreateProductPhoto"
- }
- },
- "product_price": {
- "description": "商品价值",
- "type": "integer"
- },
- "product_type": {
- "description": "商品类型",
- "type": "integer"
- },
- "product_url": {
- "description": "商品链接,可为电商网址、公司官网、大众点评的店铺地址等可以说明商品信息或者品牌信息的线上地址;",
- "type": "string"
- },
- "shop_address": {
- "description": "店铺地址,商品类型为线下品牌时需填写",
- "type": "string"
- }
- }
- },
- "http_model.SendCodeData": {
- "type": "object"
- },
- "http_model.SendCodeRequest": {
- "type": "object",
- "properties": {
- "phone": {
- "type": "string"
- }
- }
- }
- }
- }`
- // SwaggerInfo holds exported Swagger Info so clients can modify it
- var SwaggerInfo = &swag.Spec{
- Version: "",
- Host: "",
- BasePath: "",
- Schemes: []string{},
- Title: "",
- Description: "",
- InfoInstanceName: "swagger",
- SwaggerTemplate: docTemplate,
- }
- func init() {
- swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
- }
|