| | |
| | | } |
| | | } |
| | | }, |
| | | "/api/base/captcha": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "Base" |
| | | ], |
| | | "summary": "获取验证码", |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "$ref": "#/definitions/response.LoginResponse" |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/base/login": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "Base" |
| | | ], |
| | | "summary": "用户登录", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.Login" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "$ref": "#/definitions/response.LoginResponse" |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/city/add": { |
| | | "post": { |
| | | "produces": [ |
| | |
| | | } |
| | | } |
| | | }, |
| | | "/api/user/changePassword": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "User" |
| | | ], |
| | | "summary": "用户修改密码", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.ChangePasswordReq" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/user/deleteUser": { |
| | | "delete": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "User" |
| | | ], |
| | | "summary": "删除用户", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.DeleteUserReq" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/user/getUserInfo": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "User" |
| | | ], |
| | | "summary": "获取自身信息", |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/user/getUserList": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "User" |
| | | ], |
| | | "summary": "分页获取用户列表(不传分页参数,获取全部)", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.GetUserList" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "$ref": "#/definitions/response.PageResult" |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/user/register": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "User" |
| | | ], |
| | | "summary": "注册账号", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.Register" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "$ref": "#/definitions/response.UserResponse" |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/user/resetPassword": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "User" |
| | | ], |
| | | "summary": "重置用户密码", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/model.User" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/user/setSelfInfo": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "User" |
| | | ], |
| | | "summary": "设置用户信息", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.ChangeUserInfo" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/user/setUserInfo": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "User" |
| | | ], |
| | | "summary": "设置用户信息", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.ChangeUserInfo" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/vetting/add": { |
| | | "post": { |
| | | "produces": [ |
| | |
| | | "items": { |
| | | "$ref": "#/definitions/model.Product" |
| | | } |
| | | }, |
| | | "quotationName": { |
| | | "type": "string" |
| | | }, |
| | | "quotation_status": { |
| | | "$ref": "#/definitions/model.QuotationStatus" |
| | |
| | | "$ref": "#/definitions/model.Product" |
| | | } |
| | | }, |
| | | "quotationName": { |
| | | "description": "报价单名称", |
| | | "type": "string" |
| | | }, |
| | | "quotation_status_id": { |
| | | "type": "integer" |
| | | }, |
| | |
| | | } |
| | | } |
| | | }, |
| | | "request.ChangePasswordReq": { |
| | | "type": "object", |
| | | "properties": { |
| | | "newPassword": { |
| | | "description": "新密码", |
| | | "type": "string" |
| | | }, |
| | | "password": { |
| | | "description": "密码", |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "request.ChangeUserInfo": { |
| | | "type": "object", |
| | | "properties": { |
| | | "email": { |
| | | "description": "用户邮箱", |
| | | "type": "string" |
| | | }, |
| | | "headerImg": { |
| | | "description": "用户头像", |
| | | "type": "string" |
| | | }, |
| | | "id": { |
| | | "description": "用户ID", |
| | | "type": "string" |
| | | }, |
| | | "nickName": { |
| | | "description": "用户昵称", |
| | | "type": "string" |
| | | }, |
| | | "phone": { |
| | | "description": "用户手机号", |
| | | "type": "string" |
| | | }, |
| | | "pos": { |
| | | "description": "用户岗位", |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "request.CheckClientName": { |
| | | "type": "object", |
| | | "properties": { |
| | |
| | | "items": { |
| | | "type": "integer" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "request.DeleteUserReq": { |
| | | "type": "object", |
| | | "properties": { |
| | | "userId": { |
| | | "description": "用户ID", |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | |
| | | } |
| | | } |
| | | }, |
| | | "request.GetUserList": { |
| | | "type": "object", |
| | | "properties": { |
| | | "keyword": { |
| | | "description": "模糊查询关键字", |
| | | "type": "string" |
| | | }, |
| | | "page": { |
| | | "description": "页码", |
| | | "type": "integer" |
| | | }, |
| | | "pageSize": { |
| | | "description": "每页大小", |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | | "request.Login": { |
| | | "type": "object", |
| | | "properties": { |
| | | "captcha": { |
| | | "description": "验证码", |
| | | "type": "string" |
| | | }, |
| | | "captchaId": { |
| | | "description": "验证码ID", |
| | | "type": "string" |
| | | }, |
| | | "password": { |
| | | "description": "密码", |
| | | "type": "string" |
| | | }, |
| | | "username": { |
| | | "description": "用户名", |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "request.Plan": { |
| | | "type": "object", |
| | | "properties": { |
| | |
| | | "$ref": "#/definitions/constvar.SalesStatus" |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | }, |
| | | "request.Register": { |
| | | "type": "object", |
| | | "properties": { |
| | | "authorityId": { |
| | | "description": "用户角色ID", |
| | | "type": "integer" |
| | | }, |
| | | "departmentId": { |
| | | "type": "integer" |
| | | }, |
| | | "email": { |
| | | "type": "string" |
| | | }, |
| | | "headerImg": { |
| | | "type": "string" |
| | | }, |
| | | "id": { |
| | | "type": "string" |
| | | }, |
| | | "nickName": { |
| | | "type": "string" |
| | | }, |
| | | "password": { |
| | | "type": "string" |
| | | }, |
| | | "phone": { |
| | | "type": "string" |
| | | }, |
| | | "pos": { |
| | | "type": "string" |
| | | }, |
| | | "rePassword": { |
| | | "description": "确认密码", |
| | | "type": "string" |
| | | }, |
| | | "realName": { |
| | | "type": "string" |
| | | }, |
| | | "userType": { |
| | | "$ref": "#/definitions/constvar.UserType" |
| | | }, |
| | | "username": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | |
| | | "items": { |
| | | "$ref": "#/definitions/model.Product" |
| | | } |
| | | }, |
| | | "quotationName": { |
| | | "description": "报价单名称", |
| | | "type": "string" |
| | | }, |
| | | "quotation_status_id": { |
| | | "type": "integer" |
| | |
| | | } |
| | | } |
| | | }, |
| | | "response.PageResult": { |
| | | "type": "object", |
| | | "properties": { |
| | | "list": {}, |
| | | "page": { |
| | | "type": "integer" |
| | | }, |
| | | "pageSize": { |
| | | "type": "integer" |
| | | }, |
| | | "total": { |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | | "response.PlanResponse": { |
| | | "type": "object", |
| | | "properties": { |
| | |
| | | "items": { |
| | | "$ref": "#/definitions/model.TimelyRate" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "response.UserResponse": { |
| | | "type": "object", |
| | | "properties": { |
| | | "user": { |
| | | "$ref": "#/definitions/model.User" |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | } |
| | | }, |
| | | "/api/base/captcha": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "Base" |
| | | ], |
| | | "summary": "获取验证码", |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "$ref": "#/definitions/response.LoginResponse" |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/base/login": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "Base" |
| | | ], |
| | | "summary": "用户登录", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.Login" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "$ref": "#/definitions/response.LoginResponse" |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/city/add": { |
| | | "post": { |
| | | "produces": [ |
| | |
| | | } |
| | | } |
| | | }, |
| | | "/api/user/changePassword": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "User" |
| | | ], |
| | | "summary": "用户修改密码", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.ChangePasswordReq" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/user/deleteUser": { |
| | | "delete": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "User" |
| | | ], |
| | | "summary": "删除用户", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.DeleteUserReq" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/user/getUserInfo": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "User" |
| | | ], |
| | | "summary": "获取自身信息", |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/user/getUserList": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "User" |
| | | ], |
| | | "summary": "分页获取用户列表(不传分页参数,获取全部)", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.GetUserList" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "$ref": "#/definitions/response.PageResult" |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/user/register": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "User" |
| | | ], |
| | | "summary": "注册账号", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.Register" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "$ref": "#/definitions/response.UserResponse" |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/user/resetPassword": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "User" |
| | | ], |
| | | "summary": "重置用户密码", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/model.User" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/user/setSelfInfo": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "User" |
| | | ], |
| | | "summary": "设置用户信息", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.ChangeUserInfo" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/user/setUserInfo": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "User" |
| | | ], |
| | | "summary": "设置用户信息", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.ChangeUserInfo" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/vetting/add": { |
| | | "post": { |
| | | "produces": [ |
| | |
| | | "items": { |
| | | "$ref": "#/definitions/model.Product" |
| | | } |
| | | }, |
| | | "quotationName": { |
| | | "type": "string" |
| | | }, |
| | | "quotation_status": { |
| | | "$ref": "#/definitions/model.QuotationStatus" |
| | |
| | | "$ref": "#/definitions/model.Product" |
| | | } |
| | | }, |
| | | "quotationName": { |
| | | "description": "报价单名称", |
| | | "type": "string" |
| | | }, |
| | | "quotation_status_id": { |
| | | "type": "integer" |
| | | }, |
| | |
| | | } |
| | | } |
| | | }, |
| | | "request.ChangePasswordReq": { |
| | | "type": "object", |
| | | "properties": { |
| | | "newPassword": { |
| | | "description": "新密码", |
| | | "type": "string" |
| | | }, |
| | | "password": { |
| | | "description": "密码", |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "request.ChangeUserInfo": { |
| | | "type": "object", |
| | | "properties": { |
| | | "email": { |
| | | "description": "用户邮箱", |
| | | "type": "string" |
| | | }, |
| | | "headerImg": { |
| | | "description": "用户头像", |
| | | "type": "string" |
| | | }, |
| | | "id": { |
| | | "description": "用户ID", |
| | | "type": "string" |
| | | }, |
| | | "nickName": { |
| | | "description": "用户昵称", |
| | | "type": "string" |
| | | }, |
| | | "phone": { |
| | | "description": "用户手机号", |
| | | "type": "string" |
| | | }, |
| | | "pos": { |
| | | "description": "用户岗位", |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "request.CheckClientName": { |
| | | "type": "object", |
| | | "properties": { |
| | |
| | | "items": { |
| | | "type": "integer" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "request.DeleteUserReq": { |
| | | "type": "object", |
| | | "properties": { |
| | | "userId": { |
| | | "description": "用户ID", |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | |
| | | } |
| | | } |
| | | }, |
| | | "request.GetUserList": { |
| | | "type": "object", |
| | | "properties": { |
| | | "keyword": { |
| | | "description": "模糊查询关键字", |
| | | "type": "string" |
| | | }, |
| | | "page": { |
| | | "description": "页码", |
| | | "type": "integer" |
| | | }, |
| | | "pageSize": { |
| | | "description": "每页大小", |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | | "request.Login": { |
| | | "type": "object", |
| | | "properties": { |
| | | "captcha": { |
| | | "description": "验证码", |
| | | "type": "string" |
| | | }, |
| | | "captchaId": { |
| | | "description": "验证码ID", |
| | | "type": "string" |
| | | }, |
| | | "password": { |
| | | "description": "密码", |
| | | "type": "string" |
| | | }, |
| | | "username": { |
| | | "description": "用户名", |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "request.Plan": { |
| | | "type": "object", |
| | | "properties": { |
| | |
| | | "$ref": "#/definitions/constvar.SalesStatus" |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | }, |
| | | "request.Register": { |
| | | "type": "object", |
| | | "properties": { |
| | | "authorityId": { |
| | | "description": "用户角色ID", |
| | | "type": "integer" |
| | | }, |
| | | "departmentId": { |
| | | "type": "integer" |
| | | }, |
| | | "email": { |
| | | "type": "string" |
| | | }, |
| | | "headerImg": { |
| | | "type": "string" |
| | | }, |
| | | "id": { |
| | | "type": "string" |
| | | }, |
| | | "nickName": { |
| | | "type": "string" |
| | | }, |
| | | "password": { |
| | | "type": "string" |
| | | }, |
| | | "phone": { |
| | | "type": "string" |
| | | }, |
| | | "pos": { |
| | | "type": "string" |
| | | }, |
| | | "rePassword": { |
| | | "description": "确认密码", |
| | | "type": "string" |
| | | }, |
| | | "realName": { |
| | | "type": "string" |
| | | }, |
| | | "userType": { |
| | | "$ref": "#/definitions/constvar.UserType" |
| | | }, |
| | | "username": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | |
| | | "items": { |
| | | "$ref": "#/definitions/model.Product" |
| | | } |
| | | }, |
| | | "quotationName": { |
| | | "description": "报价单名称", |
| | | "type": "string" |
| | | }, |
| | | "quotation_status_id": { |
| | | "type": "integer" |
| | |
| | | } |
| | | } |
| | | }, |
| | | "response.PageResult": { |
| | | "type": "object", |
| | | "properties": { |
| | | "list": {}, |
| | | "page": { |
| | | "type": "integer" |
| | | }, |
| | | "pageSize": { |
| | | "type": "integer" |
| | | }, |
| | | "total": { |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | | "response.PlanResponse": { |
| | | "type": "object", |
| | | "properties": { |
| | |
| | | "items": { |
| | | "$ref": "#/definitions/model.TimelyRate" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "response.UserResponse": { |
| | | "type": "object", |
| | | "properties": { |
| | | "user": { |
| | | "$ref": "#/definitions/model.User" |
| | | } |
| | | } |
| | | } |
| | |
| | | $ref: '#/definitions/model.QuotationStatus' |
| | | quotation_status_id: |
| | | type: integer |
| | | quotationName: |
| | | type: string |
| | | sale_chance: |
| | | $ref: '#/definitions/model.SaleChance' |
| | | sale_chance_id: |
| | |
| | | type: array |
| | | quotation_status_id: |
| | | type: integer |
| | | quotationName: |
| | | description: 报价单名称 |
| | | type: string |
| | | sale_chance_id: |
| | | type: integer |
| | | validity_date: |
| | |
| | | description: 路径 |
| | | type: string |
| | | type: object |
| | | request.ChangePasswordReq: |
| | | properties: |
| | | newPassword: |
| | | description: 新密码 |
| | | type: string |
| | | password: |
| | | description: 密码 |
| | | type: string |
| | | type: object |
| | | request.ChangeUserInfo: |
| | | properties: |
| | | email: |
| | | description: 用户邮箱 |
| | | type: string |
| | | headerImg: |
| | | description: 用户头像 |
| | | type: string |
| | | id: |
| | | description: 用户ID |
| | | type: string |
| | | nickName: |
| | | description: 用户昵称 |
| | | type: string |
| | | phone: |
| | | description: 用户手机号 |
| | | type: string |
| | | pos: |
| | | description: 用户岗位 |
| | | type: string |
| | | type: object |
| | | request.CheckClientName: |
| | | properties: |
| | | name: |
| | |
| | | items: |
| | | type: integer |
| | | type: array |
| | | type: object |
| | | request.DeleteUserReq: |
| | | properties: |
| | | userId: |
| | | description: 用户ID |
| | | type: string |
| | | type: object |
| | | request.DownloadFile: |
| | | properties: |
| | |
| | | "master_order_id": "销售总单id"}' |
| | | type: object |
| | | type: object |
| | | request.GetUserList: |
| | | properties: |
| | | keyword: |
| | | description: 模糊查询关键字 |
| | | type: string |
| | | page: |
| | | description: 页码 |
| | | type: integer |
| | | pageSize: |
| | | description: 每页大小 |
| | | type: integer |
| | | type: object |
| | | request.Login: |
| | | properties: |
| | | captcha: |
| | | description: 验证码 |
| | | type: string |
| | | captchaId: |
| | | description: 验证码ID |
| | | type: string |
| | | password: |
| | | description: 密码 |
| | | type: string |
| | | username: |
| | | description: 用户名 |
| | | type: string |
| | | type: object |
| | | request.Plan: |
| | | properties: |
| | | clientId: |
| | |
| | | allOf: |
| | | - $ref: '#/definitions/constvar.SalesStatus' |
| | | description: '商机状态: 1: 跟进中; -1:失败' |
| | | type: object |
| | | request.Register: |
| | | properties: |
| | | authorityId: |
| | | description: 用户角色ID |
| | | type: integer |
| | | departmentId: |
| | | type: integer |
| | | email: |
| | | type: string |
| | | headerImg: |
| | | type: string |
| | | id: |
| | | type: string |
| | | nickName: |
| | | type: string |
| | | password: |
| | | type: string |
| | | phone: |
| | | type: string |
| | | pos: |
| | | type: string |
| | | rePassword: |
| | | description: 确认密码 |
| | | type: string |
| | | realName: |
| | | type: string |
| | | userType: |
| | | $ref: '#/definitions/constvar.UserType' |
| | | username: |
| | | type: string |
| | | type: object |
| | | request.SalesDetails: |
| | | properties: |
| | |
| | | type: array |
| | | quotation_status_id: |
| | | type: integer |
| | | quotationName: |
| | | description: 报价单名称 |
| | | type: string |
| | | sale_chance_id: |
| | | type: integer |
| | | validity_date: |
| | |
| | | $ref: '#/definitions/model.OrderType' |
| | | type: array |
| | | type: object |
| | | response.PageResult: |
| | | properties: |
| | | list: {} |
| | | page: |
| | | type: integer |
| | | pageSize: |
| | | type: integer |
| | | total: |
| | | type: integer |
| | | type: object |
| | | response.PlanResponse: |
| | | properties: |
| | | count: |
| | |
| | | items: |
| | | $ref: '#/definitions/model.TimelyRate' |
| | | type: array |
| | | type: object |
| | | response.UserResponse: |
| | | properties: |
| | | user: |
| | | $ref: '#/definitions/model.User' |
| | | type: object |
| | | info: |
| | | contact: {} |
| | |
| | | summary: 更新银行账户 |
| | | tags: |
| | | - 银行账户管理 |
| | | /api/base/captcha: |
| | | post: |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | allOf: |
| | | - $ref: '#/definitions/contextx.Response' |
| | | - properties: |
| | | data: |
| | | $ref: '#/definitions/response.LoginResponse' |
| | | type: object |
| | | summary: 获取验证码 |
| | | tags: |
| | | - Base |
| | | /api/base/login: |
| | | post: |
| | | parameters: |
| | | - description: 查询参数 |
| | | in: body |
| | | name: object |
| | | required: true |
| | | schema: |
| | | $ref: '#/definitions/request.Login' |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | allOf: |
| | | - $ref: '#/definitions/contextx.Response' |
| | | - properties: |
| | | data: |
| | | $ref: '#/definitions/response.LoginResponse' |
| | | type: object |
| | | summary: 用户登录 |
| | | tags: |
| | | - Base |
| | | /api/city/add: |
| | | post: |
| | | parameters: |
| | |
| | | summary: 更新销售阶段 |
| | | tags: |
| | | - TimelyRate |
| | | /api/user/changePassword: |
| | | post: |
| | | parameters: |
| | | - description: 查询参数 |
| | | in: body |
| | | name: object |
| | | required: true |
| | | schema: |
| | | $ref: '#/definitions/request.ChangePasswordReq' |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | $ref: '#/definitions/contextx.Response' |
| | | summary: 用户修改密码 |
| | | tags: |
| | | - User |
| | | /api/user/deleteUser: |
| | | delete: |
| | | parameters: |
| | | - description: 查询参数 |
| | | in: body |
| | | name: object |
| | | required: true |
| | | schema: |
| | | $ref: '#/definitions/request.DeleteUserReq' |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | $ref: '#/definitions/contextx.Response' |
| | | summary: 删除用户 |
| | | tags: |
| | | - User |
| | | /api/user/getUserInfo: |
| | | post: |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | $ref: '#/definitions/contextx.Response' |
| | | summary: 获取自身信息 |
| | | tags: |
| | | - User |
| | | /api/user/getUserList: |
| | | post: |
| | | parameters: |
| | | - description: 查询参数 |
| | | in: body |
| | | name: object |
| | | required: true |
| | | schema: |
| | | $ref: '#/definitions/request.GetUserList' |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | allOf: |
| | | - $ref: '#/definitions/contextx.Response' |
| | | - properties: |
| | | data: |
| | | $ref: '#/definitions/response.PageResult' |
| | | type: object |
| | | summary: 分页获取用户列表(不传分页参数,获取全部) |
| | | tags: |
| | | - User |
| | | /api/user/register: |
| | | post: |
| | | parameters: |
| | | - description: 查询参数 |
| | | in: body |
| | | name: object |
| | | required: true |
| | | schema: |
| | | $ref: '#/definitions/request.Register' |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | allOf: |
| | | - $ref: '#/definitions/contextx.Response' |
| | | - properties: |
| | | data: |
| | | $ref: '#/definitions/response.UserResponse' |
| | | type: object |
| | | summary: 注册账号 |
| | | tags: |
| | | - User |
| | | /api/user/resetPassword: |
| | | post: |
| | | parameters: |
| | | - description: 查询参数 |
| | | in: body |
| | | name: object |
| | | required: true |
| | | schema: |
| | | $ref: '#/definitions/model.User' |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | $ref: '#/definitions/contextx.Response' |
| | | summary: 重置用户密码 |
| | | tags: |
| | | - User |
| | | /api/user/setSelfInfo: |
| | | post: |
| | | parameters: |
| | | - description: 查询参数 |
| | | in: body |
| | | name: object |
| | | required: true |
| | | schema: |
| | | $ref: '#/definitions/request.ChangeUserInfo' |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | $ref: '#/definitions/contextx.Response' |
| | | summary: 设置用户信息 |
| | | tags: |
| | | - User |
| | | /api/user/setUserInfo: |
| | | post: |
| | | parameters: |
| | | - description: 查询参数 |
| | | in: body |
| | | name: object |
| | | required: true |
| | | schema: |
| | | $ref: '#/definitions/request.ChangeUserInfo' |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | $ref: '#/definitions/contextx.Response' |
| | | summary: 设置用户信息 |
| | | tags: |
| | | - User |
| | | /api/vetting/add: |
| | | post: |
| | | parameters: |
| | |
| | | v1 "aps_crm/api/v1" |
| | | "aps_crm/conf" |
| | | _ "aps_crm/docs" |
| | | "aps_crm/middleware" |
| | | "fmt" |
| | | "github.com/gin-contrib/cors" |
| | | "github.com/gin-gonic/gin" |
| | |
| | | |
| | | PrivateGroup := Router.Group("api") |
| | | //PrivateGroup.Use(middleware.JWTAuth()).Use(middleware.CasbinHandler()) |
| | | //PrivateGroup.Use(middleware.JWTAuth2()) |
| | | PrivateGroup.Use(middleware.JWTAuth2()) |
| | | //PrivateGroup.Use(middleware.CasbinHandler()) |
| | | { |
| | | //routerGroup.InitJwtRouter(PrivateGroup) // jwt相关路由 |
| | | routerGroup.InitJwtRouter(PrivateGroup) // jwt相关路由 |
| | | //routerGroup.InitUserRouter(PrivateGroup) // 注册用户路由 |
| | | routerGroup.InitCountryRouter(PrivateGroup) // 注册country路由 |
| | | routerGroup.InitProvinceRouter(PrivateGroup) // 注册province路由 |