// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT // This file was generated by swaggo/swag at // 2020-05-20 14:45:12.3054401 +0800 CST m=+0.096772501 package docs import ( "bytes" "encoding/json" "strings" "github.com/alecthomas/template" "github.com/swaggo/swag" ) var doc = `{ "definitions": { "Model.Res": { "properties": { "message": { "description": "返回的消息", "example": "操作成功", "type": "string" }, "success": { "description": "是否成功", "example": "true", "type": "boolean" } }, "type": "object" } }, "host": "127.0.0.1:8002", "info": { "contact": { "email": "support@swagger.io", "name": "API Support", "url": "http://www.swagger.io/support" }, "description": "分布式,大并发,高可用", "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.html" }, "title": "基础数据API", "version": "1.0" }, "paths": { "/base/business/PageBaseBusiness": { "get": { "X-EmptyLimit": [ "page", "limit" ], "X-IntLimit": [ "page", "limit" ], "X-RoleLimit": [ "1" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "获取业务系统信息(列表)", "parameters": [ { "description": "第几页", "in": "query", "name": "page", "required": true, "type": "integer" }, { "description": "一页显示多少条", "in": "query", "name": "limit", "required": true, "type": "integer" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "获取业务系统信息(列表)", "tags": [ "业务系统维护" ] } }, "/base/business/GetBaseBusiness": { "get": { "X-EmptyLimit": [ "businessCode" ], "X-LengthLimit": [ { "businessCode": "6,6" } ], "X-RoleLimit": [ "1" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "获取业务系统信息(单条)", "parameters": [ { "description": "业务系统编码", "in": "query", "name": "businessCode", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "获取业务系统信息(单条)", "tags": [ "业务系统维护" ] } }, "/base/business/AddBaseBusiness": { "post": { "X-EmptyLimit": [ "businessCode", "businessName" ], "X-LengthLimit": [ { "businessCode": "6:6" }, { "businessName": "1:50" } ], "X-RoleLimit": [ "1" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "增加业务系统信息", "parameters": [ { "description": "业务系统编码", "in": "formData", "name": "businessCode", "required": true, "type": "string" }, { "description": "业务系统名称", "in": "formData", "name": "businessName", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "增加业务系统信息", "tags": [ "业务系统维护" ] } }, "/base/business/DeleteBaseBusiness": { "post": { "X-EmptyLimit": [ "businessCode" ], "X-LengthLimit": [ { "businessCode": "6,6" } ], "X-RoleLimit": [ "1" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "删除业务系统信息", "parameters": [ { "description": "业务系统编码", "in": "formData", "name": "businessCode", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "删除业务系统信息", "tags": [ "业务系统维护" ] } }, "/base/business/UpdateBaseBusiness": { "post": { "X-EmptyLimit": [ "businessCode", "businessName" ], "X-LengthLimit": [ { "businessCode": "6,6" }, { "businessName": "1:50" } ], "X-RoleLimit": [ "1" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "修改业务系统信息", "parameters": [ { "description": "业务系统编码", "in": "formData", "name": "businessCode", "required": true, "type": "string" }, { "description": "业务系统名称", "in": "formData", "name": "businessName", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "修改业务系统信息", "tags": [ "业务系统维护" ] } }, "/base/global/GetGlobalValueByCodes": { "get": { "X-EmptyLimit": [ "codes" ], "X-InterfaceName": [ "GetBaseGlobal" ], "X-LengthLimit": [ { "codes": "1,500" } ], "X-Sort": [ 3 ], "X-TableName": [ "t_base_global" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "根据多个全局变量Code获取全局变量值", "parameters": [ { "description": "全局变量Code,多个用逗号分隔", "in": "query", "name": "codes", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "根据多个全局变量Code获取全局变量值", "tags": [ "全局变量" ] } }, "/base/global/UpdateGlobalInfo": { "post": { "X-EmptyLimit": [ "globalId", "globalTypeId", "globalCode", "globalValue", "sortId" ], "X-IntLimit": [ "globalId", "globalTypeId", "sortId" ], "X-LengthLimit": [ { "globalId": "36,36" }, { "globalCode": "2,50" }, { "globalValue": "1,255" }, { "globalRemarks": "1,500" } ], "X-RoleLimit": [ "1" ], "X-Sort": [ 6 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "修改全局变量", "parameters": [ { "description": "全局变量ID", "in": "formData", "name": "globalId", "required": true, "type": "string" }, { "description": "全局变量分类", "in": "formData", "name": "globalTypeId", "required": true, "type": "integer" }, { "description": "全局变量代码", "in": "formData", "name": "globalCode", "required": true, "type": "string" }, { "description": "全局变量值", "in": "formData", "name": "globalValue", "required": true, "type": "string" }, { "description": "全局变量备注", "in": "formData", "name": "globalRemarks", "type": "string" }, { "description": "排序号", "in": "formData", "name": "sortId", "required": true, "type": "integer" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "修改全局变量", "tags": [ "全局变量" ] } }, "/base/global/PageGlobalInfo": { "get": { "X-EmptyLimit": [ "page", "limit", "globalTypeId" ], "X-IntLimit": [ "page", "limit", "globalTypeId" ], "X-RoleLimit": [ "1" ], "X-Sort": [ 1 ], "X-TableName": [ "t_base_global" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "获取全局变量列表", "parameters": [ { "description": "第几页", "in": "query", "name": "page", "required": true, "type": "integer" }, { "description": "一页显示多少条", "in": "query", "name": "limit", "required": true, "type": "integer" }, { "description": "全局变量分类(全部传-1)", "in": "query", "name": "globalTypeId", "required": true, "type": "integer" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "获取全局变量列表", "tags": [ "全局变量" ] } }, "/base/global/GetGlobalInfo": { "get": { "X-EmptyLimit": [ "globalId" ], "X-InterfaceName": [ "GetBaseGlobal" ], "X-LengthLimit": [ { "globalId": "36,36" } ], "X-RoleLimit": [ "1" ], "X-Sort": [ 2 ], "X-TableName": [ "t_base_global" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "获取全局变量信息", "parameters": [ { "description": "全局变量ID", "in": "query", "name": "globalId", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "获取全局变量信息", "tags": [ "全局变量" ] } }, "/base/global/AddGlobalInfo": { "post": { "X-EmptyLimit": [ "globalTypeId", "globalCode", "globalValue", "sortId" ], "X-IntLimit": [ "globalTypeId", "sortId" ], "X-LengthLimit": [ { "globalCode": "2,50" }, { "globalValue": "1,255" }, { "globalRemarks": "1,500" } ], "X-RoleLimit": [ "1" ], "X-Sort": [ 4 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "增加全局变量", "parameters": [ { "description": "全局变量分类", "in": "formData", "name": "globalTypeId", "required": true, "type": "integer" }, { "description": "全局变量代码", "in": "formData", "name": "globalCode", "required": true, "type": "string" }, { "description": "全局变量值", "in": "formData", "name": "globalValue", "required": true, "type": "string" }, { "description": "全局变量备注", "in": "formData", "name": "globalRemarks", "type": "string" }, { "description": "排序号", "in": "formData", "name": "sortId", "required": true, "type": "integer" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "增加全局变量", "tags": [ "全局变量" ] } }, "/base/global/DeleteGlobalInfo": { "post": { "X-EmptyLimit": [ "globalIds" ], "X-LengthLimit": [ { "globalIds": "36,1800" } ], "X-RoleLimit": [ "1" ], "X-Sort": [ 5 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "删除全局变量", "parameters": [ { "description": "全局变量ID,多个用逗号分隔", "in": "formData", "name": "globalIds", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "删除全局变量", "tags": [ "全局变量" ] } }, "/base/dict/GetSubjectInfo": { "get": { "X-EmptyLimit": [ "stageId" ], "X-InterfaceName": [ "PageSysDict" ], "X-LengthLimit": [ { "stageId": "1,1" } ], "X-RemoveSwaggerField": [ "b_use", "sort_id" ], "X-RoleLimit": [ "1", "2", "3", "4", "5", "6", "7" ], "X-Sort": [ 4 ], "X-TableName": [ "t_dm_subject" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "根据学段ID获取学科信息", "parameters": [ { "description": "学段ID", "in": "query", "name": "stageId", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "根据学段ID获取学科信息", "tags": [ "字典" ] } }, "/base/dict/PageDict": { "get": { "X-EmptyLimit": [ "dictKind" ], "X-InterfaceName": [ "PageSysDict" ], "X-LengthLimit": [ { "dictKind": "1,20" }, { "dictParent": "1,10" } ], "X-RemoveSwaggerField": [ "dict_id", "dict_kind", "dict_remark", "dict_parent", "sort_id", "b_use" ], "X-RoleLimit": [ "1", "2", "3", "4", "5", "6", "7" ], "X-Sort": [ 2 ], "X-TableName": [ "t_sys_dict" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "根据字典分类、上级字典编码获取字典信息", "parameters": [ { "description": "字典分类", "in": "query", "name": "dictKind", "required": true, "type": "string" }, { "description": "上级字典编码", "in": "query", "name": "dictParent", "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "根据字典分类、上级字典编码获取字典信息", "tags": [ "字典" ] } }, "/base/dict/GetStageInfo": { "get": { "X-InterfaceName": [ "PageSysDict" ], "X-RemoveSwaggerField": [ "b_use", "sort_id" ], "X-RoleLimit": [ "1", "2", "3", "4", "5", "6", "7" ], "X-Sort": [ 3 ], "X-TableName": [ "t_dm_stage" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "获取学段信息", "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "获取学段信息", "tags": [ "字典" ] } }, "/base/dict/GetMultipleDictInfo": { "get": { "X-EmptyLimit": [ "dictKinds" ], "X-LengthLimit": [ { "dictKinds": "1,500" } ], "X-RoleLimit": [ "1", "2", "3", "4", "5", "6", "7" ], "X-Sort": [ 5 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "根据多个dict_kind获取字典信息", "parameters": [ { "description": "字典分类,多个用逗号分隔", "in": "query", "name": "dictKinds", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "根据多个dict_kind获取字典信息", "tags": [ "字典" ] } }, "/base/dict/GetDictInfo": { "get": { "X-EmptyLimit": [ "dictKind", "dictCode" ], "X-InterfaceName": [ "GetSysDict" ], "X-LengthLimit": [ { "dictKind": "1,20" }, { "dictCode": "1,10" } ], "X-RemoveSwaggerField": [ "dict_id", "dict_kind", "dict_remark", "dict_parent", "sort_id", "b_use" ], "X-RoleLimit": [ "1", "2", "3", "4", "5", "6", "7" ], "X-Sort": [ 1 ], "X-TableName": [ "t_sys_dict" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "根据字典分类和字典编码获取字典信息", "parameters": [ { "description": "字典分类", "in": "query", "name": "dictKind", "required": true, "type": "string" }, { "description": "字典编码", "in": "query", "name": "dictCode", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "根据字典分类和字典编码获取字典信息", "tags": [ "字典" ] } }, "/base/student/ImportStudentExcel": { "post": { "X-EmptyLimit": [ "orgId" ], "X-LengthLimit": [ { "orgId": "36,36" } ], "X-RoleLimit": [ "1", "2", "3", "4", "6", "7" ], "X-Sort": [ 9 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "导入学生EXCEL", "parameters": [ { "description": "单位ID", "in": "formData", "name": "orgId", "required": true, "type": "string" }, { "description": "EXCEL文件", "in": "formData", "name": "excelFile", "required": true, "type": "file" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "导入学生EXCEL", "tags": [ "学生信息" ] } }, "/base/student/PageStudentInfo": { "get": { "X-EmptyLimit": [ "page", "limit", "classId" ], "X-ExtendSwaggerField": [ { "column_comment": "性别", "column_name": "xb_name", "sample_data": "男" }, { "column_comment": "登录名", "column_name": "login_name", "sample_data": "stu001" }, { "column_comment": "初始密码", "column_name": "original_pwd", "sample_data": "159357" }, { "column_comment": "账号状态", "column_name": "login_status", "sample_data": "已启用" } ], "X-IntRangeLimit": [ { "page": "1,1000" }, { "limit": "1,1000" } ], "X-InterfaceName": [ "PageBaseStudent" ], "X-LengthLimit": [ { "classId": "36,36" }, { "xm": "1,30" } ], "X-RemoveSwaggerField": [ "id_int", "xmpy", "cym", "csrq", "mzm", "zzmmm", "sfzjlxm", "sfzjh", "dszybz", "sqznbz", "jcwgrysqznbz", "gebz", "lsetbz", "cjbz", "class_id", "bureau_id", "b_use", "state_id", "province_code", "city_code", "district_code", "main_school_id", "last_updated_time" ], "X-RoleLimit": [ "1", "2", "3", "4", "6", "7" ], "X-Sort": [ 1 ], "X-TableName": [ "t_base_student" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "获取学生列表", "parameters": [ { "description": "第几页", "in": "query", "name": "page", "required": true, "type": "integer" }, { "description": "一页显示多少条", "in": "query", "name": "limit", "required": true, "type": "integer" }, { "description": "班级ID", "in": "query", "name": "classId", "required": true, "type": "string" }, { "description": "学生姓名", "in": "query", "name": "xm", "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "获取学生列表", "tags": [ "学生信息" ] } }, "/base/student/StudentTransferInfo": { "post": { "X-EmptyLimit": [ "classId", "personId" ], "X-LengthLimit": [ { "classId": "36,36" }, { "personId": "36,36" } ], "X-Sort": [ 10 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "学生调转", "parameters": [ { "description": "学生ID", "in": "formData", "name": "personId", "required": true, "type": "string" }, { "description": "班级ID", "in": "formData", "name": "classId", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "学生调转", "tags": [ "学生信息" ] } }, "/base/student/DownLoadStudentTemplateExcel": { "get": { "X-EmptyLimit": [ "orgId" ], "X-LengthLimit": [ { "orgId": "36,36" } ], "X-RoleLimit": [ "1", "2", "3", "4", "6", "7" ], "X-Sort": [ 8 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "下载学生导入模板", "parameters": [ { "description": "学校ID", "in": "query", "name": "orgId", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "下载学生导入模板", "tags": [ "学生信息" ] } }, "/base/student/UpdateStudentInfo": { "post": { "X-EmptyLimit": [ "personId", "xm", "mzm", "zzmmm", "dszybz", "sqznbz", "jcwgrysqznbz", "gebz", "lsetbz", "cjbz" ], "X-IntRangeLimit": [ { "sfzjlxm": "1,4" } ], "X-InterfaceName": [ "UpdateBaseStudent" ], "X-LengthLimit": [ { "personId": "36,36" }, { "xm": "2,30" }, { "xbm": "1,1" }, { "mzm": "2,2" }, { "zzmmm": "2,2" } ], "X-RoleLimit": [ "1", "2", "3", "4", "6", "7" ], "X-Sort": [ 5 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "修改学生信息", "parameters": [ { "description": "学生ID", "in": "formData", "name": "personId", "required": true, "type": "string" }, { "description": "学生姓名", "in": "formData", "name": "xm", "required": true, "type": "string" }, { "description": "身份证件类型代码(字典:sfzjlxm)", "in": "formData", "name": "sfzjlxm", "type": "string" }, { "description": "身份证件号", "in": "formData", "name": "sfzjh", "type": "integer" }, { "description": "性别(字典:xbm)", "in": "formData", "name": "xbm", "required": true, "type": "string" }, { "description": "出生日期", "in": "formData", "name": "csrq", "required": true, "type": "string" }, { "description": "民族(字典:mzm)", "in": "formData", "name": "mzm", "required": true, "type": "string" }, { "description": "政治面貌(字典:zzmmm)", "in": "formData", "name": "zzmmm", "required": true, "type": "string" }, { "description": "独生子女标志 -1:不是 1:是", "in": "formData", "name": "dszybz", "required": true, "type": "integer" }, { "description": "随迁子女标志 -1:不是 1:是", "in": "formData", "name": "sqznbz", "required": true, "type": "integer" }, { "description": "进城务工人员随迁子女标志 -1:不是 1:是", "in": "formData", "name": "jcwgrysqznbz", "required": true, "type": "integer" }, { "description": "孤儿标志 -1:不是 1:是", "in": "formData", "name": "gebz", "required": true, "type": "integer" }, { "description": "留守儿童标志 -1:不是 1:是", "in": "formData", "name": "lsetbz", "required": true, "type": "integer" }, { "description": "残疾标志 -1:不是 1:是", "in": "formData", "name": "cjbz", "required": true, "type": "integer" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "修改学生信息", "tags": [ "学生信息" ] } }, "/base/student/ExportStudentAccountExcel": { "get": { "X-EmptyLimit": [ "orgId" ], "X-LengthLimit": [ { "orgId": "36,36" } ], "X-RoleLimit": [ "1", "2", "3", "4", "6", "7" ], "X-Sort": [ 7 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "导出本校学生账号信息到EXCEL", "parameters": [ { "description": "学校ID", "in": "query", "name": "orgId", "required": true, "type": "string" }, { "description": "班级ID,不传为导出全校,传为导出班级", "in": "query", "name": "classId", "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "导出本校学生账号信息到EXCEL", "tags": [ "学生信息" ] } }, "/base/student/GetStudentInfo": { "get": { "X-EmptyLimit": [ "personId" ], "X-InterfaceName": [ "GetBaseStudent" ], "X-LengthLimit": [ { "personId": "36,36" } ], "X-RemoveSwaggerField": [ "id_int", "xmpy", "cym", "class_id", "bureau_id", "b_use", "state_id", "province_code", "city_code", "district_code", "main_school_id", "last_updated_time" ], "X-RoleLimit": [ "1", "2", "3", "4", "6", "7" ], "X-Sort": [ 2 ], "X-TableName": [ "t_base_class" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "获取学生信息", "parameters": [ { "description": "学生ID", "in": "query", "name": "personId", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "获取学生信息", "tags": [ "学生信息" ] } }, "/base/student/DeleteStudentInfo": { "post": { "X-EmptyLimit": [ "personIds" ], "X-InterfaceName": [ "DeleteBaseStudent" ], "X-LengthLimit": [ { "personIds": "36,1800" } ], "X-RoleLimit": [ "1", "2", "3", "4", "6", "7" ], "X-Sort": [ 4 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "删除学生信息", "parameters": [ { "description": "学生ID,多个用逗号分隔", "in": "formData", "name": "personIds", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "删除学生信息", "tags": [ "学生信息" ] } }, "/base/student/ReviseStudentClass": { "post": { "X-EmptyLimit": [ "personIds" ], "X-LengthLimit": [ { "personIds": "36,1800" }, { "classId": "36,36" } ], "X-RoleLimit": [ "1", "2", "3", "4", "6", "7" ], "X-Sort": [ 6 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "学生调整班级", "parameters": [ { "description": "学生ID,多个用逗号分隔", "in": "formData", "name": "personIds", "required": true, "type": "string" }, { "description": "调整后的班级ID", "in": "formData", "name": "classId", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "学生调整班级", "tags": [ "学生信息" ] } }, "/base/student/AddStudentInfo": { "post": { "X-EmptyLimit": [ "xm", "mzm", "zzmmm", "dszybz", "sqznbz", "jcwgrysqznbz", "gebz", "lsetbz", "cjbz", "classId" ], "X-IntRangeLimit": [ { "sfzjlxm": "1,4" } ], "X-InterfaceName": [ "AddBaseStudent" ], "X-LengthLimit": [ { "classId": "36,36" }, { "xm": "2,30" }, { "xbm": "1,1" }, { "mzm": "2,2" }, { "zzmmm": "2,2" } ], "X-RoleLimit": [ "1", "2", "3", "4", "6", "7" ], "X-Sort": [ 3 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "增加学生信息", "parameters": [ { "description": "学生姓名", "in": "formData", "name": "xm", "required": true, "type": "string" }, { "description": "身份证件类型代码(字典:sfzjlxm)", "in": "formData", "name": "sfzjlxm", "type": "string" }, { "description": "身份证件号", "in": "formData", "name": "sfzjh", "type": "integer" }, { "description": "性别(字典:xbm)", "in": "formData", "name": "xbm", "required": true, "type": "string" }, { "description": "出生日期", "in": "formData", "name": "csrq", "required": true, "type": "string" }, { "description": "民族(字典:mzm)", "in": "formData", "name": "mzm", "required": true, "type": "string" }, { "description": "政治面貌(字典:zzmmm)", "in": "formData", "name": "zzmmm", "required": true, "type": "string" }, { "description": "独生子女标志 -1:不是 1:是", "in": "formData", "name": "dszybz", "required": true, "type": "integer" }, { "description": "随迁子女标志 -1:不是 1:是", "in": "formData", "name": "sqznbz", "required": true, "type": "integer" }, { "description": "进城务工人员随迁子女标志 -1:不是 1:是", "in": "formData", "name": "jcwgrysqznbz", "required": true, "type": "integer" }, { "description": "孤儿标志 -1:不是 1:是", "in": "formData", "name": "gebz", "required": true, "type": "integer" }, { "description": "留守儿童标志 -1:不是 1:是", "in": "formData", "name": "lsetbz", "required": true, "type": "integer" }, { "description": "残疾标志 -1:不是 1:是", "in": "formData", "name": "cjbz", "required": true, "type": "integer" }, { "description": "班级ID", "in": "formData", "name": "classId", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "增加学生信息", "tags": [ "学生信息" ] } }, "/base/student/ExportStudentExcel": { "get": { "X-EmptyLimit": [ "orgId" ], "X-LengthLimit": [ { "orgId": "36,36" } ], "X-RoleLimit": [ "1", "2", "3", "4", "6", "7" ], "X-Sort": [ 7 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "导出本校学生信息到EXCEL", "parameters": [ { "description": "学校ID", "in": "query", "name": "orgId", "required": true, "type": "string" }, { "description": "班级ID,不传为导出全校,传为导出班级", "in": "query", "name": "classId", "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "导出本校学生信息到EXCEL", "tags": [ "学生信息" ] } }, "/base/teacher/SettingTeacherMultipleBureauInfo": { "post": { "X-EmptyLimit": [ "orgId", "personId" ], "X-LengthLimit": [ { "orgId": "36,36" }, { "personId": "36,36" } ], "X-RoleLimit": [ "1", "3", "4" ], "X-Sort": [ 11 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "设置教师多单位", "parameters": [ { "description": "部门ID", "in": "formData", "name": "orgId", "required": true, "type": "string" }, { "description": "教职工ID", "in": "formData", "name": "personId", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "设置教师多单位", "tags": [ "教师信息" ] } }, "/base/teacher/AddTeacherInfo": { "post": { "X-EmptyLimit": [ "orgId", "xm", "mzm", "zzmmm", "zcm", "bzlbm", "xlm", "xwm" ], "X-IntRangeLimit": [ { "sortId": "1,9999" }, { "sfzjlxm": "1,4" } ], "X-InterfaceName": [ "AddBaseTeacher" ], "X-LengthLimit": [ { "orgId": "36,36" }, { "xm": "2,20" }, { "xbm": "1,1" }, { "sfzjh": "2,30" }, { "mzm": "2,2" }, { "zzmmm": "2,2" }, { "zcm": "1,1" }, { "bzlbm": "1,1" }, { "xlm": "2,2" }, { "xwm": "1,1" }, { "stageId": "1,1" }, { "subjectId": "2,2" }, { "lxdh": "2,30" } ], "X-RoleLimit": [ "1", "2", "3", "4", "5", "6", "7" ], "X-Sort": [ 3 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "增加教职工信息", "parameters": [ { "description": "部门ID", "in": "formData", "name": "orgId", "required": true, "type": "string" }, { "description": "教职工姓名", "in": "formData", "name": "xm", "required": true, "type": "string" }, { "description": "身份证件类型(字典:sfzjlxm)", "in": "formData", "name": "sfzjlxm", "type": "string" }, { "description": "证件号", "in": "formData", "name": "sfzjh", "type": "string" }, { "description": "性别(字典:xbm)", "in": "formData", "name": "xbm", "required": true, "type": "string" }, { "description": "出生日期", "in": "formData", "name": "csrq", "required": true, "type": "string" }, { "description": "民族(字典:mzm)", "in": "formData", "name": "mzm", "required": true, "type": "string" }, { "description": "政治面貌(字典:zzmmm)", "in": "formData", "name": "zzmmm", "required": true, "type": "string" }, { "description": "职称(字典:zcm)", "in": "formData", "name": "zcm", "required": true, "type": "string" }, { "description": "编制(字典:bzlbm)", "in": "formData", "name": "bzlbm", "required": true, "type": "string" }, { "description": "学历(字典:xlm)", "in": "formData", "name": "xlm", "required": true, "type": "string" }, { "description": "学位(字典:xwm)", "in": "formData", "name": "xwm", "required": true, "type": "string" }, { "description": "任教学段", "in": "formData", "name": "stageId", "required": true, "type": "string" }, { "description": "任教学科", "in": "formData", "name": "subjectId", "required": true, "type": "string" }, { "description": "职务ID,多个用逗号分隔", "in": "formData", "name": "positionIds", "type": "string" }, { "description": "从教年月", "in": "formData", "name": "cjny", "type": "string" }, { "description": "联系电话", "in": "formData", "name": "lxdh", "type": "string" }, { "description": "电子信箱", "in": "formData", "name": "dzxx", "type": "string" }, { "description": "排序号", "in": "formData", "name": "sortId", "type": "integer" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "增加教职工信息", "tags": [ "教师信息" ] } }, "/base/teacher/GetTeacherInfo": { "get": { "X-EmptyLimit": [ "personId" ], "X-ExtendSwaggerField": [ { "column_comment": "部门名称", "column_name": "org_name", "sample_data": "语文组" } ], "X-InterfaceName": [ "GetBaseTeacher" ], "X-LengthLimit": [ { "personId": "36,36" } ], "X-RemoveSwaggerField": [ "identity_id", "id_int", "xmpy", "cym", "gwzym", "b_use", "state_id", "last_updated_time" ], "X-RoleLimit": [ "1", "2", "3", "4", "5", "6", "7" ], "X-Sort": [ 2 ], "X-TableName": [ "t_base_teacher" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "获取教职工信息", "parameters": [ { "description": "教职工ID", "in": "query", "name": "personId", "required": true, "type": "string" }, { "description": "单位ID", "in": "query", "name": "bureauId", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "获取教职工信息", "tags": [ "教师信息" ] } }, "/base/teacher/TeacherTransferInfo": { "post": { "X-EmptyLimit": [ "orgId", "personId" ], "X-LengthLimit": [ { "orgId": "36,36" }, { "personId": "36,36" } ], "X-RoleLimit": [ "1", "3", "4" ], "X-Sort": [ 15 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "教师调转单位", "parameters": [ { "description": "部门ID", "in": "formData", "name": "orgId", "required": true, "type": "string" }, { "description": "人员ID", "in": "formData", "name": "personId", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "教师调转单位", "tags": [ "教师信息" ] } }, "/base/teacher/SettingMainOrgInfo": { "post": { "X-EmptyLimit": [ "id" ], "X-LengthLimit": [ { "id": "36,36" } ], "X-RoleLimit": [ "1", "3", "4" ], "X-Sort": [ 14 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "设置主单位", "parameters": [ { "description": "ID", "in": "formData", "name": "id", "required": true, "type": "string" }, { "description": "人员ID", "in": "formData", "name": "personId", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "设置主单位", "tags": [ "教师信息" ] } }, "/base/teacher/ExportTeacherAccountExcel": { "get": { "X-EmptyLimit": [ "orgId" ], "X-LengthLimit": [ { "orgId": "36,36" } ], "X-RoleLimit": [ "1", "2", "3", "4", "5", "6", "7" ], "X-Sort": [ 7 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "导出本单位教职工账号信息到EXCEL", "parameters": [ { "description": "单位ID", "in": "query", "name": "orgId", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "导出本单位教职工账号信息到EXCEL", "tags": [ "教师信息" ] } }, "/base/teacher/DeleteTeacherMultipleBureauInfo": { "post": { "X-EmptyLimit": [ "id" ], "X-LengthLimit": [ { "id": "36,36" } ], "X-RoleLimit": [ "1", "3", "4" ], "X-Sort": [ 13 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "删除教职工所在多单位信息", "parameters": [ { "description": "ID", "in": "formData", "name": "id", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "删除教职工所在多单位信息", "tags": [ "教师信息" ] } }, "/base/teacher/ReviseTeacherOrg": { "post": { "X-EmptyLimit": [ "personIds" ], "X-LengthLimit": [ { "personIds": "36,1800" }, { "sourceOrgId": "36,36" }, { "targetOrgId": "36,36" } ], "X-RoleLimit": [ "1", "2", "3", "4", "5", "6", "7" ], "X-Sort": [ 6 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "调整教职工部门", "parameters": [ { "description": "教职工ID,多个用逗号分隔", "in": "formData", "name": "personIds", "required": true, "type": "string" }, { "description": "调整后的部门ID", "in": "formData", "name": "orgId", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "调整教职工部门", "tags": [ "教师信息" ] } }, "/base/teacher/DownLoadTeacherTemplateExcel": { "get": { "X-EmptyLimit": [ "orgId" ], "X-LengthLimit": [ { "orgId": "36,36" } ], "X-RoleLimit": [ "1", "2", "3", "4", "5", "6", "7" ], "X-Sort": [ 9 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "下载教职工导入模板", "parameters": [ { "description": "单位ID", "in": "query", "name": "orgId", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "下载教职工导入模板", "tags": [ "教师信息" ] } }, "/base/teacher/ImportTeacherExcel": { "post": { "X-EmptyLimit": [ "orgId" ], "X-LengthLimit": [ { "orgId": "36,36" } ], "X-RoleLimit": [ "1", "2", "3", "4", "5", "6", "7" ], "X-Sort": [ 10 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "导入教职工EXCEL", "parameters": [ { "description": "单位ID", "in": "formData", "name": "orgId", "required": true, "type": "string" }, { "description": "EXCEL文件", "in": "formData", "name": "excelFile", "required": true, "type": "file" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "导入教职工EXCEL", "tags": [ "教师信息" ] } }, "/base/teacher/PageTeacherInfo": { "get": { "X-EmptyLimit": [ "page", "limit", "orgId" ], "X-ExtendSwaggerField": [ { "column_comment": "性别", "column_name": "xb_name", "sample_data": "男" }, { "column_comment": "所属部门", "column_name": "org_name", "sample_data": "办公室" }, { "column_comment": "登录名", "column_name": "login_name", "sample_data": "stu001" }, { "column_comment": "初始密码", "column_name": "original_pwd", "sample_data": "159357" }, { "column_comment": "账号状态", "column_name": "login_status", "sample_data": "已启用" }, { "column_comment": "学段名称", "column_name": "stage_name", "sample_data": "小学" }, { "column_comment": "学科名称", "column_name": "subject_name", "sample_data": "数学" } ], "X-IntRangeLimit": [ { "page": "1,1000" }, { "limit": "1,1000" } ], "X-InterfaceName": [ "PageBaseTeacher" ], "X-LengthLimit": [ { "orgId": "36,36" }, { "xm": "1,20" } ], "X-RemoveSwaggerField": [ "identity_id", "id_int", "xmpy", "cym", "csrq", "mzm", "zzmmm", "sfzjlxm", "sfzjh", "xlm", "xwm", "zcm", "bzlbm", "cjny", "stage_id", "subject_id", "gwzym", "lxdh", "dzxx", "b_use", "state_id", "last_updated_time", "main_school_id", "province_code", "city_code", "district_code" ], "X-RoleLimit": [ "1", "2", "3", "4", "5", "6", "7" ], "X-Sort": [ 1 ], "X-TableName": [ "t_base_teacher" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "获取教职工列表", "parameters": [ { "description": "第几页", "in": "query", "name": "page", "required": true, "type": "integer" }, { "description": "一页显示多少条", "in": "query", "name": "limit", "required": true, "type": "integer" }, { "description": "部门ID", "in": "query", "name": "orgId", "required": true, "type": "string" }, { "description": "教职工姓名", "in": "query", "name": "xm", "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "获取教职工列表", "tags": [ "教师信息" ] } }, "/base/teacher/PageTeacherMultipleBureauInfo": { "get": { "X-EmptyLimit": [ "personId" ], "X-LengthLimit": [ { "personId": "36,36" } ], "X-RemoveSwaggerField": [ "identity_id", "id_int", "xmpy", "cym", "gwzym", "b_use", "state_id", "last_updated_time" ], "X-RoleLimit": [ "1", "3", "4" ], "X-Sort": [ 12 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "根据教职工ID获取该教职工所在多单位列表", "parameters": [ { "description": "教职工ID", "in": "query", "name": "personId", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "根据教职工ID获取该教职工所在多单位列表", "tags": [ "教师信息" ] } }, "/base/teacher/DeleteTeacherInfo": { "post": { "X-EmptyLimit": [ "personIds" ], "X-InterfaceName": [ "DeleteBaseTeacher" ], "X-LengthLimit": [ { "personIds": "36,1800" } ], "X-RoleLimit": [ "1", "2", "3", "4", "5", "6", "7" ], "X-Sort": [ 4 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "删除教职工信息", "parameters": [ { "description": "教职工ID,多个用逗号分隔", "in": "formData", "name": "personIds", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "删除教职工信息", "tags": [ "教师信息" ] } }, "/base/teacher/ExportTeacherExcel": { "get": { "X-EmptyLimit": [ "orgId" ], "X-LengthLimit": [ { "orgId": "36,36" } ], "X-RoleLimit": [ "1", "2", "3", "4", "5", "6", "7" ], "X-Sort": [ 8 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "导出本单位教职工信息到EXCEL", "parameters": [ { "description": "单位ID", "in": "query", "name": "orgId", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "导出本单位教职工信息到EXCEL", "tags": [ "教师信息" ] } }, "/base/teacher/UpdateTeacherInfo": { "post": { "X-EmptyLimit": [ "personId", "xm", "mzm", "zzmmm", "zcm", "bzlbm", "xlm", "xwm" ], "X-IntRangeLimit": [ { "sortId": "1,9999" }, { "sfzjlxm": "1,4" } ], "X-InterfaceName": [ "UpdateBaseTeacher" ], "X-LengthLimit": [ { "personId": "36,36" }, { "xm": "2,20" }, { "xbm": "1,1" }, { "sfzjh": "2,30" }, { "mzm": "2,2" }, { "zzmmm": "2,2" }, { "zcm": "1,1" }, { "bzlbm": "1,1" }, { "xlm": "2,2" }, { "xwm": "1,1" }, { "stageId": "1,1" }, { "subjectId": "2,2" }, { "lxdh": "2,30" } ], "X-RoleLimit": [ "1", "2", "3", "4", "5", "6", "7" ], "X-Sort": [ 5 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "修改教职工信息", "parameters": [ { "description": "单位ID", "in": "formData", "name": "bureauId", "required": true, "type": "string" }, { "description": "教职工ID", "in": "formData", "name": "personId", "required": true, "type": "string" }, { "description": "教职工姓名", "in": "formData", "name": "xm", "required": true, "type": "string" }, { "description": "身份证件类型(字典:sfzjlxm)", "in": "formData", "name": "sfzjlxm", "type": "string" }, { "description": "证件号", "in": "formData", "name": "sfzjh", "type": "string" }, { "description": "性别(字典:xbm)", "in": "formData", "name": "xbm", "required": true, "type": "string" }, { "description": "出生日期", "in": "formData", "name": "csrq", "required": true, "type": "string" }, { "description": "民族(字典:mzm)", "in": "formData", "name": "mzm", "required": true, "type": "string" }, { "description": "政治面貌(字典:zzmmm)", "in": "formData", "name": "zzmmm", "required": true, "type": "string" }, { "description": "职称(字典:zcm)", "in": "formData", "name": "zcm", "required": true, "type": "string" }, { "description": "编制(字典:bzlbm)", "in": "formData", "name": "bzlbm", "required": true, "type": "string" }, { "description": "学历(字典:xlm)", "in": "formData", "name": "xlm", "required": true, "type": "string" }, { "description": "学位(字典:xwm)", "in": "formData", "name": "xwm", "required": true, "type": "string" }, { "description": "任教学段", "in": "formData", "name": "stageId", "required": true, "type": "string" }, { "description": "任教学科", "in": "formData", "name": "subjectId", "required": true, "type": "string" }, { "description": "职务ID,多个用逗号分隔", "in": "formData", "name": "positionIds", "type": "string" }, { "description": "从教年月", "in": "formData", "name": "cjny", "type": "string" }, { "description": "联系电话", "in": "formData", "name": "lxdh", "type": "string" }, { "description": "电子信箱", "in": "formData", "name": "dzxx", "type": "string" }, { "description": "排序号", "in": "formData", "name": "sortId", "type": "integer" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "修改教职工信息", "tags": [ "教师信息" ] } }, "/base/purview/PagePurviewInfoByBusinessCode": { "get": { "X-EmptyLimit": [ "page", "limit", "businessCode" ], "X-IntLimit": [ "page", "limit" ], "X-IntRangeLimit": [ { "page": "1,1000" }, { "limit": "1,1000" } ], "X-InterfaceName": [ "PageBasePurview" ], "X-LengthLimit": [ { "businessCode": "6,6" } ], "X-RemoveSwaggerField": [ "id_int", "purview_type", "menu_icon", "b_use", "last_updated_time" ], "X-RoleLimit": [ "1" ], "X-Sort": [ 5 ], "X-TableName": [ "t_base_purview" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "根据业务系统编码获取权限信息信息", "parameters": [ { "description": "第几页", "in": "query", "name": "page", "required": true, "type": "integer" }, { "description": "一页显示多少条", "in": "query", "name": "limit", "required": true, "type": "integer" }, { "description": "业务系统编码", "in": "query", "name": "businessCode", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "根据业务系统编码获取权限信息信息", "tags": [ "权限" ] } }, "/base/purview/AddPurviewInfo": { "post": { "X-EmptyLimit": [ "purviewName", "businessCode", "purviewType", "menuUrl", "parentId" ], "X-IntLimit": [ "purviewType", "sortId" ], "X-IntRangeLimit": [ { "purviewType": "1,2" }, { "sortId": "1,9999" } ], "X-InterfaceName": [ "AddBasePurview" ], "X-LengthLimit": [ { "purviewName": "1,100" }, { "businessCode": "6,6" }, { "menuUrl": "1,300" }, { "parentId": "36,36" } ], "X-RoleLimit": [ "1" ], "X-Sort": [ 1 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "增加权限信息", "parameters": [ { "description": "权限名称", "in": "formData", "name": "purviewName", "required": true, "type": "string" }, { "description": "业务系统编码", "in": "formData", "name": "businessCode", "required": true, "type": "string" }, { "description": "权限类型 1:菜单 2:按钮", "in": "formData", "name": "purviewType", "required": true, "type": "integer" }, { "description": "菜单的URL 没有填#", "in": "formData", "name": "menuUrl", "required": true, "type": "string" }, { "description": "父节点ID", "in": "formData", "name": "parentId", "required": true, "type": "string" }, { "description": "排序号", "in": "formData", "name": "sortId", "type": "integer" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "增加权限信息", "tags": [ "权限" ] } }, "/base/purview/UpdatePurviewInfo": { "post": { "X-EmptyLimit": [ "purviewId", "purviewName", "businessCode", "purviewType", "menuUrl" ], "X-IntLimit": [ "purviewType", "sortId" ], "X-IntRangeLimit": [ { "purviewType": "1,2" }, { "sortId": "1,9999" } ], "X-InterfaceName": [ "UpdateBasePurview" ], "X-LengthLimit": [ { "purviewId": "36,36" }, { "purviewName": "1,100" }, { "businessCode": "6,6" }, { "menuUrl": "1,300" } ], "X-RoleLimit": [ "1" ], "X-Sort": [ 3 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "修改权限信息", "parameters": [ { "description": "权限ID", "in": "formData", "name": "purviewId", "required": true, "type": "string" }, { "description": "权限名称", "in": "formData", "name": "purviewName", "required": true, "type": "string" }, { "description": "业务系统编码", "in": "formData", "name": "businessCode", "required": true, "type": "string" }, { "description": "权限类型 1:菜单 2:按钮", "in": "formData", "name": "purviewType", "required": true, "type": "integer" }, { "description": "菜单的URL 没有填#", "in": "formData", "name": "menuUrl", "required": true, "type": "string" }, { "description": "排序号", "in": "formData", "name": "sortId", "type": "integer" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "修改权限信息", "tags": [ "权限" ] } }, "/base/purview/DeletePurviewInfo": { "post": { "X-EmptyLimit": [ "purviewIds" ], "X-InterfaceName": [ "DeleteBasePurview" ], "X-LengthLimit": [ { "purviewIds": "36,1800" } ], "X-RoleLimit": [ "1" ], "X-Sort": [ 2 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "删除权限信息", "parameters": [ { "description": "权限ID,如果是多个用逗号分隔", "in": "formData", "name": "purviewIds", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "删除权限信息", "tags": [ "权限" ] } }, "/base/purview/GetPurviewInfoById": { "get": { "X-EmptyLimit": [ "purviewId" ], "X-InterfaceName": [ "GetBasePurview" ], "X-LengthLimit": [ { "purviewId": "36,36" } ], "X-RemoveSwaggerField": [ "id_int", "purview_type", "menu_icon", "b_use", "last_updated_time" ], "X-RoleLimit": [ "1" ], "X-Sort": [ 4 ], "X-TableName": [ "t_base_purview" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "获取权限信息(单条)", "parameters": [ { "description": "权限ID", "in": "query", "name": "purviewId", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "获取权限信息(单条)", "tags": [ "权限" ] } }, "/base/purview/PagePurviewInfoByPersonIdBusinessCode": { "get": { "X-EmptyLimit": [ "page", "limit" ], "X-IntLimit": [ "page", "limit" ], "X-IntRangeLimit": [ { "page": "1,1000" }, { "limit": "1,1000" } ], "X-InterfaceName": [ "PageBasePurview" ], "X-RemoveSwaggerField": [ "id_int", "purview_type", "business_code", "b_use", "last_updated_time" ], "X-RoleLimit": [ "1", "2", "3", "4", "5", "6", "7" ], "X-Sort": [ 6 ], "X-TableName": [ "t_base_purview" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "根据人员ID和业务系统编码获取权限信息信息", "parameters": [ { "description": "第几页", "in": "query", "name": "page", "required": true, "type": "integer" }, { "description": "一页显示多少条", "in": "query", "name": "limit", "required": true, "type": "integer" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "根据人员ID和业务系统编码获取权限信息信息", "tags": [ "权限" ] } }, "/base/class/AddClassInfo": { "post": { "X-EmptyLimit": [ "orgId", "stageId", "schoolingLength", "rxnf", "startBh", "endBh" ], "X-IntRangeLimit": [ { "rxnf": "1990,2100" }, { "schoolingLength": "1,10" }, { "startBh": "1,999" }, { "endBh": "1,999" } ], "X-InterfaceName": [ "AddBaseClass" ], "X-LengthLimit": [ { "orgId": "36,36" }, { "xbm": "1,1" }, { "classAlias": "1,30" } ], "X-RoleLimit": [ "1", "2", "3", "4", "6", "7" ], "X-Sort": [ 3 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "增加班级信息", "parameters": [ { "description": "学校ID", "in": "formData", "name": "orgId", "required": true, "type": "string" }, { "description": "学部ID", "in": "formData", "name": "stageId", "required": true, "type": "integer" }, { "description": "学制", "in": "formData", "name": "schoolingLength", "required": true, "type": "integer" }, { "description": "入学年份", "in": "formData", "name": "rxnf", "required": true, "type": "integer" }, { "description": "开始班号", "in": "formData", "name": "startBh", "type": "integer" }, { "description": "结束班号", "in": "formData", "name": "endBh", "type": "integer" }, { "description": "班级别名(只有单个班级时才有)", "in": "formData", "name": "classAlias", "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "增加班级信息", "tags": [ "班级信息" ] } }, "/base/class/SetClassTeacher": { "post": { "X-EmptyLimit": [ "classId", "teacherId" ], "X-InterfaceName": [ "UpdateBaseClass" ], "X-LengthLimit": [ { "classId": "36,36" }, { "teacherId": "36,36" } ], "X-RoleLimit": [ "1", "2", "3", "4", "6", "7" ], "X-Sort": [ 6 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "设置班主任", "parameters": [ { "description": "班级ID", "in": "formData", "name": "classId", "required": true, "type": "string" }, { "description": "教师ID", "in": "formData", "name": "teacherId", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "设置班主任", "tags": [ "班级信息" ] } }, "/base/class/DeleteClassInfo": { "post": { "X-EmptyLimit": [ "classIds" ], "X-InterfaceName": [ "DeleteBaseClass" ], "X-LengthLimit": [ { "classId": "36,1800" } ], "X-RoleLimit": [ "1", "2", "3", "4", "6", "7" ], "X-Sort": [ 4 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "删除班级信息", "parameters": [ { "description": "班级ID,多个用逗号分隔", "in": "formData", "name": "classIds", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "删除班级信息", "tags": [ "班级信息" ] } }, "/base/class/UpdateClassInfo": { "post": { "X-EmptyLimit": [ "classId", "classAlias" ], "X-InterfaceName": [ "UpdateBaseClass" ], "X-LengthLimit": [ { "classId": "36,36" }, { "classAlias": "1,30" } ], "X-RoleLimit": [ "1", "2", "3", "4", "6", "7" ], "X-Sort": [ 5 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "修改班级信息(只允许修改班级别名)", "parameters": [ { "description": "班级ID", "in": "formData", "name": "classId", "required": true, "type": "string" }, { "description": "班级别名", "in": "formData", "name": "classAlias", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "修改班级信息(只允许修改班级别名)", "tags": [ "班级信息" ] } }, "/base/class/ImportXJCSV": { "post": { "X-Sort": [ 9 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "导入学籍CSV文件", "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "导入学籍CSV文件", "tags": [ "班级信息" ] } }, "/base/class/GetClassInfo": { "get": { "X-EmptyLimit": [ "classId" ], "X-InterfaceName": [ "GetBaseClass" ], "X-LengthLimit": [ { "classId": "36,36" } ], "X-RemoveSwaggerField": [ "id_int", "class_code", "rxjj", "teacher_id", "org_id", "bureau_id", "b_use", "province_code", "city_code", "district_code", "main_school_id", "last_updated_time" ], "X-RoleLimit": [ "1", "2", "3", "4", "6", "7" ], "X-Sort": [ 2 ], "X-TableName": [ "t_base_class" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "获取班级信息", "parameters": [ { "description": "班级ID", "in": "query", "name": "classId", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "获取班级信息", "tags": [ "班级信息" ] } }, "/base/class/GetStageInfo": { "get": { "X-InterfaceName": [ "PageBaseClass" ], "X-LengthLimit": [ { "orgId": "36,36" } ], "X-RemoveSwaggerField": [ "b_use", "sort_id" ], "X-RoleLimit": [ "1", "2", "3", "4", "6", "7" ], "X-Sort": [ 7 ], "X-TableName": [ "t_dm_stage" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "获取学段信息", "parameters": [ { "description": "学校ID", "in": "query", "name": "orgId", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "获取学段信息", "tags": [ "班级信息" ] } }, "/base/class/PageClassInfo": { "get": { "X-EmptyLimit": [ "page", "limit", "orgId", "stageId", "rxnf" ], "X-ExtendSwaggerField": [ { "column_comment": "学生人数", "column_name": "student_count", "sample_data": "41" }, { "column_comment": "班主任", "column_name": "teacher_name", "sample_data": "李老师" } ], "X-IntRangeLimit": [ { "page": "1,1000" }, { "limit": "1,1000" }, { "rxnf": "1990,2100" } ], "X-InterfaceName": [ "PageBaseClass" ], "X-LengthLimit": [ { "orgId": "36,36" }, { "removeClassId": "36,36" } ], "X-RemoveSwaggerField": [ "id_int", "bh", "class_code", "rxnf", "rxjj", "schooling_length", "stage_id", "org_id", "bureau_id", "b_use", "province_code", "city_code", "district_code", "main_school_id", "last_updated_time" ], "X-RoleLimit": [ "1", "2", "3", "4", "6", "7" ], "X-Sort": [ 1 ], "X-TableName": [ "t_base_class" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "获取班级列表", "parameters": [ { "description": "第几页", "in": "query", "name": "page", "required": true, "type": "integer" }, { "description": "一页显示多少条", "in": "query", "name": "limit", "required": true, "type": "integer" }, { "description": "学校ID", "in": "query", "name": "orgId", "required": true, "type": "string" }, { "description": "学部ID", "in": "query", "name": "stageId", "required": true, "type": "integer" }, { "description": "入学年份", "in": "query", "name": "rxnf", "required": true, "type": "integer" }, { "description": "需要滤掉的班级ID", "in": "query", "name": "removeClassId", "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "获取班级列表", "tags": [ "班级信息" ] } }, "/base/class/DownLoadXJCSV": { "get": { "X-Sort": [ 10 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "下载学籍CSV文件", "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "下载学籍CSV文件", "tags": [ "班级信息" ] } }, "/base/class/GetRxnfInfo": { "get": { "X-InterfaceName": [ "PageBaseClass" ], "X-LengthLimit": [ { "orgId": "36,36" } ], "X-RoleLimit": [ "1", "2", "3", "4", "6", "7" ], "X-Sort": [ 8 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "根据学校ID和学部(学段)ID获取入学年份", "parameters": [ { "description": "学校ID", "in": "query", "name": "orgId", "required": true, "type": "string" }, { "description": "学部(学段)ID", "in": "query", "name": "stageId", "required": true, "type": "integer" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "根据学校ID和学部(学段)ID获取入学年份", "tags": [ "班级信息" ] } }, "/base/loginperson/DisableAccountInfo": { "post": { "X-EmptyLimit": [ "personIds" ], "X-LengthLimit": [ { "personIds": "36,1800" } ], "X-RoleLimit": [ "1", "2", "3", "4", "5", "6", "7" ], "X-Sort": [ 9 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "禁用账号信息", "parameters": [ { "description": "一个或多个ID,多个用逗号分隔", "in": "formData", "name": "personIds", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "禁用账号信息", "tags": [ "登录信息" ] } }, "/base/loginperson/RemoveCookie": { "get": { "X-Sort": [ 10 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "移除Cookie", "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "移除Cookie", "tags": [ "登录信息" ] } }, "/base/loginperson/PageAreaManagerInfo": { "get": { "X-EmptyLimit": [ "page", "limit", "areaCode" ], "X-ExtendSwaggerField": [ { "column_comment": "地区名称", "column_name": "area_name", "sample_data": "长春市" } ], "X-IntRangeLimit": [ { "page": "1,1000" }, { "limit": "1,1000" } ], "X-InterfaceName": [ "PageSysLoginperson" ], "X-LengthLimit": [ { "areaCode": "6,6" } ], "X-RemoveSwaggerField": [ "last_updated_time" ], "X-RoleLimit": [ "1", "2", "3" ], "X-Sort": [ 3 ], "X-TableName": [ "t_sys_loginperson" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "获取地区管理员列表(虚拟)", "parameters": [ { "description": "第几页", "in": "query", "name": "page", "required": true, "type": "integer" }, { "description": "一页显示多少条", "in": "query", "name": "limit", "required": true, "type": "integer" }, { "description": "地区码", "in": "query", "name": "areaCode", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "获取地区管理员列表(虚拟)", "tags": [ "登录信息" ] } }, "/base/loginperson/ExportAreaManagerInfoExcel": { "get": { "X-EmptyLimit": [ "areaCode" ], "X-InterfaceName": [ "PageSysLoginperson" ], "X-LengthLimit": [ { "areaCode": "6,6" } ], "X-RoleLimit": [ "1", "2", "3" ], "X-Sort": [ 4 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "导出地区管理员到EXCEL(虚拟)", "parameters": [ { "description": "地区码", "in": "query", "name": "areaCode", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "导出地区管理员到EXCEL(虚拟)", "tags": [ "登录信息" ] } }, "/base/loginperson/EnableAccountInfo": { "post": { "X-EmptyLimit": [ "personIds" ], "X-LengthLimit": [ { "personIds": "36,1800" } ], "X-RoleLimit": [ "1", "2", "3", "4", "5", "6", "7" ], "X-Sort": [ 8 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "启用账号信息", "parameters": [ { "description": "一个或多个ID,多个用逗号分隔", "in": "formData", "name": "personIds", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "启用账号信息", "tags": [ "登录信息" ] } }, "/base/loginperson/UpdateLoginPassWordInfo": { "post": { "X-EmptyLimit": [ "oldPassWord", "newPassWord" ], "X-LengthLimit": [ { "oldPassWord": "6,18" }, { "newPassWord": "6,18" } ], "X-RoleLimit": [ "1", "2", "3", "4", "5", "6", "7" ], "X-Sort": [ 11 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "修改登录密码", "parameters": [ { "description": "原密码", "in": "formData", "name": "oldPassWord", "required": true, "type": "string" }, { "description": "新密码", "in": "formData", "name": "newPassWord", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "修改登录密码", "tags": [ "登录信息" ] } }, "/base/loginperson/GetBindAuthorizationInfo": { "get": { "X-Sort": [ 12 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "获取已绑定的第三方授权", "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "获取已绑定的第三方授权", "tags": [ "登录信息" ] } }, "/base/loginperson/PageBureauManagerInfo": { "get": { "X-EmptyLimit": [ "page", "limit", "areaCode", "orgType" ], "X-ExtendSwaggerField": [ { "column_comment": "单位名称", "column_name": "org_name", "sample_data": "长春市第一中学" } ], "X-IntRangeLimit": [ { "page": "1,1000" }, { "limit": "1,1000" } ], "X-InterfaceName": [ "PageSysLoginperson" ], "X-LengthLimit": [ { "areaCode": "6,6" } ], "X-RoleLimit": [ "1", "2", "3", "4", "7" ], "X-Sort": [ 5 ], "X-TableName": [ "t_sys_loginperson" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "获取单位管理员列表", "parameters": [ { "description": "第几页", "in": "query", "name": "page", "required": true, "type": "integer" }, { "description": "一页显示多少条", "in": "query", "name": "limit", "required": true, "type": "integer" }, { "description": "地区码", "in": "query", "name": "areaCode", "required": true, "type": "string" }, { "description": "单位类型 1:教育局 2:学校 7:教辅单位 -1:全部", "in": "query", "name": "orgType", "required": true, "type": "integer" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "获取单位管理员列表", "tags": [ "登录信息" ] } }, "/base/loginperson/ExportBureauManagerInfoExcel": { "get": { "X-EmptyLimit": [ "areaCode", "orgType" ], "X-LengthLimit": [ { "areaCode": "6,6" } ], "X-RoleLimit": [ "1", "2", "3", "4", "7" ], "X-Sort": [ 6 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "导出单位管理员的EXCEL", "parameters": [ { "description": "地区码", "in": "query", "name": "areaCode", "required": true, "type": "string" }, { "description": "单位类型 1:教育局 2:学校 7:教辅单位 -1:全部", "in": "query", "name": "orgType", "required": true, "type": "integer" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "导出单位管理员的EXCEL", "tags": [ "登录信息" ] } }, "/base/loginperson/ResetManagerPassWord": { "post": { "X-EmptyLimit": [ "ids" ], "X-LengthLimit": [ { "ids": "36,1800" } ], "X-RoleLimit": [ "1", "2", "3", "4", "5", "6", "7" ], "X-Sort": [ 7 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "重置管理员密码", "parameters": [ { "description": "一个或多个ID,多个用逗号分隔", "in": "formData", "name": "ids", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "重置管理员密码", "tags": [ "登录信息" ] } }, "/base/loginperson/UnbindAuthorizationInfo": { "post": { "X-Sort": [ 13 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "解除绑定第三方授权", "parameters": [ { "description": "第三方授权类型名 qq:QQ wx:微信", "in": "formData", "name": "typeName", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "解除绑定第三方授权", "tags": [ "登录信息" ] } }, "/base/organization/UpdateSchoolInfo": { "post": { "X-EmptyLimit": [ "orgId", "orgCode", "orgName", "isBranchSchool", "xxbxlxm", "szdcxlxm", "xxjbzm" ], "X-IntRangeLimit": [ { "sortId": "1,9999" } ], "X-InterfaceName": [ "UpdateBaseOrganization" ], "X-LengthLimit": [ { "orgId": "36,36" }, { "areaCode": "6,6" }, { "orgCode": "2,20" }, { "orgName": "1,30" }, { "fddbr": "2,30" }, { "fddbrdh": "2,30" }, { "address": "2,100" } ], "X-RoleLimit": [ "1", "2", "3", "4", "7" ], "X-Sort": [ 15 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "修改学校信息", "parameters": [ { "description": "行政区划编码", "in": "formData", "name": "areaCode", "required": true, "type": "string" }, { "description": "学校ID", "in": "formData", "name": "orgId", "required": true, "type": "string" }, { "description": "学校编码", "in": "formData", "name": "orgCode", "required": true, "type": "string" }, { "description": "学校名称", "in": "formData", "name": "orgName", "required": true, "type": "string" }, { "description": "是否为分校 -1:非分校 1:是分校", "in": "formData", "name": "isBranchSchool", "required": true, "type": "integer" }, { "description": "主校ID(是分校时才传)", "in": "formData", "name": "mainSchoolId", "type": "string" }, { "description": "上级管理单位行政区划编码", "in": "formData", "name": "managerAreaCode", "required": true, "type": "string" }, { "description": "学校办学类型(字典:xxbxlxm)", "in": "formData", "name": "xxbxlxm", "required": true, "type": "string" }, { "description": "学校城乡类型(字典:szdcxlxm)", "in": "formData", "name": "szdcxlxm", "required": true, "type": "string" }, { "description": "学校举办者(字典:xxjbzm)", "in": "formData", "name": "xxjbzm", "required": true, "type": "string" }, { "description": "附设班办学类型ID,多个用逗号分隔", "in": "formData", "name": "fsbIds", "type": "string" }, { "description": "学校法定代表人", "in": "formData", "name": "fddbr", "type": "string" }, { "description": "学校法定代表人电话", "in": "formData", "name": "fddbrdh", "type": "string" }, { "description": "学校地址", "in": "formData", "name": "address", "type": "string" }, { "description": "联系电话", "in": "formData", "name": "lxdh", "type": "string" }, { "description": "排序号", "in": "formData", "name": "sortId", "type": "integer" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "修改学校信息", "tags": [ "组织机构" ] } }, "/base/organization/GetEduInfoById": { "get": { "X-EmptyLimit": [ "orgId" ], "X-InterfaceName": [ "GetBaseOrganization" ], "X-LengthLimit": [ { "orgId": "36,36" } ], "X-RemoveSwaggerField": [ "id_int", "parent_id", "bureau_id", "org_type", "edu_assist_type", "main_school_type", "main_school_id", "manage_org_id", "xxbbm", "xxbxlxm", "szdcxlxm", "xxjbzm", "fzr", "org_lng", "org_lat", "b_use", "province_code", "city_code", "district_code", "last_updated_time" ], "X-RoleLimit": [ "1" ], "X-Sort": [ 3 ], "X-TableName": [ "t_base_organization" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "根据教育局ID获取教育局信息", "parameters": [ { "description": "教育局ID", "in": "query", "name": "orgId", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "根据教育局ID获取教育局信息", "tags": [ "组织机构" ] } }, "/base/organization/DeleteOrgInfo": { "post": { "X-EmptyLimit": [ "orgId" ], "X-InterfaceName": [ "DeleteBaseOrganization" ], "X-LengthLimit": [ { "orgId": "36,36" } ], "X-RoleLimit": [ "1", "2", "3", "4", "5", "6", "7" ], "X-Sort": [ 21 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "删除部门信息", "parameters": [ { "description": "部门ID", "in": "formData", "name": "orgId", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "删除部门信息", "tags": [ "组织机构" ] } }, "/base/organization/PageSchoolInfo": { "get": { "X-EmptyLimit": [ "page", "limit", "areaCode" ], "X-ExtendSwaggerField": [ { "column_comment": "学校办学类型名称", "column_name": "xxbxlxm_name", "sample_data": "小学" } ], "X-IntRangeLimit": [ { "page": "1,1000" }, { "limit": "1,1000" } ], "X-InterfaceName": [ "PageBaseOrganization" ], "X-LengthLimit": [ { "areaCode": "6,6" }, { "orgName": "1,30" } ], "X-RemoveSwaggerField": [ "id_int", "parent_id", "bureau_id", "org_type", "edu_assist_type", "main_school_id", "manage_org_id", "xxbbm", "szdcxlxm", "xxjbzm", "fzr", "fddbr", "fddbrdh", "address", "lxdh", "org_lng", "org_lat", "sort_id", "b_use", "province_code", "city_code", "district_code", "last_updated_time" ], "X-RoleLimit": [ "1", "2", "3", "4", "7" ], "X-Sort": [ 12 ], "X-TableName": [ "t_base_organization" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "获取学校列表", "parameters": [ { "description": "第几页", "in": "query", "name": "page", "required": true, "type": "integer" }, { "description": "一页显示多少条", "in": "query", "name": "limit", "required": true, "type": "integer" }, { "description": "行政区划编码", "in": "query", "name": "areaCode", "required": true, "type": "string" }, { "description": "学校办学类型 -1:全部", "in": "query", "name": "xxbxlxm", "required": true, "type": "string" }, { "description": "学校名称", "in": "query", "name": "orgName", "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "获取学校列表", "tags": [ "组织机构" ] } }, "/base/organization/EnableEdu": { "post": { "X-EmptyLimit": [ "orgId", "orgCode", "orgName" ], "X-IntRangeLimit": [ { "sortId": "1,9999" } ], "X-InterfaceName": [ "UpdateBaseOrganization" ], "X-LengthLimit": [ { "orgId": "36,36" }, { "orgCode": "2,20" }, { "orgName": "1,30" }, { "fddbr": "2,30" }, { "fddbrdh": "2,30" }, { "address": "2,100" }, { "lxdh": "2,30" } ], "X-RoleLimit": [ "1" ], "X-Sort": [ 4 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "启用教育局", "parameters": [ { "description": "教育局ID", "in": "formData", "name": "orgId", "required": true, "type": "string" }, { "description": "教育局编码", "in": "formData", "name": "orgCode", "required": true, "type": "string" }, { "description": "教育局名称", "in": "formData", "name": "orgName", "required": true, "type": "string" }, { "description": "教育局法定代表人", "in": "formData", "name": "fddbr", "type": "string" }, { "description": "教育局法定代表人电话", "in": "formData", "name": "fddbrdh", "type": "string" }, { "description": "教育局地址", "in": "formData", "name": "address", "type": "string" }, { "description": "联系电话", "in": "formData", "name": "lxdh", "type": "string" }, { "description": "排序号", "in": "formData", "name": "sortId", "type": "integer" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "启用教育局", "tags": [ "组织机构" ] } }, "/base/organization/PageDisableEduInfo": { "get": { "X-EmptyLimit": [ "page", "limit", "areaCode" ], "X-IntRangeLimit": [ { "page": "1,1000" }, { "limit": "1,1000" } ], "X-InterfaceName": [ "PageBaseOrganization" ], "X-LengthLimit": [ { "areaCode": "6,6" }, { "orgName": "1,50" } ], "X-RemoveSwaggerField": [ "id_int", "parent_id", "bureau_id", "org_type", "edu_assist_type", "main_school_type", "main_school_id", "manage_org_id", "xxbbm", "xxbxlxm", "szdcxlxm", "xxjbzm", "fzr", "fddbr", "fddbrdh", "address", "lxdh", "org_lng", "org_lat", "sort_id", "b_use", "province_code", "city_code", "district_code", "last_updated_time" ], "X-RoleLimit": [ "1" ], "X-Sort": [ 2 ], "X-TableName": [ "t_base_organization" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "获取未启用的教育局列表", "parameters": [ { "description": "第几页", "in": "query", "name": "page", "required": true, "type": "integer" }, { "description": "一页显示多少条", "in": "query", "name": "limit", "required": true, "type": "integer" }, { "description": "行政区划编码", "in": "query", "name": "areaCode", "required": true, "type": "string" }, { "description": "教育局名称", "in": "query", "name": "orgName", "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "获取未启用的教育局列表", "tags": [ "组织机构" ] } }, "/base/organization/DisableEdu": { "post": { "X-EmptyLimit": [ "orgId" ], "X-InterfaceName": [ "UpdateBaseOrganization" ], "X-LengthLimit": [ { "orgId": "36,36" } ], "X-RoleLimit": [ "1" ], "X-Sort": [ 5 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "禁用教育局", "parameters": [ { "description": "教育局ID", "in": "formData", "name": "orgId", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "禁用教育局", "tags": [ "组织机构" ] } }, "/base/organization/GetOrgTreeInfo": { "get": { "X-EmptyLimit": [ "orgId" ], "X-LengthLimit": [ { "orgId": "36,36" } ], "X-RemoveSwaggerField": [ "id_int", "bureau_id", "org_type", "edu_assist_type", "main_school_type", "main_school_id", "manage_org_id", "xxbbm", "xxbxlxm", "szdcxlxm", "xxjbzm", "fzr", "fddbr", "fddbrdh", "address", "lxdh", "org_lng", "org_lat", "b_use", "province_code", "city_code", "district_code", "area_code", "last_updated_time" ], "X-RoleLimit": [ "1", "2", "3", "4", "5", "6", "7" ], "X-Sort": [ 22 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "根据单位ID获取部门树", "parameters": [ { "description": "单位ID", "in": "query", "name": "orgId", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "根据单位ID获取部门树", "tags": [ "组织机构" ] } }, "/base/organization/DeleteEduAssistInfo": { "post": { "X-EmptyLimit": [ "orgIds" ], "X-InterfaceName": [ "DeleteBaseOrganization" ], "X-LengthLimit": [ { "orgIds": "36,1800" } ], "X-RoleLimit": [ "1", "2", "3", "4" ], "X-Sort": [ 11 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "删除教辅单位信息", "parameters": [ { "description": "教辅单位ID,如果是多个用逗号分隔", "in": "formData", "name": "orgIds", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "删除教辅单位信息", "tags": [ "组织机构" ] } }, "/base/organization/GetOrgInfo": { "get": { "X-EmptyLimit": [ "orgId" ], "X-ExtendSwaggerField": [ { "column_comment": "部门领导ID", "column_name": "org_manager_id", "sample_data": "00B15A6D-4EE1-481C-88F4-054A7BE9F60F" }, { "column_comment": "部门领导名称", "column_name": "org_manager_name", "sample_data": "李老师" } ], "X-InterfaceName": [ "GetBaseOrganization" ], "X-LengthLimit": [ { "orgId": "36,36" } ], "X-RemoveSwaggerField": [ "id_int", "bureau_id", "org_type", "edu_assist_type", "main_school_type", "main_school_id", "manage_org_id", "xxbbm", "xxbxlxm", "szdcxlxm", "xxjbzm", "fzr", "fddbr", "fddbrdh", "address", "lxdh", "org_lng", "org_lat", "b_use", "province_code", "city_code", "district_code", "area_code", "last_updated_time" ], "X-RoleLimit": [ "1", "2", "3", "4", "5", "6", "7" ], "X-Sort": [ 18 ], "X-TableName": [ "t_base_organization" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "获取部门信息", "parameters": [ { "description": "部门ID", "in": "query", "name": "orgId", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "获取部门信息", "tags": [ "组织机构" ] } }, "/base/organization/PageMainSchoolInfo": { "get": { "X-EmptyLimit": [ "page", "limit", "areaCode" ], "X-ExtendSwaggerField": [ { "column_comment": "学校办学类型名称", "column_name": "xxbxlxm_name", "sample_data": "小学" } ], "X-IntRangeLimit": [ { "page": "1,1000" }, { "limit": "1,1000" } ], "X-InterfaceName": [ "PageBaseOrganization" ], "X-LengthLimit": [ { "areaCode": "6,6" } ], "X-RemoveSwaggerField": [ "id_int", "parent_id", "bureau_id", "org_type", "edu_assist_type", "main_school_id", "manage_org_id", "xxbbm", "szdcxlxm", "xxjbzm", "fzr", "fddbr", "fddbrdh", "address", "lxdh", "org_lng", "org_lat", "sort_id", "b_use", "province_code", "city_code", "district_code", "last_updated_time" ], "X-RoleLimit": [ "1", "2", "3", "4", "7" ], "X-Sort": [ 12 ], "X-TableName": [ "t_base_organization" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "获取主校列表", "parameters": [ { "description": "第几页", "in": "query", "name": "page", "required": true, "type": "integer" }, { "description": "一页显示多少条", "in": "query", "name": "limit", "required": true, "type": "integer" }, { "description": "行政区划编码", "in": "query", "name": "areaCode", "required": true, "type": "string" }, { "description": "学校ID,增加学校时无需传,修改学校时需要传被修改学校的ID", "in": "query", "name": "orgId", "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "获取主校列表", "tags": [ "组织机构" ] } }, "/base/organization/DeleteSchoolInfo": { "post": { "X-EmptyLimit": [ "orgIds" ], "X-InterfaceName": [ "DeleteBaseOrganization" ], "X-LengthLimit": [ { "orgIds": "36,1800" } ], "X-RoleLimit": [ "1", "2", "3", "4", "7" ], "X-Sort": [ 16 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "删除学校信息", "parameters": [ { "description": "学校ID,如果是多个用逗号分隔", "in": "formData", "name": "orgIds", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "删除学校信息", "tags": [ "组织机构" ] } }, "/base/organization/PageOrgInfo": { "get": { "X-EmptyLimit": [ "page", "limit", "bureauId" ], "X-ExtendSwaggerField": [ { "column_comment": "部门领导", "column_name": "org_manager_name", "sample_data": "李老师" } ], "X-IntRangeLimit": [ { "page": "1,1000" }, { "limit": "1,1000" } ], "X-InterfaceName": [ "PageBaseOrganization" ], "X-LengthLimit": [ { "orgId": "36,36" } ], "X-RemoveSwaggerField": [ "id_int", "bureau_id", "org_type", "edu_assist_type", "main_school_type", "main_school_id", "manage_org_id", "xxbbm", "xxbxlxm", "szdcxlxm", "xxjbzm", "fzr", "fddbr", "fddbrdh", "address", "lxdh", "org_lng", "org_lat", "sort_id", "b_use", "province_code", "city_code", "district_code", "area_code", "last_updated_time" ], "X-RoleLimit": [ "1", "2", "3", "4", "5", "6", "7" ], "X-Sort": [ 17 ], "X-TableName": [ "t_base_organization" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "获取部门列表", "parameters": [ { "description": "第几页", "in": "query", "name": "page", "required": true, "type": "integer" }, { "description": "一页显示多少条", "in": "query", "name": "limit", "required": true, "type": "integer" }, { "description": "单位ID", "in": "query", "name": "orgId", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "获取部门列表", "tags": [ "组织机构" ] } }, "/base/organization/PageEnableEduInfo": { "get": { "X-EmptyLimit": [ "page", "limit", "areaCode" ], "X-ExtendSwaggerField": [ { "column_comment": "登录账号", "column_name": "login_name", "sample_data": "sys001" }, { "column_comment": "初始密码", "column_name": "login_pwd", "sample_data": "741369" } ], "X-IntRangeLimit": [ { "page": "1,1000" }, { "limit": "1,1000" } ], "X-LengthLimit": [ { "areaCode": "6,6" }, { "orgName": "1,30" } ], "X-RemoveSwaggerField": [ "id_int", "parent_id", "bureau_id", "org_type", "edu_assist_type", "main_school_type", "main_school_id", "manage_org_id", "xxbbm", "xxbxlxm", "szdcxlxm", "xxjbzm", "fzr", "fddbr", "fddbrdh", "address", "lxdh", "org_lng", "org_lat", "sort_id", "b_use", "province_code", "city_code", "district_code", "last_updated_time" ], "X-RoleLimit": [ "1", "3", "4" ], "X-Sort": [ 1 ], "X-TableName": [ "t_base_organization" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "获取已启用的教育局列表", "parameters": [ { "description": "第几页", "in": "query", "name": "page", "required": true, "type": "integer" }, { "description": "一页显示多少条", "in": "query", "name": "limit", "required": true, "type": "integer" }, { "description": "行政区划编码", "in": "query", "name": "areaCode", "required": true, "type": "string" }, { "description": "教育局名称", "in": "query", "name": "orgName", "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "获取已启用的教育局列表", "tags": [ "组织机构" ] } }, "/base/organization/AddEduAssistInfo": { "post": { "X-EmptyLimit": [ "areaCode", "orgCode", "orgName" ], "X-IntRangeLimit": [ { "sortId": "1,9999" } ], "X-InterfaceName": [ "AddBaseOrganization" ], "X-LengthLimit": [ { "areaCode": "6,6" }, { "orgCode": "2,20" }, { "orgName": "1,30" }, { "fddbr": "2,30" }, { "fddbrdh": "2,30" }, { "address": "2,100" }, { "lxdh": "2,30" } ], "X-RoleLimit": [ "1", "2", "3", "4" ], "X-Sort": [ 9 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "增加教辅单位信息", "parameters": [ { "description": "行政区划编码", "in": "formData", "name": "areaCode", "required": true, "type": "string" }, { "description": "教辅单位编码", "in": "formData", "name": "orgCode", "required": true, "type": "string" }, { "description": "教辅单位名称", "in": "formData", "name": "orgName", "required": true, "type": "string" }, { "description": "教辅单位法定代表人", "in": "formData", "name": "fddbr", "type": "string" }, { "description": "教辅单位法定代表人电话", "in": "formData", "name": "fddbrdh", "type": "string" }, { "description": "教辅单位地址", "in": "formData", "name": "address", "type": "string" }, { "description": "联系电话", "in": "formData", "name": "lxdh", "type": "string" }, { "description": "排序号", "in": "formData", "name": "sortId", "type": "integer" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "增加教辅单位信息", "tags": [ "组织机构" ] } }, "/base/organization/GetEduAssistInfoById": { "get": { "X-EmptyLimit": [ "orgId" ], "X-InterfaceName": [ "GetBaseOrganization" ], "X-LengthLimit": [ { "orgId": "36,36" } ], "X-RemoveSwaggerField": [ "id_int", "parent_id", "bureau_id", "org_type", "edu_assist_type", "main_school_type", "main_school_id", "manage_org_id", "xxbbm", "xxbxlxm", "szdcxlxm", "xxjbzm", "fzr", "org_lng", "org_lat", "b_use", "province_code", "city_code", "district_code", "last_updated_time" ], "X-RoleLimit": [ "1", "2", "3", "4" ], "X-Sort": [ 8 ], "X-TableName": [ "t_base_organization" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "根据教辅单位ID获取教辅单位信息", "parameters": [ { "description": "教辅单位ID", "in": "query", "name": "orgId", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "根据教辅单位ID获取教辅单位信息", "tags": [ "组织机构" ] } }, "/base/organization/GetSchoolInfoById": { "get": { "X-EmptyLimit": [ "orgId" ], "X-InterfaceName": [ "GetBaseOrganization" ], "X-LengthLimit": [ { "orgId": "36,36" } ], "X-RemoveSwaggerField": [ "id_int", "parent_id", "bureau_id", "org_type", "edu_assist_type", "org_lng", "org_lat", "b_use", "province_code", "city_code", "district_code", "last_updated_time" ], "X-RoleLimit": [ "1", "2", "3", "4", "7" ], "X-Sort": [ 13 ], "X-TableName": [ "t_base_organization" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "根据学校ID获取学校信息", "parameters": [ { "description": "学校ID", "in": "query", "name": "orgId", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "根据学校ID获取学校信息", "tags": [ "组织机构" ] } }, "/base/organization/AddOrgInfo": { "post": { "X-EmptyLimit": [ "orgId", "orgCode", "orgName" ], "X-IntRangeLimit": [ { "sortId": "1,9999" } ], "X-InterfaceName": [ "AddBaseOrganization" ], "X-LengthLimit": [ { "orgId": "36,36" }, { "orgCode": "2,20" }, { "orgName": "1,30" }, { "parentId": "36,36" }, { "orgManagerIds": "36,1800" } ], "X-RoleLimit": [ "1", "2", "3", "4", "5", "6", "7" ], "X-Sort": [ 19 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "增加部门信息", "parameters": [ { "description": "单位ID", "in": "formData", "name": "orgId", "required": true, "type": "string" }, { "description": "部门编码", "in": "formData", "name": "orgCode", "required": true, "type": "string" }, { "description": "部门名称", "in": "formData", "name": "orgName", "required": true, "type": "string" }, { "description": "上级部门ID", "in": "formData", "name": "parentId", "required": true, "type": "string" }, { "description": "排序号", "in": "formData", "name": "sortId", "type": "integer" }, { "description": "部门领导的人员ID", "in": "formData", "name": "orgManagerIds", "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "增加部门信息", "tags": [ "组织机构" ] } }, "/base/organization/UpdateOrgInfo": { "post": { "X-EmptyLimit": [ "orgId", "orgCode", "orgName" ], "X-IntRangeLimit": [ { "sortId": "1,9999" } ], "X-InterfaceName": [ "UpdateBaseOrganization" ], "X-LengthLimit": [ { "orgId": "36,36" }, { "orgCode": "2,20" }, { "orgName": "1,30" }, { "orgManagerIds": "36,1800" } ], "X-RoleLimit": [ "1", "2", "3", "4", "5", "6", "7" ], "X-Sort": [ 20 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "修改部门信息", "parameters": [ { "description": "部门ID", "in": "formData", "name": "orgId", "required": true, "type": "string" }, { "description": "部门编码", "in": "formData", "name": "orgCode", "required": true, "type": "string" }, { "description": "部门名称", "in": "formData", "name": "orgName", "required": true, "type": "string" }, { "description": "排序号", "in": "formData", "name": "sortId", "type": "integer" }, { "description": "部门领导的人员ID", "in": "formData", "name": "orgManagerIds", "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "修改部门信息", "tags": [ "组织机构" ] } }, "/base/organization/AddSchoolInfo": { "post": { "X-EmptyLimit": [ "areaCode", "orgCode", "orgName" ], "X-IntRangeLimit": [ { "sortId": "1,9999" } ], "X-InterfaceName": [ "AddBaseOrganization" ], "X-LengthLimit": [ { "areaCode": "6,6" }, { "orgCode": "2,20" }, { "orgName": "1,30" }, { "fddbr": "2,30" }, { "fddbrdh": "2,30" }, { "address": "2,100" } ], "X-RoleLimit": [ "1", "2", "3", "4", "7" ], "X-Sort": [ 14 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "增加学校信息", "parameters": [ { "description": "行政区划编码", "in": "formData", "name": "areaCode", "required": true, "type": "string" }, { "description": "学校编码", "in": "formData", "name": "orgCode", "required": true, "type": "string" }, { "description": "学校名称", "in": "formData", "name": "orgName", "required": true, "type": "string" }, { "description": "是否为分校 -1:非分校 1:是分校", "in": "formData", "name": "isBranchSchool", "required": true, "type": "integer" }, { "description": "主校ID(是分校时才传)", "in": "formData", "name": "mainSchoolId", "type": "string" }, { "description": "上级管理单位行政区划编码", "in": "formData", "name": "managerAreaCode", "required": true, "type": "string" }, { "description": "学校办学类型(字典:xxbxlxm)", "in": "formData", "name": "xxbxlxm", "required": true, "type": "string" }, { "description": "学校城乡类型(字典:szdcxlxm)", "in": "formData", "name": "szdcxlxm", "required": true, "type": "string" }, { "description": "学校举办者(字典:xxjbzm)", "in": "formData", "name": "xxjbzm", "required": true, "type": "string" }, { "description": "附设班办学类型ID,多个用逗号分隔", "in": "formData", "name": "fsbIds", "type": "string" }, { "description": "学校法定代表人", "in": "formData", "name": "fddbr", "type": "string" }, { "description": "学校法定代表人电话", "in": "formData", "name": "fddbrdh", "type": "string" }, { "description": "学校地址", "in": "formData", "name": "address", "type": "string" }, { "description": "联系电话", "in": "formData", "name": "lxdh", "type": "string" }, { "description": "排序号", "in": "formData", "name": "sortId", "type": "integer" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "增加学校信息", "tags": [ "组织机构" ] } }, "/base/organization/UpdateEduAssistInfo": { "post": { "X-EmptyLimit": [ "orgId", "orgCode", "orgName" ], "X-IntRangeLimit": [ { "sortId": "1,9999" } ], "X-InterfaceName": [ "UpdateBaseOrganization" ], "X-LengthLimit": [ { "orgId": "36,36" }, { "areaCode": "6,6" }, { "orgCode": "2,20" }, { "orgName": "1,30" }, { "fddbr": "2,30" }, { "fddbrdh": "2,30" }, { "address": "2,100" } ], "X-RoleLimit": [ "1", "2", "3", "4" ], "X-Sort": [ 10 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "修改教辅单位信息", "parameters": [ { "description": "教辅单位ID", "in": "formData", "name": "orgId", "required": true, "type": "string" }, { "description": "教辅单位编码", "in": "formData", "name": "orgCode", "required": true, "type": "string" }, { "description": "教辅单位名称", "in": "formData", "name": "orgName", "required": true, "type": "string" }, { "description": "教辅单位法定代表人", "in": "formData", "name": "fddbr", "type": "string" }, { "description": "教辅单位法定代表人电话", "in": "formData", "name": "fddbrdh", "type": "string" }, { "description": "教辅单位地址", "in": "formData", "name": "address", "type": "string" }, { "description": "联系电话", "in": "formData", "name": "lxdh", "type": "string" }, { "description": "排序号", "in": "formData", "name": "sortId", "type": "integer" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "修改教辅单位信息", "tags": [ "组织机构" ] } }, "/base/organization/ListOrgByOrgKeyWord": { "get": { "X-EmptyLimit": [ "keyWord" ], "X-LengthLimit": [ { "keyWord": "2,30" } ], "X-RemoveSwaggerField": [ "id_int" ], "X-RoleLimit": [ "1", "3", "4" ], "X-Sort": [ 23 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "根据单位名称的关键字和管理员的人员ID查询单位列表", "parameters": [ { "description": "单位名称关键字", "in": "query", "name": "keyWord", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "根据单位名称的关键字和管理员的人员ID查询单位列表", "tags": [ "组织机构" ] } }, "/base/organization/ListEduByCityCodeInfo": { "get": { "X-EmptyLimit": [ "cityCode" ], "X-LengthLimit": [ { "cityCode": "6,6" } ], "X-RoleLimit": [ "1", "3", "4" ], "X-Sort": [ 24 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "根据市的行政区划码获取教育局列表", "parameters": [ { "description": "市的行政区划码", "in": "query", "name": "cityCode", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "根据市的行政区划码获取教育局列表", "tags": [ "组织机构" ] } }, "/base/organization/UpdateEduInfo": { "post": { "X-EmptyLimit": [ "orgId", "orgCode", "orgName" ], "X-IntRangeLimit": [ { "sortId": "1,9999" } ], "X-InterfaceName": [ "UpdateBaseOrganization" ], "X-LengthLimit": [ { "orgId": "36,36" }, { "orgCode": "2,20" }, { "orgName": "1,30" }, { "fddbr": "2,30" }, { "fddbrdh": "2,30" }, { "address": "2,100" }, { "lxdh": "2,30" } ], "X-RoleLimit": [ "1" ], "X-Sort": [ 6 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "修改教育局信息", "parameters": [ { "description": "教育局ID", "in": "formData", "name": "orgId", "required": true, "type": "string" }, { "description": "教育局编码", "in": "formData", "name": "orgCode", "required": true, "type": "string" }, { "description": "教育局名称", "in": "formData", "name": "orgName", "required": true, "type": "string" }, { "description": "教育局法定代表人", "in": "formData", "name": "fddbr", "type": "string" }, { "description": "教育局法定代表人电话", "in": "formData", "name": "fddbrdh", "type": "string" }, { "description": "教育局地址", "in": "formData", "name": "address", "type": "string" }, { "description": "联系电话", "in": "formData", "name": "lxdh", "type": "string" }, { "description": "排序号", "in": "formData", "name": "sortId", "type": "integer" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "修改教育局信息", "tags": [ "组织机构" ] } }, "/base/organization/PageEduAssistInfo": { "get": { "X-EmptyLimit": [ "page", "limit", "areaCode" ], "X-IntRangeLimit": [ { "page": "1,1000" }, { "limit": "1,1000" } ], "X-LengthLimit": [ { "areaCode": "6,6" }, { "orgName": "1,30" } ], "X-RemoveSwaggerField": [ "id_int", "parent_id", "bureau_id", "org_type", "edu_assist_type", "main_school_type", "main_school_id", "manage_org_id", "xxbbm", "xxbxlxm", "szdcxlxm", "xxjbzm", "fzr", "fddbr", "fddbrdh", "address", "lxdh", "org_lng", "org_lat", "sort_id", "b_use", "province_code", "city_code", "district_code", "last_updated_time" ], "X-RoleLimit": [ "1", "2", "3", "4" ], "X-Sort": [ 7 ], "X-TableName": [ "t_base_organization" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "获取教辅单位列表", "parameters": [ { "description": "第几页", "in": "query", "name": "page", "required": true, "type": "integer" }, { "description": "一页显示多少条", "in": "query", "name": "limit", "required": true, "type": "integer" }, { "description": "行政区划编码", "in": "query", "name": "areaCode", "required": true, "type": "string" }, { "description": "教辅单位名称", "in": "query", "name": "orgName", "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "获取教辅单位列表", "tags": [ "组织机构" ] } }, "/base/position/GetPositionInfoById": { "get": { "X-EmptyLimit": [ "id" ], "X-LengthLimit": [ { "id": "36,36" } ], "X-RemoveSwaggerField": [ "id_int", "b_use", "last_updated_time" ], "X-RoleLimit": [ "1" ], "X-Sort": [ 4 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "获取职务信息(单条)", "parameters": [ { "description": "职务ID", "in": "query", "name": "id", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "获取职务信息(单条)", "tags": [ "职务" ] } }, "/base/position/TreePositionInfo": { "get": { "X-RemoveSwaggerField": [ "id_int", "b_use", "last_updated_time", "postion_flag" ], "X-RoleLimit": [ "1" ], "X-Sort": [ 5 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "获取职务所有的树形结构信息", "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "获取职务所有的树形结构信息", "tags": [ "职务" ] } }, "/base/position/ListPositionByBureauId": { "get": { "X-EmptyLimit": [ "bureauId" ], "X-LengthLimit": [ { "bureauId": "36,36" } ], "X-RoleLimit": [ "1", "3", "4" ], "X-Sort": [ 6 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "根据单位ID获取职务列表信息", "parameters": [ { "description": "单位ID", "in": "query", "name": "bureauId", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "根据单位ID获取职务列表信息", "tags": [ "职务" ] } }, "/base/position/DeletePositionInfo": { "post": { "X-EmptyLimit": [ "id" ], "X-LengthLimit": [ { "id": "36,36" } ], "X-RoleLimit": [ "1" ], "X-Sort": [ 2 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "删除职务信息", "parameters": [ { "description": "职务ID", "in": "formData", "name": "id", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "删除职务信息", "tags": [ "职务" ] } }, "/base/position/AddPositionInfo": { "post": { "X-EmptyLimit": [ "nodeName", "parentId", "areaLevel", "orgType", "xxbxlxm" ], "X-IntLimit": [ "areaLevel", "orgType", "sortId" ], "X-IntRangeLimit": [ { "sortId": "1,9999" } ], "X-LengthLimit": [ { "parentId": "36,36" }, { "nodeName": "2,30" } ], "X-RoleLimit": [ "1" ], "X-Sort": [ 1 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "增加职务信息", "parameters": [ { "description": "职务名称", "in": "formData", "name": "nodeName", "required": true, "type": "string" }, { "description": "上级节点ID", "in": "formData", "name": "parentId", "required": true, "type": "string" }, { "description": "区域级别,传上一级节点的area_level", "in": "formData", "name": "areaLevel", "required": true, "type": "integer" }, { "description": "单位类型,传上一级节点的org_type", "in": "formData", "name": "orgType", "required": true, "type": "integer" }, { "description": "学校办学类型,传上一级节点的xxbxlxm", "in": "formData", "name": "xxbxlxm", "required": true, "type": "string" }, { "description": "排序号", "in": "formData", "name": "sortId", "type": "integer" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "增加职务信息", "tags": [ "职务" ] } }, "/base/position/UpdatePositionInfo": { "post": { "X-EmptyLimit": [ "id", "nodeName" ], "X-IntLimit": [ "areaLevel", "orgType", "sortId" ], "X-IntRangeLimit": [ { "sortId": "1,9999" } ], "X-LengthLimit": [ { "id": "36,36" }, { "nodeName": "2,30" } ], "X-RoleLimit": [ "1" ], "X-Sort": [ 3 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "修改职务信息", "parameters": [ { "description": "职务ID", "in": "formData", "name": "id", "required": true, "type": "string" }, { "description": "职务名称", "in": "formData", "name": "nodeName", "required": true, "type": "string" }, { "description": "排序号", "in": "formData", "name": "sortId", "type": "integer" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "修改职务信息", "tags": [ "职务" ] } }, "/base/role/SetBaseRoleMenuCorrInfo": { "post": { "X-EmptyLimit": [ "roleId", "menuIds" ], "X-LengthLimit": [ { "roleId": "36,36" }, { "menuIds": "36,1800" } ], "X-RoleLimit": [ "1" ], "X-Sort": [ 2 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "删除菜单信息", "parameters": [ { "description": "角色ID", "in": "formData", "name": "roleId", "required": true, "type": "string" }, { "description": "菜单ID,多个用逗号分隔", "in": "formData", "name": "menuIds", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "删除菜单信息", "tags": [ "菜单信息" ] } }, "/base/menu/AddMenuInfo": { "post": { "X-EmptyLimit": [ "menuName", "menuCode", "menuUrl", "menuIcon" ], "X-LengthLimit": [ { "menuName": "2,50" }, { "menuCode": "2,20" }, { "menuUrl": "1,500" } ], "X-RoleLimit": [ "1" ], "X-Sort": [ 3 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "增加菜单信息", "parameters": [ { "description": "菜单名称", "in": "formData", "name": "menuName", "required": true, "type": "string" }, { "description": "菜单编码", "in": "formData", "name": "menuCode", "required": true, "type": "string" }, { "description": "菜单的URL", "in": "formData", "name": "menuUrl", "required": true, "type": "string" }, { "description": "菜单图标", "in": "formData", "name": "menuIcon", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "增加菜单信息", "tags": [ "菜单信息" ] } }, "/base/menu/UpdateMenuInfo": { "post": { "X-EmptyLimit": [ "menuId", "menuName", "menuCode", "menuUrl", "menuIcon" ], "X-LengthLimit": [ { "menuId": "36,36" }, { "menuName": "36,36" }, { "menuName": "2,50" }, { "menuCode": "2,20" }, { "menuUrl": "1,500" } ], "X-RoleLimit": [ "1" ], "X-Sort": [ 5 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "修改菜单信息", "parameters": [ { "description": "菜单ID", "in": "formData", "name": "menuId", "required": true, "type": "string" }, { "description": "菜单名称", "in": "formData", "name": "menuName", "required": true, "type": "string" }, { "description": "菜单编码", "in": "formData", "name": "menuCode", "required": true, "type": "string" }, { "description": "菜单的URL", "in": "formData", "name": "menuUrl", "required": true, "type": "string" }, { "description": "菜单图标", "in": "formData", "name": "menuIcon", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "修改菜单信息", "tags": [ "菜单信息" ] } }, "/base/menu/PageMenuInfo": { "get": { "X-EmptyLimit": [ "appId", "identityId" ], "X-IntRangeLimit": [ { "identityId": "1,4" } ], "X-LengthLimit": [ { "appId": "36,36" } ], "X-RoleLimit": [ "1" ], "X-Sort": [ 1 ], "X-TableName": [ "t_base_menu" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "根据系统ID和身份ID获取菜单信息", "parameters": [ { "description": "系统ID", "in": "query", "name": "appId", "required": true, "type": "string" }, { "description": "身份ID", "in": "query", "name": "identityId", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "根据系统ID和身份ID获取菜单信息", "tags": [ "菜单信息" ] } }, "/base/menu/SetMenuSortInfo": { "post": { "X-EmptyLimit": [ "menuId", "direction" ], "X-IntRangeLimit": [ { "direction": "1,2" } ], "X-LengthLimit": [ { "menuId": "36,36" } ], "X-RoleLimit": [ "1" ], "X-Sort": [ 6 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "设置菜单排序", "parameters": [ { "description": "菜单ID", "in": "formData", "name": "menuId", "required": true, "type": "string" }, { "description": "调整顺序的方向 1:向上 2:向下", "in": "formData", "name": "direction", "required": true, "type": "integer" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "设置菜单排序", "tags": [ "菜单信息" ] } }, "/base/menu/GetMenuInfo": { "get": { "X-EmptyLimit": [ "menuId" ], "X-LengthLimit": [ { "menuId": "36,36" } ], "X-RoleLimit": [ "1" ], "X-Sort": [ 2 ], "X-TableName": [ "t_base_menu" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "根据菜单ID获取该菜单信息", "parameters": [ { "description": "菜单ID", "in": "query", "name": "menuId", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "根据菜单ID获取该菜单信息", "tags": [ "菜单信息" ] } }, "/base/menu/DeleteMenuInfo": { "post": { "X-EmptyLimit": [ "menuIds" ], "X-LengthLimit": [ { "menuIds": "36,1800" } ], "X-RoleLimit": [ "1" ], "X-Sort": [ 4 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "删除菜单信息", "parameters": [ { "description": "菜单ID,多个用逗号分隔", "in": "formData", "name": "menuIds", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "删除菜单信息", "tags": [ "菜单信息" ] } }, "/base/area/PageGovArea": { "get": { "X-EmptyLimit": [ "page", "limit", "areaCode" ], "X-IntLimit": [ "page", "limit", "areaCode" ], "X-LengthLimit": [ { "areaCode": "6,6" } ], "X-RoleLimit": [ "1", "2", "3", "4", "5", "6", "7" ], "X-TableName": [ "t_gov_area" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "获取行政区划信息(列表)", "parameters": [ { "description": "第几页", "in": "query", "name": "page", "required": true, "type": "integer" }, { "description": "一页显示多少条", "in": "query", "name": "limit", "required": true, "type": "integer" }, { "description": "行政区划码", "in": "query", "name": "areaCode", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "获取行政区划信息(列表)", "tags": [ "行政区划" ] } }, "/base/area/DeleteGovArea": { "post": { "X-EmptyLimit": [ "areaCode" ], "X-LengthLimit": [ { "areaCode": "6,6" } ], "X-RoleLimit": [ "1", "2", "3", "4", "5", "6", "7" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "删除行政区划信息", "parameters": [ { "description": "区域代码", "in": "formData", "name": "areaCode", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "删除行政区划信息", "tags": [ "行政区划" ] } }, "/base/area/AddGovArea": { "post": { "X-EmptyLimit": [ "areaTypeId", "areaCode", "areaName", "masterCode" ], "X-IntLimit": [ "areaTypeId" ], "X-LengthLimit": [ { "areaCode": "6,6" }, { "masterCode": "6,6" }, { "areaName": "3,50" } ], "X-RoleLimit": [ "1", "2", "3", "4", "5", "6", "7" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "增加行政区划信息", "parameters": [ { "description": "区域代码", "in": "formData", "name": "areaCode", "required": true, "type": "string" }, { "description": "区域名称", "in": "formData", "name": "areaName", "required": true, "type": "string" }, { "description": "上级代码", "in": "formData", "name": "masterCode", "required": true, "type": "string" }, { "description": "区域类型", "in": "formData", "name": "areaTypeId", "required": true, "type": "integer" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "增加行政区划信息", "tags": [ "行政区划" ] } }, "/base/area/UpdateGovArea": { "post": { "X-EmptyLimit": [ "areaTypeId", "areaCode", "areaName", "masterCode" ], "X-IntLimit": [ "areaTypeId" ], "X-LengthLimit": [ { "areaCode": "6,6" }, { "masterCode": "6,6" }, { "areaName": "3:50" } ], "X-RoleLimit": [ "1", "2", "3", "4", "5", "6", "7" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "修改行政区划信息", "parameters": [ { "description": "区域代码", "in": "formData", "name": "areaCode", "required": true, "type": "string" }, { "description": "区域名称", "in": "formData", "name": "areaName", "required": true, "type": "string" }, { "description": "上级代码", "in": "formData", "name": "masterCode", "required": true, "type": "string" }, { "description": "区域类型", "in": "formData", "name": "areaTypeId", "required": true, "type": "integer" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "修改行政区划信息", "tags": [ "行政区划" ] } }, "/base/area/GetGovArea": { "get": { "X-EmptyLimit": [ "areaCode" ], "X-IntLimit": [ "areaCode" ], "X-LengthLimit": [ { "areaCode": "6,6" } ], "X-RoleLimit": [ "1", "2", "3", "4", "5", "6", "7" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "获取行政区划信息(单条)", "parameters": [ { "description": "行政区划码", "in": "query", "name": "areaCode", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "获取行政区划信息(单条)", "tags": [ "行政区划" ] } }, "/base/role/GetPersonRoleInfo": { "get": { "X-InterfaceName": [ "GetBaseRolePerson" ], "X-RemoveSwaggerField": [ "id", "id_int", "b_use", "last_updated_time" ], "X-Sort": [ 2 ], "X-TableName": [ "t_base_role_person" ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "获取人员角色信息", "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "获取人员角色信息", "tags": [ "角色信息" ] } }, "/base/role/PageRoleInfo": { "get": { "X-RoleLimit": [ "1" ], "X-Sort": [ 1 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "根据系统ID或身份ID获取角色信息", "parameters": [ { "description": "第几页", "in": "query", "name": "page", "required": true, "type": "integer" }, { "description": "一页显示多少条", "in": "query", "name": "limit", "required": true, "type": "integer" }, { "description": "系统ID 全部传-1", "in": "query", "name": "appId", "required": true, "type": "string" }, { "description": "身份ID 全部传-1", "in": "query", "name": "identityId", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "根据系统ID或身份ID获取角色信息", "tags": [ "角色信息" ] } }, "/base/role/GetRoleInfo": { "get": { "X-EmptyLimit": [ "roleId" ], "X-LengthLimit": [ { "roleId": "36,36" } ], "X-RoleLimit": [ "1" ], "X-Sort": [ 2 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "根据菜单ID获取该角色信息", "parameters": [ { "description": "角色ID", "in": "query", "name": "roleId", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "根据菜单ID获取该角色信息", "tags": [ "角色信息" ] } }, "/base/role/UpdateRoleInfo": { "post": { "X-EmptyLimit": [ "roleId", "roleName", "roleCode", "identityId", "roleLevel", "appIds", "sortId" ], "X-LengthLimit": [ { "roleName": "36,36" }, { "roleName": "2,50" }, { "roleCode": "2,20" } ], "X-RoleLimit": [ "1" ], "X-Sort": [ 5 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "增加角色信息", "parameters": [ { "description": "角色ID", "in": "formData", "name": "roleId", "required": true, "type": "string" }, { "description": "角色名称", "in": "formData", "name": "roleName", "required": true, "type": "string" }, { "description": "角色编码", "in": "formData", "name": "roleCode", "required": true, "type": "string" }, { "description": "身份ID", "in": "formData", "name": "identityId", "required": true, "type": "integer" }, { "description": "角色级别", "in": "formData", "name": "roleLevel", "required": true, "type": "integer" }, { "description": "角色所属系统ID,多个用逗号分隔,通用传-1", "in": "formData", "name": "appIds", "required": true, "type": "string" }, { "description": "排序号", "in": "formData", "name": "sortId", "required": true, "type": "integer" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "增加角色信息", "tags": [ "角色信息" ] } }, "/base/role/DeleteRoleInfo": { "post": { "X-EmptyLimit": [ "roleIds" ], "X-LengthLimit": [ { "roleIds": "36,1800" } ], "X-RoleLimit": [ "1" ], "X-Sort": [ 4 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "删除角色信息", "parameters": [ { "description": "角色ID,多个用逗号分隔", "in": "formData", "name": "roleIds", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "删除角色信息", "tags": [ "角色信息" ] } }, "/base/role/GetBaseRoleMenuCorrInfo": { "get": { "X-EmptyLimit": [ "roleId" ], "X-LengthLimit": [ { "roleId": "36,36" } ], "X-RoleLimit": [ "1" ], "X-Sort": [ 1 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "获取角色菜单对应关系", "parameters": [ { "description": "角色ID", "in": "query", "name": "roleId", "required": true, "type": "string" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "获取角色菜单对应关系", "tags": [ "角色信息" ] } }, "/base/role/AddRoleInfo": { "post": { "X-EmptyLimit": [ "roleName", "roleCode", "identityId", "roleLevel", "appIds", "sortId" ], "X-LengthLimit": [ { "roleName": "2,50" }, { "roleCode": "2,20" } ], "X-RoleLimit": [ "1" ], "X-Sort": [ 3 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "增加角色信息", "parameters": [ { "description": "角色名称", "in": "formData", "name": "roleName", "required": true, "type": "string" }, { "description": "角色编码", "in": "formData", "name": "roleCode", "required": true, "type": "string" }, { "description": "身份ID", "in": "formData", "name": "identityId", "required": true, "type": "integer" }, { "description": "角色级别", "in": "formData", "name": "roleLevel", "required": true, "type": "integer" }, { "description": "角色所属系统ID,多个用逗号分隔,通用传-1", "in": "formData", "name": "appIds", "required": true, "type": "string" }, { "description": "排序号", "in": "formData", "name": "sortId", "required": true, "type": "integer" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "增加角色信息", "tags": [ "角色信息" ] } }, "/base/role/GetManageAreaInfo": { "get": { "X-EmptyLimit": [ "areaType" ], "X-IntRangeLimit": [ { "areaType": "1,2" } ], "X-InterfaceName": [ "GetBaseRolePerson" ], "X-RoleLimit": [ "1", "2", "3", "4", "5", "6", "7" ], "X-Sort": [ 1 ], "consumes": [ "application/x-www-form-urlencoded" ], "description": "根据人员ID获取所管辖的地区信息", "parameters": [ { "description": "地区类型 1:市 2:区", "in": "query", "name": "areaType", "required": true, "type": "integer" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Model.Res" } } }, "summary": "根据人员ID获取所管辖的地区信息", "tags": [ "角色信息" ] } } }, "swagger": "2.0" }` type swaggerInfo struct { Version string Host string BasePath string Schemes []string Title string Description string } // SwaggerInfo holds exported Swagger Info so clients can modify it var SwaggerInfo = swaggerInfo{ Version: "1.0", Host: "127.0.0.1:8002", BasePath: "", Schemes: []string{}, Title: "基础数据API", Description: "分布式,大并发,高可用", } type s struct{} func (s *s) ReadDoc() string { sInfo := SwaggerInfo sInfo.Description = strings.Replace(sInfo.Description, "\n", "\\n", -1) t, err := template.New("swagger_info").Funcs(template.FuncMap{ "marshal": func(v interface{}) string { a, _ := json.Marshal(v) return string(a) }, }).Parse(doc) if err != nil { return doc } var tpl bytes.Buffer if err := t.Execute(&tpl, sInfo); err != nil { return doc } return tpl.String() } func init() { swag.Register(swag.Name, &s{}) }