123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348 |
- // Code generated by swaggo/swag. DO NOT EDIT.
- package docs
- import "github.com/swaggo/swag"
- const docTemplate = `{
- "schemes": {{ marshal .Schemes }},
- "swagger": "2.0",
- "info": {
- "description": "{{escape .Description}}",
- "title": "{{.Title}}",
- "contact": {
- "name": "Develoven",
- "url": "https://www.cnblogs.com/wormworm/",
- "email": "develoven@163.com"
- },
- "version": "{{.Version}}"
- },
- "host": "{{.Host}}",
- "basePath": "{{.BasePath}}",
- "paths": {
- "/v1/record/:recordId/find": {
- "get": {
- "description": "记录详情查询",
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "测试记录"
- ],
- "summary": "记录详情查询",
- "parameters": [
- {
- "type": "string",
- "description": "测试记录Id",
- "name": "r",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "description": "ok",
- "schema": {
- "type": "string"
- }
- }
- }
- }
- },
- "/v1/record/create": {
- "post": {
- "security": [
- {
- "ApiKeyAuth": []
- }
- ],
- "description": "新增测试",
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "测试记录"
- ],
- "summary": "新增测试",
- "parameters": [
- {
- "type": "file",
- "description": "文件",
- "name": "file",
- "in": "formData",
- "required": true
- },
- {
- "type": "string",
- "description": "用户名",
- "name": "userName",
- "in": "formData",
- "required": true
- },
- {
- "type": "string",
- "description": "文件类型",
- "name": "fileType",
- "in": "formData",
- "required": true
- },
- {
- "type": "string",
- "description": "方向",
- "name": "positiveDir",
- "in": "formData"
- },
- {
- "type": "string",
- "description": "方向",
- "name": "negativaDir",
- "in": "formData"
- },
- {
- "type": "string",
- "description": "car_classification :车辆识别 ; car_direction:方向; class_direc =car_classification+car_direction;",
- "name": "taskType",
- "in": "formData",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "description": "ok",
- "schema": {
- "type": "string"
- }
- }
- }
- }
- },
- "/v1/record/find": {
- "post": {
- "description": "记录列表查询",
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "测试记录"
- ],
- "summary": "记录列表查询",
- "parameters": [
- {
- "description": "role:角色;userName:用户名;pageNum:页数;pageSize:每页记录数",
- "name": "r",
- "in": "body",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "ok",
- "schema": {
- "type": "string"
- }
- }
- }
- }
- },
- "/v1/user/change/password": {
- "post": {
- "description": "用户修改密码",
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "用户管理"
- ],
- "summary": "用户修改密码",
- "parameters": [
- {
- "description": "userName:用户名 password:密码 newPassword:新密码",
- "name": "user",
- "in": "body",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "ok",
- "schema": {
- "type": "string"
- }
- }
- }
- }
- },
- "/v1/user/find": {
- "post": {
- "description": "用户列表查询",
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "用户管理"
- ],
- "summary": "用户列表查询",
- "parameters": [
- {
- "description": "role:角色;userName:用户名;pageNum:页数;pageSize:每页记录数",
- "name": "user",
- "in": "body",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "ok",
- "schema": {
- "type": "string"
- }
- }
- }
- }
- },
- "/v1/user/login": {
- "post": {
- "description": "用户登录",
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "用户管理"
- ],
- "summary": "用户登录",
- "parameters": [
- {
- "description": "username:编号;password:密码;role:角色;",
- "name": "user",
- "in": "body",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "ok",
- "schema": {
- "type": "string"
- }
- }
- }
- }
- },
- "/v1/user/register": {
- "post": {
- "description": "用户注册",
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "用户管理"
- ],
- "summary": "用户注册",
- "parameters": [
- {
- "description": "userName:用户名;password:密码;role:角色",
- "name": "user",
- "in": "body",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "ok",
- "schema": {
- "type": "string"
- }
- }
- }
- }
- },
- "/v1/user/reset": {
- "post": {
- "description": "管理员重置普通用户密码",
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "用户管理"
- ],
- "summary": "管理员重置普通用户密码",
- "parameters": [
- {
- "description": "username:管理员编号;usernameInit:被重置用户编号",
- "name": "user",
- "in": "body",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "ok",
- "schema": {
- "type": "string"
- }
- }
- }
- }
- }
- }
- }`
- // SwaggerInfo holds exported Swagger Info so clients can modify it
- var SwaggerInfo = &swag.Spec{
- Version: "1.0",
- Host: "",
- BasePath: "",
- Schemes: []string{},
- Title: "AIT-go AI测试",
- Description: "AI测试",
- InfoInstanceName: "swagger",
- SwaggerTemplate: docTemplate,
- LeftDelim: "{{",
- RightDelim: "}}",
- }
- func init() {
- swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
- }
|