2025-03-24 05:55:56 +00:00
|
|
|
|
// Package docs Code generated by swaggo/swag. DO NOT EDIT
|
|
|
|
|
|
package docs
|
|
|
|
|
|
|
|
|
|
|
|
import "github.com/swaggo/swag"
|
|
|
|
|
|
|
|
|
|
|
|
const docTemplate = `{
|
|
|
|
|
|
"schemes": {{ marshal .Schemes }},
|
|
|
|
|
|
"swagger": "2.0",
|
|
|
|
|
|
"info": {
|
|
|
|
|
|
"description": "{{escape .Description}}",
|
|
|
|
|
|
"title": "{{.Title}}",
|
|
|
|
|
|
"termsOfService": "http://swagger.io/terms/",
|
|
|
|
|
|
"contact": {
|
|
|
|
|
|
"name": "API Support",
|
|
|
|
|
|
"url": "http://www.swagger.io/support",
|
|
|
|
|
|
"email": "support@swagger.io"
|
|
|
|
|
|
},
|
|
|
|
|
|
"license": {
|
|
|
|
|
|
"name": "Apache 2.0",
|
|
|
|
|
|
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
|
|
|
|
|
|
},
|
|
|
|
|
|
"version": "{{.Version}}"
|
|
|
|
|
|
},
|
|
|
|
|
|
"host": "{{.Host}}",
|
|
|
|
|
|
"basePath": "{{.BasePath}}",
|
|
|
|
|
|
"paths": {
|
|
|
|
|
|
"/v1/admin/api": {
|
|
|
|
|
|
"put": {
|
|
|
|
|
|
"security": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"Bearer": []
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
"description": "更新API信息",
|
|
|
|
|
|
"consumes": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"produces": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"tags": [
|
|
|
|
|
|
"API模块"
|
|
|
|
|
|
],
|
|
|
|
|
|
"summary": "更新API",
|
|
|
|
|
|
"parameters": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"description": "参数",
|
|
|
|
|
|
"name": "request",
|
|
|
|
|
|
"in": "body",
|
|
|
|
|
|
"required": true,
|
|
|
|
|
|
"schema": {
|
|
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.ApiUpdateRequest"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
"responses": {
|
|
|
|
|
|
"200": {
|
|
|
|
|
|
"description": "OK",
|
|
|
|
|
|
"schema": {
|
|
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.Response"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"post": {
|
|
|
|
|
|
"security": [
|
2025-03-24 05:55:56 +00:00
|
|
|
|
{
|
|
|
|
|
|
"Bearer": []
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
"description": "创建新的API",
|
|
|
|
|
|
"consumes": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"produces": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"tags": [
|
|
|
|
|
|
"API模块"
|
|
|
|
|
|
],
|
|
|
|
|
|
"summary": "创建API",
|
|
|
|
|
|
"parameters": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"description": "参数",
|
|
|
|
|
|
"name": "request",
|
|
|
|
|
|
"in": "body",
|
|
|
|
|
|
"required": true,
|
|
|
|
|
|
"schema": {
|
|
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.ApiCreateRequest"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
"responses": {
|
|
|
|
|
|
"200": {
|
|
|
|
|
|
"description": "OK",
|
|
|
|
|
|
"schema": {
|
|
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.Response"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-03-27 07:05:17 +00:00
|
|
|
|
},
|
|
|
|
|
|
"delete": {
|
|
|
|
|
|
"security": [
|
2025-03-24 05:55:56 +00:00
|
|
|
|
{
|
|
|
|
|
|
"Bearer": []
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
"description": "删除指定API",
|
|
|
|
|
|
"consumes": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"produces": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"tags": [
|
|
|
|
|
|
"API模块"
|
|
|
|
|
|
],
|
|
|
|
|
|
"summary": "删除API",
|
|
|
|
|
|
"parameters": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"type": "integer",
|
|
|
|
|
|
"description": "API ID",
|
|
|
|
|
|
"name": "id",
|
|
|
|
|
|
"in": "query",
|
|
|
|
|
|
"required": true
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
"responses": {
|
|
|
|
|
|
"200": {
|
|
|
|
|
|
"description": "OK",
|
|
|
|
|
|
"schema": {
|
|
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.Response"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-03-27 07:05:17 +00:00
|
|
|
|
},
|
|
|
|
|
|
"/v1/admin/apis": {
|
|
|
|
|
|
"get": {
|
|
|
|
|
|
"security": [
|
2025-03-24 05:55:56 +00:00
|
|
|
|
{
|
|
|
|
|
|
"Bearer": []
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
"description": "获取API列表",
|
|
|
|
|
|
"consumes": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"produces": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"tags": [
|
|
|
|
|
|
"API模块"
|
|
|
|
|
|
],
|
|
|
|
|
|
"summary": "获取API列表",
|
|
|
|
|
|
"parameters": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"type": "integer",
|
|
|
|
|
|
"description": "页码",
|
|
|
|
|
|
"name": "page",
|
|
|
|
|
|
"in": "query",
|
|
|
|
|
|
"required": true
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"type": "integer",
|
|
|
|
|
|
"description": "每页数量",
|
|
|
|
|
|
"name": "pageSize",
|
|
|
|
|
|
"in": "query",
|
|
|
|
|
|
"required": true
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"type": "string",
|
|
|
|
|
|
"description": "API分组",
|
|
|
|
|
|
"name": "group",
|
|
|
|
|
|
"in": "query"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"type": "string",
|
|
|
|
|
|
"description": "API名称",
|
|
|
|
|
|
"name": "name",
|
|
|
|
|
|
"in": "query"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"type": "string",
|
|
|
|
|
|
"description": "API路径",
|
|
|
|
|
|
"name": "path",
|
|
|
|
|
|
"in": "query"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"type": "string",
|
|
|
|
|
|
"description": "请求方法",
|
|
|
|
|
|
"name": "method",
|
|
|
|
|
|
"in": "query"
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
"responses": {
|
|
|
|
|
|
"200": {
|
|
|
|
|
|
"description": "OK",
|
|
|
|
|
|
"schema": {
|
|
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.GetApisResponse"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"/v1/admin/menu": {
|
|
|
|
|
|
"put": {
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"security": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"Bearer": []
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"description": "更新菜单信息",
|
|
|
|
|
|
"consumes": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"produces": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"tags": [
|
|
|
|
|
|
"菜单模块"
|
|
|
|
|
|
],
|
|
|
|
|
|
"summary": "更新菜单",
|
|
|
|
|
|
"parameters": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"description": "参数",
|
|
|
|
|
|
"name": "request",
|
|
|
|
|
|
"in": "body",
|
|
|
|
|
|
"required": true,
|
|
|
|
|
|
"schema": {
|
|
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.MenuUpdateRequest"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
"responses": {
|
|
|
|
|
|
"200": {
|
|
|
|
|
|
"description": "OK",
|
|
|
|
|
|
"schema": {
|
|
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.Response"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"post": {
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"security": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"Bearer": []
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"description": "创建新的菜单",
|
|
|
|
|
|
"consumes": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"produces": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"tags": [
|
|
|
|
|
|
"菜单模块"
|
|
|
|
|
|
],
|
|
|
|
|
|
"summary": "创建菜单",
|
|
|
|
|
|
"parameters": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"description": "参数",
|
|
|
|
|
|
"name": "request",
|
|
|
|
|
|
"in": "body",
|
|
|
|
|
|
"required": true,
|
|
|
|
|
|
"schema": {
|
|
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.MenuCreateRequest"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
"responses": {
|
|
|
|
|
|
"200": {
|
|
|
|
|
|
"description": "OK",
|
|
|
|
|
|
"schema": {
|
|
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.Response"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"delete": {
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"security": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"Bearer": []
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"description": "删除指定菜单",
|
|
|
|
|
|
"consumes": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"produces": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"tags": [
|
|
|
|
|
|
"菜单模块"
|
|
|
|
|
|
],
|
|
|
|
|
|
"summary": "删除菜单",
|
|
|
|
|
|
"parameters": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"type": "integer",
|
|
|
|
|
|
"description": "菜单ID",
|
|
|
|
|
|
"name": "id",
|
|
|
|
|
|
"in": "query",
|
|
|
|
|
|
"required": true
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
"responses": {
|
|
|
|
|
|
"200": {
|
|
|
|
|
|
"description": "OK",
|
|
|
|
|
|
"schema": {
|
|
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.Response"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"/v1/admin/menus": {
|
|
|
|
|
|
"get": {
|
|
|
|
|
|
"security": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"Bearer": []
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
"description": "获取管理员菜单列表",
|
|
|
|
|
|
"consumes": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"produces": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"tags": [
|
|
|
|
|
|
"菜单模块"
|
|
|
|
|
|
],
|
|
|
|
|
|
"summary": "获取管理员菜单",
|
|
|
|
|
|
"responses": {
|
|
|
|
|
|
"200": {
|
|
|
|
|
|
"description": "OK",
|
|
|
|
|
|
"schema": {
|
|
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.GetMenuResponse"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"/v1/admin/role": {
|
|
|
|
|
|
"put": {
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"security": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"Bearer": []
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"description": "更新角色信息",
|
|
|
|
|
|
"consumes": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"produces": [
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"tags": [
|
|
|
|
|
|
"角色模块"
|
|
|
|
|
|
],
|
|
|
|
|
|
"summary": "更新角色",
|
|
|
|
|
|
"parameters": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"description": "参数",
|
|
|
|
|
|
"name": "request",
|
|
|
|
|
|
"in": "body",
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"required": true,
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"schema": {
|
|
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.RoleUpdateRequest"
|
|
|
|
|
|
}
|
2025-03-27 07:05:17 +00:00
|
|
|
|
}
|
2025-03-24 05:55:56 +00:00
|
|
|
|
],
|
|
|
|
|
|
"responses": {
|
|
|
|
|
|
"200": {
|
|
|
|
|
|
"description": "OK",
|
|
|
|
|
|
"schema": {
|
|
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.Response"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"post": {
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"security": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"Bearer": []
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"description": "创建新的角色",
|
|
|
|
|
|
"consumes": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"produces": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"tags": [
|
|
|
|
|
|
"角色模块"
|
|
|
|
|
|
],
|
|
|
|
|
|
"summary": "创建角色",
|
|
|
|
|
|
"parameters": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"description": "参数",
|
|
|
|
|
|
"name": "request",
|
|
|
|
|
|
"in": "body",
|
|
|
|
|
|
"required": true,
|
|
|
|
|
|
"schema": {
|
|
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.RoleCreateRequest"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
"responses": {
|
|
|
|
|
|
"200": {
|
|
|
|
|
|
"description": "OK",
|
|
|
|
|
|
"schema": {
|
|
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.Response"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"delete": {
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"security": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"Bearer": []
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"description": "删除指定角色",
|
|
|
|
|
|
"consumes": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"produces": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"tags": [
|
|
|
|
|
|
"角色模块"
|
|
|
|
|
|
],
|
|
|
|
|
|
"summary": "删除角色",
|
|
|
|
|
|
"parameters": [
|
|
|
|
|
|
{
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"type": "integer",
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"description": "角色ID",
|
|
|
|
|
|
"name": "id",
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"in": "query",
|
|
|
|
|
|
"required": true
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"responses": {
|
|
|
|
|
|
"200": {
|
|
|
|
|
|
"description": "OK",
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"schema": {
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.Response"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"/v1/admin/role/permissions": {
|
|
|
|
|
|
"get": {
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"security": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"Bearer": []
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"description": "获取指定角色的权限列表",
|
|
|
|
|
|
"consumes": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"produces": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"tags": [
|
|
|
|
|
|
"权限模块"
|
|
|
|
|
|
],
|
|
|
|
|
|
"summary": "获取角色权限",
|
|
|
|
|
|
"parameters": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"type": "string",
|
|
|
|
|
|
"description": "角色名称",
|
|
|
|
|
|
"name": "role",
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"in": "query",
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"required": true
|
|
|
|
|
|
}
|
2025-03-27 07:05:17 +00:00
|
|
|
|
],
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"responses": {
|
|
|
|
|
|
"200": {
|
|
|
|
|
|
"description": "OK",
|
|
|
|
|
|
"schema": {
|
|
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.GetRolePermissionsData"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-03-27 07:05:17 +00:00
|
|
|
|
}
|
|
|
|
|
|
},
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"put": {
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"security": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"Bearer": []
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"description": "更新指定角色的权限列表",
|
|
|
|
|
|
"consumes": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"produces": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"tags": [
|
|
|
|
|
|
"权限模块"
|
|
|
|
|
|
],
|
|
|
|
|
|
"summary": "更新角色权限",
|
|
|
|
|
|
"parameters": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"description": "参数",
|
|
|
|
|
|
"name": "request",
|
|
|
|
|
|
"in": "body",
|
|
|
|
|
|
"required": true,
|
|
|
|
|
|
"schema": {
|
|
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.UpdateRolePermissionRequest"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
"responses": {
|
|
|
|
|
|
"200": {
|
|
|
|
|
|
"description": "OK",
|
|
|
|
|
|
"schema": {
|
|
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.Response"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"/v1/admin/roles": {
|
|
|
|
|
|
"get": {
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"security": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"Bearer": []
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"description": "获取角色列表",
|
|
|
|
|
|
"consumes": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"produces": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"tags": [
|
|
|
|
|
|
"角色模块"
|
|
|
|
|
|
],
|
|
|
|
|
|
"summary": "获取角色列表",
|
|
|
|
|
|
"parameters": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"type": "integer",
|
|
|
|
|
|
"description": "页码",
|
|
|
|
|
|
"name": "page",
|
|
|
|
|
|
"in": "query",
|
|
|
|
|
|
"required": true
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"type": "integer",
|
|
|
|
|
|
"description": "每页数量",
|
|
|
|
|
|
"name": "pageSize",
|
|
|
|
|
|
"in": "query",
|
|
|
|
|
|
"required": true
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"type": "string",
|
|
|
|
|
|
"description": "角色ID",
|
|
|
|
|
|
"name": "sid",
|
|
|
|
|
|
"in": "query"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"type": "string",
|
|
|
|
|
|
"description": "角色名称",
|
|
|
|
|
|
"name": "name",
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"in": "query"
|
2025-03-24 05:55:56 +00:00
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
"responses": {
|
|
|
|
|
|
"200": {
|
|
|
|
|
|
"description": "OK",
|
|
|
|
|
|
"schema": {
|
|
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.GetRolesResponse"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"/v1/admin/user": {
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"get": {
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"security": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"Bearer": []
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
"consumes": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"produces": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"tags": [
|
|
|
|
|
|
"用户模块"
|
|
|
|
|
|
],
|
|
|
|
|
|
"summary": "获取管理用户信息",
|
|
|
|
|
|
"responses": {
|
|
|
|
|
|
"200": {
|
|
|
|
|
|
"description": "OK",
|
|
|
|
|
|
"schema": {
|
|
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.GetAdminUserResponse"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"put": {
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"security": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"Bearer": []
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"description": "更新管理员用户信息",
|
|
|
|
|
|
"consumes": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"produces": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"tags": [
|
|
|
|
|
|
"用户模块"
|
|
|
|
|
|
],
|
|
|
|
|
|
"summary": "更新管理员用户",
|
|
|
|
|
|
"parameters": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"description": "参数",
|
|
|
|
|
|
"name": "request",
|
|
|
|
|
|
"in": "body",
|
|
|
|
|
|
"required": true,
|
|
|
|
|
|
"schema": {
|
|
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.AdminUserUpdateRequest"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
"responses": {
|
|
|
|
|
|
"200": {
|
|
|
|
|
|
"description": "OK",
|
|
|
|
|
|
"schema": {
|
|
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.Response"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"post": {
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"security": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"Bearer": []
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"description": "创建新的管理员用户",
|
|
|
|
|
|
"consumes": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"produces": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"tags": [
|
|
|
|
|
|
"用户模块"
|
|
|
|
|
|
],
|
|
|
|
|
|
"summary": "创建管理员用户",
|
|
|
|
|
|
"parameters": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"description": "参数",
|
|
|
|
|
|
"name": "request",
|
|
|
|
|
|
"in": "body",
|
|
|
|
|
|
"required": true,
|
|
|
|
|
|
"schema": {
|
|
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.AdminUserCreateRequest"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
"responses": {
|
|
|
|
|
|
"200": {
|
|
|
|
|
|
"description": "OK",
|
|
|
|
|
|
"schema": {
|
|
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.Response"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"delete": {
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"security": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"Bearer": []
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"description": "删除指定管理员用户",
|
|
|
|
|
|
"consumes": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"produces": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"tags": [
|
|
|
|
|
|
"用户模块"
|
|
|
|
|
|
],
|
|
|
|
|
|
"summary": "删除管理员用户",
|
|
|
|
|
|
"parameters": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"type": "integer",
|
|
|
|
|
|
"description": "用户ID",
|
|
|
|
|
|
"name": "id",
|
|
|
|
|
|
"in": "query",
|
|
|
|
|
|
"required": true
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
"responses": {
|
|
|
|
|
|
"200": {
|
|
|
|
|
|
"description": "OK",
|
|
|
|
|
|
"schema": {
|
|
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.Response"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"/v1/admin/user/permissions": {
|
|
|
|
|
|
"get": {
|
|
|
|
|
|
"security": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"Bearer": []
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
"description": "获取当前用户的权限列表",
|
|
|
|
|
|
"consumes": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"produces": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"tags": [
|
|
|
|
|
|
"权限模块"
|
|
|
|
|
|
],
|
|
|
|
|
|
"summary": "获取用户权限",
|
|
|
|
|
|
"responses": {
|
|
|
|
|
|
"200": {
|
|
|
|
|
|
"description": "OK",
|
|
|
|
|
|
"schema": {
|
|
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.GetUserPermissionsData"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"/v1/admin/users": {
|
|
|
|
|
|
"get": {
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"security": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"Bearer": []
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"description": "获取管理员用户列表",
|
|
|
|
|
|
"consumes": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"produces": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"tags": [
|
|
|
|
|
|
"用户模块"
|
|
|
|
|
|
],
|
|
|
|
|
|
"summary": "获取管理员用户列表",
|
|
|
|
|
|
"parameters": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"type": "integer",
|
|
|
|
|
|
"description": "页码",
|
|
|
|
|
|
"name": "page",
|
|
|
|
|
|
"in": "query",
|
|
|
|
|
|
"required": true
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"type": "integer",
|
|
|
|
|
|
"description": "每页数量",
|
|
|
|
|
|
"name": "pageSize",
|
|
|
|
|
|
"in": "query",
|
|
|
|
|
|
"required": true
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"type": "string",
|
|
|
|
|
|
"description": "用户名",
|
|
|
|
|
|
"name": "username",
|
|
|
|
|
|
"in": "query"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"type": "string",
|
|
|
|
|
|
"description": "昵称",
|
|
|
|
|
|
"name": "nickname",
|
|
|
|
|
|
"in": "query"
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
"type": "string",
|
|
|
|
|
|
"description": "手机号",
|
|
|
|
|
|
"name": "phone",
|
|
|
|
|
|
"in": "query"
|
2025-03-27 07:05:17 +00:00
|
|
|
|
},
|
2025-03-24 05:55:56 +00:00
|
|
|
|
{
|
|
|
|
|
|
"type": "string",
|
|
|
|
|
|
"description": "邮箱",
|
|
|
|
|
|
"name": "email",
|
|
|
|
|
|
"in": "query"
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
"responses": {
|
|
|
|
|
|
"200": {
|
|
|
|
|
|
"description": "OK",
|
|
|
|
|
|
"schema": {
|
|
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.GetAdminUsersResponse"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-03-27 07:05:17 +00:00
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"/v1/login": {
|
|
|
|
|
|
"post": {
|
|
|
|
|
|
"consumes": [
|
|
|
|
|
|
"application/json"
|
2025-03-24 05:55:56 +00:00
|
|
|
|
],
|
|
|
|
|
|
"produces": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"tags": [
|
|
|
|
|
|
"用户模块"
|
|
|
|
|
|
],
|
|
|
|
|
|
"summary": "账号登录",
|
|
|
|
|
|
"parameters": [
|
|
|
|
|
|
{
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"description": "params",
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"name": "request",
|
|
|
|
|
|
"in": "body",
|
|
|
|
|
|
"required": true,
|
|
|
|
|
|
"schema": {
|
|
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.LoginRequest"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
"responses": {
|
|
|
|
|
|
"200": {
|
|
|
|
|
|
"description": "OK",
|
|
|
|
|
|
"schema": {
|
|
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.LoginResponse"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-03-27 07:05:17 +00:00
|
|
|
|
}
|
2025-03-24 05:55:56 +00:00
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"/v1/menus": {
|
|
|
|
|
|
"get": {
|
|
|
|
|
|
"security": [
|
|
|
|
|
|
{
|
|
|
|
|
|
"Bearer": []
|
|
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
"description": "获取当前用户的菜单列表",
|
|
|
|
|
|
"consumes": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"produces": [
|
|
|
|
|
|
"application/json"
|
|
|
|
|
|
],
|
|
|
|
|
|
"tags": [
|
|
|
|
|
|
"菜单模块"
|
2025-03-27 07:05:17 +00:00
|
|
|
|
],
|
|
|
|
|
|
"summary": "获取用户菜单",
|
|
|
|
|
|
"responses": {
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"200": {
|
|
|
|
|
|
"description": "OK",
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"schema": {
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.GetMenuResponse"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"definitions": {
|
|
|
|
|
|
"nunu-layout-admin_api_v1.AdminUserCreateRequest": {
|
|
|
|
|
|
"type": "object",
|
|
|
|
|
|
"required": [
|
|
|
|
|
|
"password",
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"username"
|
|
|
|
|
|
],
|
|
|
|
|
|
"properties": {
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"email": {
|
|
|
|
|
|
"type": "string",
|
|
|
|
|
|
"example": "1234@gmail.com"
|
2025-03-27 07:05:17 +00:00
|
|
|
|
},
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"nickname": {
|
|
|
|
|
|
"type": "string",
|
|
|
|
|
|
"example": "小Baby"
|
|
|
|
|
|
},
|
|
|
|
|
|
"password": {
|
|
|
|
|
|
"type": "string",
|
|
|
|
|
|
"example": "123456"
|
|
|
|
|
|
},
|
|
|
|
|
|
"phone": {
|
|
|
|
|
|
"type": "string",
|
|
|
|
|
|
"example": "1858888888"
|
|
|
|
|
|
},
|
|
|
|
|
|
"roles": {
|
|
|
|
|
|
"type": "array",
|
|
|
|
|
|
"items": {
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
|
|
|
|
|
"example": [
|
|
|
|
|
|
""
|
|
|
|
|
|
]
|
|
|
|
|
|
},
|
|
|
|
|
|
"username": {
|
|
|
|
|
|
"type": "string",
|
|
|
|
|
|
"example": "张三"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"nunu-layout-admin_api_v1.AdminUserDataItem": {
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"type": "object",
|
|
|
|
|
|
"required": [
|
|
|
|
|
|
"email",
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"nickname",
|
|
|
|
|
|
"password",
|
|
|
|
|
|
"username"
|
|
|
|
|
|
],
|
|
|
|
|
|
"properties": {
|
|
|
|
|
|
"createdAt": {
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
|
|
|
|
|
"email": {
|
|
|
|
|
|
"type": "string",
|
|
|
|
|
|
"example": "1234@gmail.com"
|
|
|
|
|
|
},
|
|
|
|
|
|
"id": {
|
|
|
|
|
|
"type": "integer"
|
|
|
|
|
|
},
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"nickname": {
|
|
|
|
|
|
"type": "string",
|
|
|
|
|
|
"example": "小Baby"
|
2025-03-24 05:55:56 +00:00
|
|
|
|
},
|
|
|
|
|
|
"password": {
|
|
|
|
|
|
"type": "string",
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"example": "123456"
|
|
|
|
|
|
},
|
|
|
|
|
|
"phone": {
|
|
|
|
|
|
"type": "string",
|
|
|
|
|
|
"example": "1858888888"
|
|
|
|
|
|
},
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"roles": {
|
|
|
|
|
|
"type": "array",
|
|
|
|
|
|
"items": {
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"type": "string"
|
2025-03-24 05:55:56 +00:00
|
|
|
|
},
|
|
|
|
|
|
"example": [
|
|
|
|
|
|
""
|
|
|
|
|
|
]
|
|
|
|
|
|
},
|
|
|
|
|
|
"updatedAt": {
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"type": "string"
|
2025-03-24 05:55:56 +00:00
|
|
|
|
},
|
|
|
|
|
|
"username": {
|
|
|
|
|
|
"type": "string",
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"example": "张三"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"nunu-layout-admin_api_v1.AdminUserUpdateRequest": {
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"type": "object",
|
|
|
|
|
|
"required": [
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"username"
|
|
|
|
|
|
],
|
|
|
|
|
|
"properties": {
|
|
|
|
|
|
"email": {
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"type": "string",
|
|
|
|
|
|
"example": "1234@gmail.com"
|
2025-03-27 07:05:17 +00:00
|
|
|
|
},
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"id": {
|
|
|
|
|
|
"type": "integer"
|
|
|
|
|
|
},
|
|
|
|
|
|
"nickname": {
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"type": "string",
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"example": "小Baby"
|
|
|
|
|
|
},
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"password": {
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"type": "string",
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"example": "123456"
|
|
|
|
|
|
},
|
|
|
|
|
|
"phone": {
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"type": "string",
|
|
|
|
|
|
"example": "1858888888"
|
|
|
|
|
|
},
|
|
|
|
|
|
"roles": {
|
|
|
|
|
|
"type": "array",
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"items": {
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
|
|
|
|
|
"example": [
|
|
|
|
|
|
""
|
|
|
|
|
|
]
|
|
|
|
|
|
},
|
|
|
|
|
|
"username": {
|
|
|
|
|
|
"type": "string",
|
|
|
|
|
|
"example": "张三"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"nunu-layout-admin_api_v1.ApiCreateRequest": {
|
|
|
|
|
|
"type": "object",
|
|
|
|
|
|
"properties": {
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"group": {
|
|
|
|
|
|
"type": "string",
|
|
|
|
|
|
"example": "权限管理"
|
|
|
|
|
|
},
|
|
|
|
|
|
"method": {
|
|
|
|
|
|
"type": "string",
|
|
|
|
|
|
"example": "GET"
|
|
|
|
|
|
},
|
|
|
|
|
|
"name": {
|
|
|
|
|
|
"type": "string",
|
|
|
|
|
|
"example": "菜单列表"
|
|
|
|
|
|
},
|
|
|
|
|
|
"path": {
|
|
|
|
|
|
"type": "string",
|
|
|
|
|
|
"example": "/v1/test"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"nunu-layout-admin_api_v1.ApiDataItem": {
|
|
|
|
|
|
"type": "object",
|
|
|
|
|
|
"properties": {
|
|
|
|
|
|
"createdAt": {
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
|
|
|
|
|
"group": {
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"id": {
|
|
|
|
|
|
"type": "integer"
|
|
|
|
|
|
},
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"method": {
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"type": "string"
|
2025-03-24 05:55:56 +00:00
|
|
|
|
},
|
|
|
|
|
|
"name": {
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
|
|
|
|
|
"path": {
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
|
|
|
|
|
"updatedAt": {
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"nunu-layout-admin_api_v1.ApiUpdateRequest": {
|
|
|
|
|
|
"type": "object",
|
|
|
|
|
|
"required": [
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"id"
|
2025-03-24 05:55:56 +00:00
|
|
|
|
],
|
|
|
|
|
|
"properties": {
|
|
|
|
|
|
"group": {
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"type": "string",
|
|
|
|
|
|
"example": "权限管理"
|
|
|
|
|
|
},
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"id": {
|
|
|
|
|
|
"type": "integer",
|
|
|
|
|
|
"example": 1
|
|
|
|
|
|
},
|
|
|
|
|
|
"method": {
|
|
|
|
|
|
"type": "string",
|
|
|
|
|
|
"example": "GET"
|
|
|
|
|
|
},
|
|
|
|
|
|
"name": {
|
|
|
|
|
|
"type": "string",
|
|
|
|
|
|
"example": "菜单列表"
|
|
|
|
|
|
},
|
|
|
|
|
|
"path": {
|
|
|
|
|
|
"type": "string",
|
|
|
|
|
|
"example": "/v1/test"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"nunu-layout-admin_api_v1.GetAdminUserResponse": {
|
|
|
|
|
|
"type": "object",
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"properties": {
|
|
|
|
|
|
"code": {
|
|
|
|
|
|
"type": "integer"
|
2025-03-24 05:55:56 +00:00
|
|
|
|
},
|
|
|
|
|
|
"data": {
|
|
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.GetAdminUserResponseData"
|
|
|
|
|
|
},
|
|
|
|
|
|
"message": {
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"type": "string"
|
|
|
|
|
|
}
|
2025-03-24 05:55:56 +00:00
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"nunu-layout-admin_api_v1.GetAdminUserResponseData": {
|
|
|
|
|
|
"type": "object",
|
|
|
|
|
|
"properties": {
|
|
|
|
|
|
"createdAt": {
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
|
|
|
|
|
"email": {
|
|
|
|
|
|
"type": "string",
|
|
|
|
|
|
"example": "1234@gmail.com"
|
|
|
|
|
|
},
|
|
|
|
|
|
"id": {
|
|
|
|
|
|
"type": "integer"
|
2025-03-27 07:05:17 +00:00
|
|
|
|
},
|
|
|
|
|
|
"nickname": {
|
|
|
|
|
|
"type": "string",
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"example": "小Baby"
|
|
|
|
|
|
},
|
|
|
|
|
|
"password": {
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"type": "string",
|
|
|
|
|
|
"example": "123456"
|
|
|
|
|
|
},
|
|
|
|
|
|
"phone": {
|
|
|
|
|
|
"type": "string",
|
|
|
|
|
|
"example": "1858888888"
|
|
|
|
|
|
},
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"roles": {
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"type": "array",
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"items": {
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
|
|
|
|
|
"example": [
|
2025-03-27 07:05:17 +00:00
|
|
|
|
""
|
2025-03-24 05:55:56 +00:00
|
|
|
|
]
|
|
|
|
|
|
},
|
|
|
|
|
|
"updatedAt": {
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
|
|
|
|
|
"username": {
|
|
|
|
|
|
"type": "string",
|
|
|
|
|
|
"example": "张三"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"nunu-layout-admin_api_v1.GetAdminUsersResponse": {
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"type": "object",
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"properties": {
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"code": {
|
|
|
|
|
|
"type": "integer"
|
|
|
|
|
|
},
|
|
|
|
|
|
"data": {
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.GetAdminUsersResponseData"
|
2025-03-24 05:55:56 +00:00
|
|
|
|
},
|
|
|
|
|
|
"message": {
|
|
|
|
|
|
"type": "string"
|
2025-03-27 07:05:17 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-03-24 05:55:56 +00:00
|
|
|
|
},
|
|
|
|
|
|
"nunu-layout-admin_api_v1.GetAdminUsersResponseData": {
|
|
|
|
|
|
"type": "object",
|
|
|
|
|
|
"properties": {
|
|
|
|
|
|
"list": {
|
|
|
|
|
|
"type": "array",
|
|
|
|
|
|
"items": {
|
|
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.AdminUserDataItem"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"total": {
|
|
|
|
|
|
"type": "integer"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"nunu-layout-admin_api_v1.GetApisResponse": {
|
|
|
|
|
|
"type": "object",
|
|
|
|
|
|
"properties": {
|
|
|
|
|
|
"code": {
|
|
|
|
|
|
"type": "integer"
|
|
|
|
|
|
},
|
|
|
|
|
|
"data": {
|
|
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.GetApisResponseData"
|
|
|
|
|
|
},
|
|
|
|
|
|
"message": {
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"nunu-layout-admin_api_v1.GetApisResponseData": {
|
|
|
|
|
|
"type": "object",
|
|
|
|
|
|
"properties": {
|
|
|
|
|
|
"groups": {
|
|
|
|
|
|
"type": "array",
|
|
|
|
|
|
"items": {
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"list": {
|
|
|
|
|
|
"type": "array",
|
|
|
|
|
|
"items": {
|
|
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.ApiDataItem"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"total": {
|
|
|
|
|
|
"type": "integer"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"nunu-layout-admin_api_v1.GetMenuResponse": {
|
|
|
|
|
|
"type": "object",
|
|
|
|
|
|
"properties": {
|
|
|
|
|
|
"code": {
|
|
|
|
|
|
"type": "integer"
|
|
|
|
|
|
},
|
|
|
|
|
|
"data": {
|
|
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.GetMenuResponseData"
|
|
|
|
|
|
},
|
|
|
|
|
|
"message": {
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"nunu-layout-admin_api_v1.GetMenuResponseData": {
|
|
|
|
|
|
"type": "object",
|
|
|
|
|
|
"properties": {
|
|
|
|
|
|
"list": {
|
|
|
|
|
|
"type": "array",
|
|
|
|
|
|
"items": {
|
|
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.MenuDataItem"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"nunu-layout-admin_api_v1.GetRolePermissionsData": {
|
|
|
|
|
|
"type": "object",
|
|
|
|
|
|
"properties": {
|
|
|
|
|
|
"list": {
|
|
|
|
|
|
"type": "array",
|
|
|
|
|
|
"items": {
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"nunu-layout-admin_api_v1.GetRolesResponse": {
|
|
|
|
|
|
"type": "object",
|
|
|
|
|
|
"properties": {
|
|
|
|
|
|
"code": {
|
|
|
|
|
|
"type": "integer"
|
|
|
|
|
|
},
|
|
|
|
|
|
"data": {
|
|
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.GetRolesResponseData"
|
|
|
|
|
|
},
|
|
|
|
|
|
"message": {
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"nunu-layout-admin_api_v1.GetRolesResponseData": {
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"type": "object",
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"properties": {
|
|
|
|
|
|
"list": {
|
|
|
|
|
|
"type": "array",
|
|
|
|
|
|
"items": {
|
|
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.RoleDataItem"
|
2025-03-24 05:55:56 +00:00
|
|
|
|
}
|
|
|
|
|
|
},
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"total": {
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"type": "integer"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"nunu-layout-admin_api_v1.GetUserPermissionsData": {
|
|
|
|
|
|
"type": "object",
|
|
|
|
|
|
"properties": {
|
|
|
|
|
|
"list": {
|
|
|
|
|
|
"type": "array",
|
|
|
|
|
|
"items": {
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"nunu-layout-admin_api_v1.LoginRequest": {
|
|
|
|
|
|
"type": "object",
|
|
|
|
|
|
"required": [
|
|
|
|
|
|
"password",
|
|
|
|
|
|
"username"
|
|
|
|
|
|
],
|
|
|
|
|
|
"properties": {
|
|
|
|
|
|
"password": {
|
|
|
|
|
|
"type": "string",
|
|
|
|
|
|
"example": "123456"
|
|
|
|
|
|
},
|
|
|
|
|
|
"username": {
|
|
|
|
|
|
"type": "string",
|
|
|
|
|
|
"example": "1234@gmail.com"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"nunu-layout-admin_api_v1.LoginResponse": {
|
|
|
|
|
|
"type": "object",
|
|
|
|
|
|
"properties": {
|
|
|
|
|
|
"code": {
|
|
|
|
|
|
"type": "integer"
|
|
|
|
|
|
},
|
|
|
|
|
|
"data": {
|
|
|
|
|
|
"$ref": "#/definitions/nunu-layout-admin_api_v1.LoginResponseData"
|
|
|
|
|
|
},
|
|
|
|
|
|
"message": {
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"nunu-layout-admin_api_v1.LoginResponseData": {
|
|
|
|
|
|
"type": "object",
|
|
|
|
|
|
"properties": {
|
|
|
|
|
|
"accessToken": {
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"nunu-layout-admin_api_v1.MenuCreateRequest": {
|
|
|
|
|
|
"type": "object",
|
|
|
|
|
|
"properties": {
|
|
|
|
|
|
"component": {
|
|
|
|
|
|
"description": "绑定的组件",
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
|
|
|
|
|
"hideInMenu": {
|
|
|
|
|
|
"description": "是否保活",
|
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
|
},
|
|
|
|
|
|
"icon": {
|
|
|
|
|
|
"description": "图标,使用字符串表示",
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
|
|
|
|
|
"keepAlive": {
|
|
|
|
|
|
"description": "是否保活",
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"type": "boolean"
|
|
|
|
|
|
},
|
|
|
|
|
|
"locale": {
|
|
|
|
|
|
"description": "本地化标识",
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
|
|
|
|
|
"name": {
|
|
|
|
|
|
"description": "同路由中的name,唯一标识",
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
|
|
|
|
|
"parentId": {
|
|
|
|
|
|
"description": "父级菜单的id,使用整数表示",
|
|
|
|
|
|
"type": "integer"
|
|
|
|
|
|
},
|
|
|
|
|
|
"path": {
|
|
|
|
|
|
"description": "地址",
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
|
|
|
|
|
"redirect": {
|
|
|
|
|
|
"description": "重定向地址",
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
|
|
|
|
|
"title": {
|
|
|
|
|
|
"description": "展示名称",
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
|
|
|
|
|
"url": {
|
|
|
|
|
|
"description": "iframe模式下的跳转url,不能与path重复",
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
|
|
|
|
|
"weight": {
|
|
|
|
|
|
"description": "排序权重",
|
|
|
|
|
|
"type": "integer"
|
|
|
|
|
|
}
|
2025-03-24 05:55:56 +00:00
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"nunu-layout-admin_api_v1.MenuDataItem": {
|
|
|
|
|
|
"type": "object",
|
|
|
|
|
|
"properties": {
|
|
|
|
|
|
"component": {
|
|
|
|
|
|
"description": "绑定的组件",
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
|
|
|
|
|
"hideInMenu": {
|
|
|
|
|
|
"description": "是否保活",
|
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
|
},
|
|
|
|
|
|
"icon": {
|
|
|
|
|
|
"description": "图标,使用字符串表示",
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
|
|
|
|
|
"id": {
|
|
|
|
|
|
"description": "唯一id,使用整数表示",
|
|
|
|
|
|
"type": "integer"
|
|
|
|
|
|
},
|
|
|
|
|
|
"keepAlive": {
|
|
|
|
|
|
"description": "是否保活",
|
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
|
},
|
|
|
|
|
|
"locale": {
|
|
|
|
|
|
"description": "本地化标识",
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
|
|
|
|
|
"name": {
|
|
|
|
|
|
"description": "同路由中的name,唯一标识",
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
|
|
|
|
|
"parentId": {
|
|
|
|
|
|
"description": "父级菜单的id,使用整数表示",
|
|
|
|
|
|
"type": "integer"
|
|
|
|
|
|
},
|
|
|
|
|
|
"path": {
|
|
|
|
|
|
"description": "地址",
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
|
|
|
|
|
"redirect": {
|
|
|
|
|
|
"description": "重定向地址",
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
|
|
|
|
|
"title": {
|
|
|
|
|
|
"description": "展示名称",
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
|
|
|
|
|
"updatedAt": {
|
|
|
|
|
|
"description": "是否保活",
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
|
|
|
|
|
"url": {
|
|
|
|
|
|
"description": "iframe模式下的跳转url,不能与path重复",
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
|
|
|
|
|
"weight": {
|
|
|
|
|
|
"description": "排序权重",
|
|
|
|
|
|
"type": "integer"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"nunu-layout-admin_api_v1.MenuUpdateRequest": {
|
|
|
|
|
|
"type": "object",
|
|
|
|
|
|
"properties": {
|
|
|
|
|
|
"component": {
|
|
|
|
|
|
"description": "绑定的组件",
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
|
|
|
|
|
"hideInMenu": {
|
|
|
|
|
|
"description": "是否保活",
|
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
|
},
|
|
|
|
|
|
"icon": {
|
|
|
|
|
|
"description": "图标,使用字符串表示",
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
|
|
|
|
|
"id": {
|
|
|
|
|
|
"description": "唯一id,使用整数表示",
|
|
|
|
|
|
"type": "integer"
|
|
|
|
|
|
},
|
|
|
|
|
|
"keepAlive": {
|
|
|
|
|
|
"description": "是否保活",
|
|
|
|
|
|
"type": "boolean"
|
|
|
|
|
|
},
|
|
|
|
|
|
"locale": {
|
|
|
|
|
|
"description": "本地化标识",
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
|
|
|
|
|
"name": {
|
|
|
|
|
|
"description": "同路由中的name,唯一标识",
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
|
|
|
|
|
"parentId": {
|
|
|
|
|
|
"description": "父级菜单的id,使用整数表示",
|
|
|
|
|
|
"type": "integer"
|
|
|
|
|
|
},
|
|
|
|
|
|
"path": {
|
|
|
|
|
|
"description": "地址",
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
|
|
|
|
|
"redirect": {
|
|
|
|
|
|
"description": "重定向地址",
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
|
|
|
|
|
"title": {
|
|
|
|
|
|
"description": "展示名称",
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
|
|
|
|
|
"updatedAt": {
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
|
|
|
|
|
"url": {
|
|
|
|
|
|
"description": "iframe模式下的跳转url,不能与path重复",
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
|
|
|
|
|
"weight": {
|
|
|
|
|
|
"description": "排序权重",
|
|
|
|
|
|
"type": "integer"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"nunu-layout-admin_api_v1.Response": {
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"type": "object",
|
|
|
|
|
|
"properties": {
|
|
|
|
|
|
"code": {
|
|
|
|
|
|
"type": "integer"
|
|
|
|
|
|
},
|
|
|
|
|
|
"data": {},
|
|
|
|
|
|
"message": {
|
|
|
|
|
|
"type": "string"
|
2025-03-24 05:55:56 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"nunu-layout-admin_api_v1.RoleCreateRequest": {
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"type": "object",
|
|
|
|
|
|
"required": [
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"name",
|
|
|
|
|
|
"sid"
|
2025-03-27 07:05:17 +00:00
|
|
|
|
],
|
|
|
|
|
|
"properties": {
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"name": {
|
|
|
|
|
|
"type": "string",
|
|
|
|
|
|
"example": "Admin"
|
|
|
|
|
|
},
|
|
|
|
|
|
"sid": {
|
|
|
|
|
|
"type": "string",
|
|
|
|
|
|
"example": "1"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"nunu-layout-admin_api_v1.RoleDataItem": {
|
|
|
|
|
|
"type": "object",
|
|
|
|
|
|
"properties": {
|
|
|
|
|
|
"createdAt": {
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
|
|
|
|
|
"id": {
|
|
|
|
|
|
"type": "integer"
|
|
|
|
|
|
},
|
|
|
|
|
|
"name": {
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
|
|
|
|
|
"sid": {
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
|
|
|
|
|
"updatedAt": {
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"nunu-layout-admin_api_v1.RoleUpdateRequest": {
|
|
|
|
|
|
"type": "object",
|
|
|
|
|
|
"required": [
|
|
|
|
|
|
"id",
|
|
|
|
|
|
"name",
|
|
|
|
|
|
"sid"
|
|
|
|
|
|
],
|
|
|
|
|
|
"properties": {
|
|
|
|
|
|
"id": {
|
|
|
|
|
|
"type": "integer",
|
|
|
|
|
|
"example": 1
|
|
|
|
|
|
},
|
|
|
|
|
|
"name": {
|
|
|
|
|
|
"type": "string",
|
|
|
|
|
|
"example": "Admin"
|
|
|
|
|
|
},
|
|
|
|
|
|
"sid": {
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"type": "string",
|
2025-03-24 05:55:56 +00:00
|
|
|
|
"example": "1"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"nunu-layout-admin_api_v1.UpdateRolePermissionRequest": {
|
|
|
|
|
|
"type": "object",
|
|
|
|
|
|
"required": [
|
|
|
|
|
|
"list",
|
|
|
|
|
|
"role"
|
|
|
|
|
|
],
|
|
|
|
|
|
"properties": {
|
|
|
|
|
|
"list": {
|
|
|
|
|
|
"type": "array",
|
|
|
|
|
|
"items": {
|
|
|
|
|
|
"type": "string"
|
|
|
|
|
|
},
|
|
|
|
|
|
"example": [
|
|
|
|
|
|
""
|
|
|
|
|
|
]
|
|
|
|
|
|
},
|
|
|
|
|
|
"role": {
|
|
|
|
|
|
"type": "string",
|
2025-03-27 07:05:17 +00:00
|
|
|
|
"example": "admin"
|
2025-03-24 05:55:56 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
"securityDefinitions": {
|
|
|
|
|
|
"Bearer": {
|
|
|
|
|
|
"type": "apiKey",
|
|
|
|
|
|
"name": "Authorization",
|
|
|
|
|
|
"in": "header"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}`
|
|
|
|
|
|
|
|
|
|
|
|
// SwaggerInfo holds exported Swagger Info so clients can modify it
|
|
|
|
|
|
var SwaggerInfo = &swag.Spec{
|
|
|
|
|
|
Version: "1.0.0",
|
|
|
|
|
|
Host: "localhost:8000",
|
|
|
|
|
|
BasePath: "",
|
|
|
|
|
|
Schemes: []string{},
|
|
|
|
|
|
Title: "Nunu Example API",
|
|
|
|
|
|
Description: "This is a sample server celler server.",
|
|
|
|
|
|
InfoInstanceName: "swagger",
|
|
|
|
|
|
SwaggerTemplate: docTemplate,
|
|
|
|
|
|
LeftDelim: "{{",
|
|
|
|
|
|
RightDelim: "}}",
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
|
|
swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
|
|
|
|
|
|
}
|