1 Star 0 Fork 62

itmrliu / simple-admin-core

forked from 几颗酥 / simple-admin-core 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
core.yml 108.33 KB
一键复制 编辑 原始数据 按行查看 历史
几颗酥 提交于 2022-11-13 09:41 . refactor: response data
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067
basePath: /
consumes:
- application/json
definitions:
ApiAuthorityInfo:
description: The response data of api authorization | API授权数据
properties:
method:
description: API method | API请求方法
type: string
x-go-name: Method
path:
description: API path | API 路径
type: string
x-go-name: Path
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
ApiAuthorityListInfo:
description: The data of api authorization list | API授权列表数据
properties:
data:
description: The api authorization list data | API授权列表数据
items:
$ref: '#/definitions/ApiAuthorityInfo'
type: array
x-go-name: Data
total:
description: The total number of data | 数据总数
format: uint64
type: integer
x-go-name: Total
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
ApiAuthorityListResp:
description: The response data of api authorization list | API授权列表返回数据
properties:
code:
description: Error code | 错误代码
format: int64
type: integer
x-go-name: Code
data:
$ref: '#/definitions/ApiAuthorityListInfo'
description: Data | 数据
type: string
x-go-name: Data
msg:
description: Message | 提示信息
type: string
x-go-name: Msg
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
ApiInfo:
description: The response data of API information | API信息
properties:
createdAt:
description: Create date | 创建日期
format: int64
type: integer
x-go-name: CreatedAt
description:
description: API Description | API 描述
type: string
x-go-name: Description
group:
description: API group | API分组
type: string
x-go-name: Group
id:
description: ID
format: uint64
type: integer
x-go-name: Id
method:
description: API request method e.g. POST | API请求类型 如POST
type: string
x-go-name: Method
path:
description: API path | API路径
type: string
x-go-name: Path
title:
description: Api translation | API 多语言翻译
type: string
x-go-name: Title
updatedAt:
description: Update date | 更新日期
format: int64
type: integer
x-go-name: UpdatedAt
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
ApiListInfo:
description: API list data | API 列表数据
properties:
data:
description: The API list data | API列表数据
items:
$ref: '#/definitions/ApiInfo'
type: array
x-go-name: Data
total:
description: The total number of data | 数据总数
format: uint64
type: integer
x-go-name: Total
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
ApiListReq:
description: Get API list request params | API列表请求参数
properties:
description:
description: API Description | API 描述
maxLength: 50
type: string
x-go-name: Description
group:
description: API group | API分组
maxLength: 10
type: string
x-go-name: Group
method:
description: API request method e.g. POST | API请求类型 如POST
maxLength: 4
type: string
x-go-name: Method
page:
description: Page number | 第几页
format: uint64
type: integer
x-go-name: Page
pageSize:
description: Page size | 单页数据行数
format: uint64
maximum: 100000
type: integer
x-go-name: PageSize
path:
description: API path | API路径
maxLength: 100
type: string
x-go-name: Path
required:
- page
- pageSize
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
ApiListResp:
description: The response data of API list | API列表数据
properties:
code:
description: Error code | 错误代码
format: int64
type: integer
x-go-name: Code
data:
$ref: '#/definitions/ApiListInfo'
description: Data | 数据
type: string
x-go-name: Data
msg:
description: Message | 提示信息
type: string
x-go-name: Msg
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
BaseDataInfo:
description: The basic response with data | 基础带数据信息
properties:
code:
description: Error code | 错误代码
format: int64
type: integer
x-go-name: Code
data:
description: Data | 数据
type: string
x-go-name: Data
msg:
description: Message | 提示信息
type: string
x-go-name: Msg
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
BaseInfo:
description: The base response data | 基础信息
properties:
createdAt:
description: Create date | 创建日期
format: int64
type: integer
x-go-name: CreatedAt
id:
description: ID
format: uint64
type: integer
x-go-name: Id
updatedAt:
description: Update date | 更新日期
format: int64
type: integer
x-go-name: UpdatedAt
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
BaseListInfo:
description: The basic response with data | 基础带数据信息
properties:
data:
description: Data | 数据
type: string
x-go-name: Data
total:
description: The total number of data | 数据总数
format: uint64
type: integer
x-go-name: Total
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
BaseMsgResp:
description: The basic response without data | 基础不带数据信息
properties:
code:
description: Error code | 错误代码
format: int64
type: integer
x-go-name: Code
msg:
description: Message | 提示信息
type: string
x-go-name: Msg
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
CallbackResp:
description: The oauth callback response data | Oauth回调数据
properties:
expire:
description: Expire timestamp | 过期时间戳
format: uint64
type: integer
x-go-name: Expire
role:
$ref: '#/definitions/RoleInfoSimple'
token:
description: Token for authorization | 验证身份的token
type: string
x-go-name: Token
userId:
description: User's UUID | 用户的UUID
type: string
x-go-name: UserId
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
CaptchaInfo:
description: The information of captcha | 验证码数据
properties:
captchaId:
type: string
x-go-name: CaptchaId
imgPath:
type: string
x-go-name: ImgPath
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
CaptchaResp:
description: The response data of captcha | 验证码返回数据
properties:
code:
description: Error code | 错误代码
format: int64
type: integer
x-go-name: Code
data:
$ref: '#/definitions/CaptchaInfo'
description: Data | 数据
type: string
x-go-name: Data
msg:
description: Message | 提示信息
type: string
x-go-name: Msg
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
ChangePasswordReq:
description: change user's password request | 修改密码请求参数
properties:
newPassword:
description: User's new password | 用户新密码
maxLength: 30
type: string
x-go-name: NewPassword
oldPassword:
description: User's old password | 用户旧密码
maxLength: 30
type: string
x-go-name: OldPassword
required:
- oldPassword
- newPassword
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
CreateOrUpdateApiAuthorityReq:
description: Create or update api authorization information request | 创建或更新API授权信息
properties:
data:
description: API authorization list | API授权列表数据
items:
$ref: '#/definitions/ApiAuthorityInfo'
type: array
x-go-name: Data
roleId:
description: Role ID | 角色ID
format: uint64
maximum: 1000
type: integer
x-go-name: RoleId
required:
- roleId
- data
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
CreateOrUpdateApiReq:
description: Create or update API information request | 创建或更新API信息
properties:
description:
description: API Description | API 描述
maxLength: 50
type: string
x-go-name: Description
group:
description: |-
API group | API分组
Require: true
maxLength: 10
minLength: 1
type: string
x-go-name: Group
id:
description: ID
format: uint64
type: integer
x-go-name: Id
method:
description: API request method e.g. POST | API请求类型 如POST
maxLength: 4
minLength: 3
type: string
x-go-name: Method
path:
description: API path | API路径
maxLength: 50
minLength: 1
type: string
x-go-name: Path
required:
- id
- path
- description
- method
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
CreateOrUpdateDictionaryDetailReq:
description: Create or update dictionary KV information request | 创建或更新字典键值信息请求
properties:
id:
description: ID
format: uint64
type: integer
x-go-name: Id
key:
description: Detail key | 键
maxLength: 50
minLength: 1
type: string
x-go-name: Key
parentId:
description: Parent ID | 所属字典ID
format: uint64
type: integer
x-go-name: ParentId
status:
description: Status | 状态
format: uint64
type: integer
x-go-name: Status
title:
description: Detail title | 字典值显示名称
maxLength: 50
minLength: 1
type: string
x-go-name: Title
value:
description: Detail value | 值
type: string
x-go-name: Value
required:
- id
- title
- key
- value
- status
- parentId
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
CreateOrUpdateDictionaryReq:
description: Create or update dictionary information request | 创建或更新字典信息请求
properties:
description:
description: Dictionary description | 字典描述
maxLength: 50
type: string
x-go-name: Description
id:
description: ID
format: uint64
type: integer
x-go-name: Id
name:
description: Dictionary name | 字典名称
maxLength: 50
minLength: 1
type: string
x-go-name: Name
status:
description: Dictionary status | 字典状态
format: uint64
type: integer
x-go-name: Status
title:
description: Dictionary title | 字典显示名称
maxLength: 50
minLength: 1
type: string
x-go-name: Title
required:
- id
- title
- name
- status
- description
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
CreateOrUpdateMenuParamReq:
description: Create or update menu extra parameters request params | 创建或更新菜单额外参数的请求参数
properties:
dataType:
description: Data Type | 数据类型
maxLength: 8
minLength: 1
type: string
x-go-name: DataType
id:
description: ID
format: uint64
type: integer
x-go-name: Id
key:
description: Key | 键
maxLength: 20
minLength: 1
type: string
x-go-name: Key
menuId:
description: Menu ID | 菜单ID
format: uint64
type: integer
x-go-name: MenuId
value:
description: Value | 值
maxLength: 100
minLength: 1
type: string
x-go-name: Value
required:
- id
- menuId
- dataType
- key
- value
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
CreateOrUpdateMenuReq:
description: Create or update menu information request params | 创建或更新菜单信息参数
properties:
affix:
description: Affix tab | 是否固定标签
type: boolean
x-go-name: Affix
carryParam:
description: The route carries parameters or not | 如果该路由会携带参数,且需要在tab页上面显示。则需要设置为true
type: boolean
x-go-name: CarryParam
component:
description: The component path | 组件路径
example: /sys/menu/index
maxLength: 100
type: string
x-go-name: Component
currentActiveMenu:
description: Current active menu, if not nil, it will active the tab | 当前激活的菜单
maxLength: 30
type: string
x-go-name: CurrentActiveMenu
disabled:
description: If disabled | 是否禁用菜单
type: boolean
x-go-name: Disabled
dynamicLevel:
description: The maximum number of pages the router can open | 动态路由可打开Tab页数
format: uint32
type: integer
x-go-name: DynamicLevel
frameSrc:
description: Iframe path | 内嵌iframe的地址
type: string
x-go-name: FrameSrc
hideBreadcrumb:
description: If hide the breadcrumb | 隐藏面包屑
type: boolean
x-go-name: HideBreadcrumb
hideChildrenInMenu:
description: Hide children menu or not | 隐藏所有子菜单
type: boolean
x-go-name: HideChildrenInMenu
hideMenu:
description: Hide menu | 隐藏菜单
type: boolean
x-go-name: HideMenu
hideTab:
description: Hide the tab header | 当前路由不在标签页显示
type: boolean
x-go-name: HideTab
icon:
description: Menu Icon | 菜单图标
maxLength: 50
type: string
x-go-name: Icon
id:
description: ID
format: uint64
type: integer
x-go-name: Id
ignoreKeepAlive:
description: Do not keep alive the tab | 不缓存Tab
type: boolean
x-go-name: IgnoreKeepAlive
name:
description: Menu name | 菜单名
maxLength: 50
type: string
x-go-name: Name
orderNo:
description: The sorting number | 排序编号
format: uint32
maximum: 1000
type: integer
x-go-name: OrderNo
parentId:
description: Parent menu ID | 父级菜单ID
format: uint64
type: integer
x-go-name: ParentId
path:
description: The path to visit menu | 菜单访问路径
maxLength: 30
type: string
x-go-name: Path
realPath:
description: The real path of the route without dynamic part | 动态路由的实际Path, 即去除路由的动态部分
type: string
x-go-name: RealPath
redirect:
description: Redirect path | 跳转路径
example: https://www.google.com
maxLength: 100
type: string
x-go-name: Redirect
title:
description: Menu title show in page | 菜单显示名
maxLength: 50
type: string
x-go-name: Title
type:
description: 'Menu type: directory or menu | 菜单类型: 目录或菜单'
format: uint32
maximum: 10
type: integer
x-go-name: MenuType
required:
- id
- type
- parentId
- path
- name
- redirect
- component
- orderNo
- disabled
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
CreateOrUpdateProviderReq:
description: Create or update provider information request | 创建或更新提供商信息
properties:
authStyle:
description: |-
Auth Style is specifies how the endpoint wants the client ID & client secret sent. The zero value means to auto-detect. | 鉴权方式, 0 表示自动检测
0 auto detect 1 client ID and client secret 2 username and password
example: 0
format: int64
type: integer
x-go-name: AuthStyle
authURL:
description: Auth URL | 鉴权URL
maxLength: 200
type: string
x-go-name: AuthURL
clientId:
description: Client ID | 客户端ID
maxLength: 100
type: string
x-go-name: ClientId
clientSecret:
description: |-
Client secret | 客户端密码
Require: true
maxLength: 100
minLength: 1
type: string
x-go-name: ClientSecret
id:
description: ID
format: uint64
type: integer
x-go-name: Id
infoURL:
description: Get User information URL | 获取用户信息地址
maxLength: 200
type: string
x-go-name: InfoURL
name:
description: Provider name | 提供商名字
maxLength: 50
minLength: 1
type: string
x-go-name: Name
redirectURL:
description: Redirect URL | 跳转URL
maxLength: 200
type: string
x-go-name: RedirectURL
scopes:
description: Scopes | 范围
maxLength: 200
type: string
x-go-name: Scopes
tokenURL:
description: Token URL | 获取 Token 的网址
maxLength: 200
type: string
x-go-name: TokenURL
required:
- id
- name
- clientId
- redirectURL
- scopes
- authURL
- tokenURL
- authStyle
- infoURL
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
CreateOrUpdateTokenReq:
description: Create or update token information request | 创建或更新token信息
properties:
ID:
description: ID
format: uint64
type: integer
x-go-name: Id
UUID:
description: User's UUID | 用户的UUID
maxLength: 36
type: string
expiredAt:
description: Expire time | 过期时间
format: int64
type: integer
x-go-name: ExpiredAt
source:
description: Log in source such as github | Token 来源 (本地为core, 第三方如github等)
maxLength: 50
type: string
x-go-name: Source
status:
description: JWT status 0 ban 1 active | JWT状态, 0 禁止 1 正常
format: uint64
type: integer
x-go-name: Status
token:
description: Token string | Token 字符串
type: string
x-go-name: Token
required:
- ID
- UUID
- token
- source
- status
- expiredAt
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
CreateOrUpdateUserReq:
description: Create or update user information request | 创建或更新用户信息
properties:
avatar:
description: The user's avatar path | 用户的头像路径
example: https://localhost/static/1.png
type: string
x-go-name: Avatar
email:
description: The user's email address | 用户的邮箱
maxLength: 100
type: string
x-go-name: Email
id:
description: User's id | 用户ID
format: uint64
type: integer
x-go-name: Id
mobile:
description: User's mobile phone number | 用户的手机号码
maxLength: 18
type: string
x-go-name: Mobile
nickname:
description: User's nickname | 用户的昵称
maxLength: 30
type: string
x-go-name: Nickname
password:
description: Password | 密码
maxLength: 30
minLength: 6
type: string
x-go-name: Password
roleId:
description: User's role id | 用户的角色ID
format: uint64
maximum: 1000
type: integer
x-go-name: RoleId
status:
description: |-
The user's status | 用户状态
1 normal, 2 ban | 1 正常 2 拉黑
format: uint64
maximum: 20
type: integer
x-go-name: Status
username:
description: User Name | 用户名
maxLength: 30
type: string
x-go-name: Username
required:
- id
- username
- nickname
- password
- mobile
- roleId
- email
- avatar
- status
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
DictionaryDetailInfo:
description: The response data of dictionary information | 字典信息
properties:
createdAt:
description: Create date | 创建日期
format: int64
type: integer
x-go-name: CreatedAt
id:
description: ID
format: uint64
type: integer
x-go-name: Id
key:
description: Key name | 键
type: string
x-go-name: Key
status:
description: Status | 状态
format: uint64
type: integer
x-go-name: Status
title:
description: Dictionary title | 字典显示名称
type: string
x-go-name: Title
updatedAt:
description: Update date | 更新日期
format: int64
type: integer
x-go-name: UpdatedAt
value:
description: Value | 值
type: string
x-go-name: Value
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
DictionaryDetailListInfo:
description: The data of dictionary KV list | 字典值的列表数据
properties:
data:
description: The dictionary list data | 字典列表数据
items:
$ref: '#/definitions/DictionaryDetailInfo'
type: array
x-go-name: Data
total:
description: The total number of data | 数据总数
format: uint64
type: integer
x-go-name: Total
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
DictionaryDetailListResp:
description: The response data of dictionary KV list | 字典值的列表数据
properties:
code:
description: Error code | 错误代码
format: int64
type: integer
x-go-name: Code
data:
$ref: '#/definitions/DictionaryDetailListInfo'
description: Data | 数据
type: string
x-go-name: Data
msg:
description: Message | 提示信息
type: string
x-go-name: Msg
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
DictionaryDetailReq:
description: Get dictionary detail list by dictionary name request | 根据字典名称获取对应键值请求
properties:
name:
description: Dictionary name | 字典名
type: string
x-go-name: Name
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
DictionaryInfo:
description: The response data of dictionary information | 字典信息
properties:
createdAt:
description: Create date | 创建日期
format: int64
type: integer
x-go-name: CreatedAt
description:
description: Dictionary description | 字典描述
type: string
x-go-name: Description
id:
description: ID
format: uint64
type: integer
x-go-name: Id
name:
description: Dictionary name | 字典名称
type: string
x-go-name: Name
status:
description: Dictionary status | 字典状态
format: uint64
type: integer
x-go-name: Status
title:
description: Dictionary title | 字典显示名称
type: string
x-go-name: Title
updatedAt:
description: Update date | 更新日期
format: int64
type: integer
x-go-name: UpdatedAt
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
DictionaryListInfo:
description: The response data of dictionary list | 字典列表数据
properties:
data:
description: The dictionary list data | 字典列表数据
items:
$ref: '#/definitions/DictionaryInfo'
type: array
x-go-name: Data
total:
description: The total number of data | 数据总数
format: uint64
type: integer
x-go-name: Total
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
DictionaryListReq:
description: Get dictionary list request params | 字典列表请求参数
properties:
name:
description: Dictionary name | 字典名称
maxLength: 50
type: string
x-go-name: Name
page:
description: Page number | 第几页
format: uint64
type: integer
x-go-name: Page
pageSize:
description: Page size | 单页数据行数
format: uint64
maximum: 100000
type: integer
x-go-name: PageSize
title:
description: Dictionary title | 字典显示名称
maxLength: 50
type: string
x-go-name: Title
required:
- page
- pageSize
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
DictionaryListResp:
description: The response data of dictionary list | 字典列表数据
properties:
code:
description: Error code | 错误代码
format: int64
type: integer
x-go-name: Code
data:
$ref: '#/definitions/DictionaryListInfo'
description: Data | 数据
type: string
x-go-name: Data
msg:
description: Message | 提示信息
type: string
x-go-name: Msg
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
GetMenuListBase:
description: The response data of role menu list data | 角色菜单列表数据
properties:
children:
description: |-
children | 子集
in: body
items:
$ref: '#/definitions/GetMenuListBase'
type: array
x-go-name: Children
component:
description: The component path | 组件路径
type: string
x-go-name: Component
disabled:
description: If disabled | 是否禁用菜单
type: boolean
x-go-name: Disabled
level:
description: The menu level | 菜单等级
format: uint32
type: integer
x-go-name: MenuLevel
meta:
$ref: '#/definitions/Meta'
name:
description: Menu name | 菜单名
type: string
x-go-name: Name
orderNo:
description: The sorting number | 排序编号
format: uint32
type: integer
x-go-name: OrderNo
parentId:
description: Parent menu ID | 父级菜单ID
format: uint64
type: integer
x-go-name: ParentId
path:
description: The path to visit menu | 菜单访问路径
type: string
x-go-name: Path
redirect:
description: Redirect path | 跳转路径
type: string
x-go-name: Redirect
type:
description: 'Menu type: directory or menu | 菜单类型: 目录或菜单'
format: uint32
type: integer
x-go-name: MenuType
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
GetMenuListBaseInfo:
description: The data of role menu list, show after user login | 角色菜单列表数据
properties:
data:
description: The response data of role menu list data | 角色菜单列表数据
items:
$ref: '#/definitions/GetMenuListBase'
type: array
x-go-name: Data
total:
description: The total number of data | 数据总数
format: uint64
type: integer
x-go-name: Total
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
GetMenuListBaseResp:
description: The response data of role menu list, show after user login | 角色菜单列表数据, 登录后自动获取
properties:
code:
description: Error code | 错误代码
format: int64
type: integer
x-go-name: Code
data:
$ref: '#/definitions/GetMenuListBaseInfo'
description: Data | 数据
type: string
x-go-name: Data
msg:
description: Message | 提示信息
type: string
x-go-name: Msg
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
GetUserInfoResp:
description: The response data of user's basic information | 用户基本信息返回数据
properties:
code:
description: Error code | 错误代码
format: int64
type: integer
x-go-name: Code
data:
$ref: '#/definitions/UserBaseInfo'
description: Data | 数据
type: string
x-go-name: Data
msg:
description: Message | 提示信息
type: string
x-go-name: Msg
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
GetUserListReq:
description: Get user list request | 获取用户列表请求参数
properties:
email:
description: The user's email address | 用户的邮箱
maxLength: 100
type: string
x-go-name: Email
mobile:
description: User's mobile phone number | 用户的手机号码
maxLength: 18
type: string
x-go-name: Mobile
nickname:
description: User's nickname | 用户的昵称
maxLength: 10
type: string
x-go-name: Nickname
page:
description: Page number | 第几页
format: uint64
type: integer
x-go-name: Page
pageSize:
description: Page size | 单页数据行数
format: uint64
maximum: 100000
type: integer
x-go-name: PageSize
roleId:
description: User's role ID | 用户的角色ID
format: uint64
maximum: 1000
type: integer
x-go-name: RoleId
username:
description: User Name | 用户名
maxLength: 20
type: string
x-go-name: Username
required:
- page
- pageSize
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
GetUserRoleInfo:
description: The response data of user's basic role information | 用户角色信息数据
properties:
roleName:
description: Role name | 角色名
type: string
x-go-name: RoleName
value:
description: Role value for permission control | 角色值用于前端页面组件显示权限
type: string
x-go-name: Value
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
IDPathReq:
description: Basic id request | 基础id参数请求
properties:
Id:
description: ID
format: uint64
type: integer
required:
- Id
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
IDReq:
description: Basic id request | 基础id参数请求
properties:
id:
description: ID
format: uint64
type: integer
x-go-name: Id
required:
- id
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
LoginInfo:
description: The log in information | 登陆返回的数据信息
properties:
expire:
description: Expire timestamp | 过期时间戳
format: uint64
type: integer
x-go-name: Expire
role:
$ref: '#/definitions/RoleInfoSimple'
token:
description: Token for authorization | 验证身份的token
type: string
x-go-name: Token
userId:
description: User's UUID | 用户的UUID
type: string
x-go-name: UserId
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
LoginReq:
description: login request | 登录参数
properties:
captcha:
description: The Captcha which users input | 用户输入的验证码
maxLength: 5
type: string
x-go-name: Captcha
captchaId:
description: Captcha ID which store in redis | 验证码编号, 存在redis中
maxLength: 20
type: string
x-go-name: CaptchaId
password:
description: Password | 密码
maxLength: 30
minLength: 6
type: string
x-go-name: Password
username:
description: User Name | 用户名
maxLength: 20
type: string
x-go-name: Username
required:
- username
- password
- captchaId
- captcha
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
LoginResp:
description: The log in response data | 登录返回数据
properties:
code:
description: Error code | 错误代码
format: int64
type: integer
x-go-name: Code
data:
$ref: '#/definitions/LoginInfo'
description: Data | 数据
type: string
x-go-name: Data
msg:
description: Message | 提示信息
type: string
x-go-name: Msg
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
MenuAuthorityInfoReq:
description: Create or update menu authorization information request params | 创建或更新菜单授权信息参数
properties:
menuIds:
description: menu ID array | 菜单ID数组
items:
format: uint64
type: integer
type: array
x-go-name: MenuIds
roleId:
description: role ID | 角色ID
format: uint64
maximum: 1000
type: integer
x-go-name: RoleId
required:
- roleId
- menuIds
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
MenuAuthorityInfoResp:
description: Menu authorization response data | 菜单授权信息数据
properties:
code:
description: Error code | 错误代码
format: int64
type: integer
x-go-name: Code
data:
$ref: '#/definitions/MenuAuthorityInfoReq'
description: Data | 数据
type: string
x-go-name: Data
msg:
description: Message | 提示信息
type: string
x-go-name: Msg
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
MenuInfo:
description: The response data of menu information | 菜单返回数据
properties:
affix:
description: Affix tab | 是否固定标签
type: boolean
x-go-name: Affix
carryParam:
description: The route carries parameters or not | 如果该路由会携带参数,且需要在tab页上面显示。则需要设置为true
type: boolean
x-go-name: CarryParam
children:
description: |-
children | 子集
in: body
items:
$ref: '#/definitions/MenuInfo'
type: array
x-go-name: Children
component:
description: The component path | 组件路径
type: string
x-go-name: Component
createdAt:
description: Create date | 创建日期
format: int64
type: integer
x-go-name: CreatedAt
currentActiveMenu:
description: Current active menu, if not nil, it will active the tab | 当前激活的菜单
maxLength: 30
type: string
x-go-name: CurrentActiveMenu
disabled:
description: If disabled | 是否禁用菜单
type: boolean
x-go-name: Disabled
dynamicLevel:
description: The maximum number of pages the router can open | 动态路由可打开Tab页数
format: uint32
type: integer
x-go-name: DynamicLevel
frameSrc:
description: Iframe path | 内嵌iframe的地址
type: string
x-go-name: FrameSrc
hideBreadcrumb:
description: If hide the breadcrumb | 隐藏面包屑
type: boolean
x-go-name: HideBreadcrumb
hideChildrenInMenu:
description: Hide children menu or not | 隐藏所有子菜单
type: boolean
x-go-name: HideChildrenInMenu
hideMenu:
description: Hide menu | 隐藏菜单
type: boolean
x-go-name: HideMenu
hideTab:
description: Hide the tab header | 当前路由不在标签页显示
type: boolean
x-go-name: HideTab
icon:
description: Menu Icon | 菜单图标
maxLength: 50
type: string
x-go-name: Icon
id:
description: ID
format: uint64
type: integer
x-go-name: Id
ignoreKeepAlive:
description: Do not keep alive the tab | 不缓存Tab
type: boolean
x-go-name: IgnoreKeepAlive
level:
description: The menu level | 菜单等级
format: uint32
type: integer
x-go-name: MenuLevel
name:
description: Menu name | 菜单名
type: string
x-go-name: Name
orderNo:
description: The sorting number | 排序编号
format: uint32
type: integer
x-go-name: OrderNo
parentId:
description: Parent menu ID | 父级菜单ID
format: uint64
type: integer
x-go-name: ParentId
path:
description: The path to visit menu | 菜单访问路径
type: string
x-go-name: Path
realPath:
description: The real path of the route without dynamic part | 动态路由的实际Path, 即去除路由的动态部分
type: string
x-go-name: RealPath
redirect:
description: Redirect path | 跳转路径
type: string
x-go-name: Redirect
title:
description: Menu title show in page | 菜单显示名
maxLength: 50
type: string
x-go-name: Title
trans:
description: Title translation | 标题翻译
type: string
x-go-name: Trans
type:
description: |-
Menu type: directory or menu | 菜单类型: 目录或菜单
0. directory group 1. menu | 0 目录 1 菜单
format: uint32
type: integer
x-go-name: MenuType
updatedAt:
description: Update date | 更新日期
format: int64
type: integer
x-go-name: UpdatedAt
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
MenuListInfo:
description: The data of menu list | 菜单列表数据
properties:
data:
description: The menu list data | 菜单列表数据
items:
$ref: '#/definitions/MenuInfo'
type: array
x-go-name: Data
total:
description: The total number of data | 数据总数
format: uint64
type: integer
x-go-name: Total
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
MenuListResp:
description: The response data of menu list | 菜单列表返回数据
properties:
code:
description: Error code | 错误代码
format: int64
type: integer
x-go-name: Code
data:
$ref: '#/definitions/MenuListInfo'
description: Data | 数据
type: string
x-go-name: Data
msg:
description: Message | 提示信息
type: string
x-go-name: Msg
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
MenuParamInfo:
description: The information of menu parameter | 菜单参数数据
properties:
createdAt:
description: Create date | 创建日期
format: int64
type: integer
x-go-name: CreatedAt
dataType:
description: Data Type | 数据类型
type: string
x-go-name: DataType
id:
description: ID
format: uint64
type: integer
x-go-name: Id
key:
description: Key | 键
type: string
x-go-name: Key
updatedAt:
description: Update date | 更新日期
format: int64
type: integer
x-go-name: UpdatedAt
value:
description: Value | 值
type: string
x-go-name: Value
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
MenuParamListByMenuIdInfo:
description: The response data of menu parameters list which belong to some menu | 某个菜单的菜单参数列表数据
properties:
data:
description: The menu list data | 菜单列表数据
items:
$ref: '#/definitions/MenuParamInfo'
type: array
x-go-name: Data
total:
description: The total number of data | 数据总数
format: uint64
type: integer
x-go-name: Total
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
MenuParamListByMenuIdResp:
description: The response data of menu parameters list which belong to some menu | 某个菜单的菜单参数列表数据
properties:
code:
description: Error code | 错误代码
format: int64
type: integer
x-go-name: Code
data:
$ref: '#/definitions/MenuParamListByMenuIdInfo'
description: Data | 数据
type: string
x-go-name: Data
msg:
description: Message | 提示信息
type: string
x-go-name: Msg
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
MenuParamResp:
description: The response data of menu parameters | 菜单参数返回数据
properties:
code:
description: Error code | 错误代码
format: int64
type: integer
x-go-name: Code
data:
$ref: '#/definitions/MenuParamInfo'
description: Data | 数据
type: string
x-go-name: Data
msg:
description: Message | 提示信息
type: string
x-go-name: Msg
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
Meta:
description: The meta data of menu | 菜单的meta数据
properties:
affix:
description: Affix tab | 是否固定标签
type: boolean
x-go-name: Affix
carryParam:
description: The route carries parameters or not | 如果该路由会携带参数,且需要在tab页上面显示。则需要设置为true
type: boolean
x-go-name: CarryParam
currentActiveMenu:
description: Current active menu, if not nil, it will active the tab | 当前激活的菜单
maxLength: 30
type: string
x-go-name: CurrentActiveMenu
dynamicLevel:
description: The maximum number of pages the router can open | 动态路由可打开Tab页数
format: uint32
type: integer
x-go-name: DynamicLevel
frameSrc:
description: Iframe path | 内嵌iframe的地址
type: string
x-go-name: FrameSrc
hideBreadcrumb:
description: If hide the breadcrumb | 隐藏面包屑
type: boolean
x-go-name: HideBreadcrumb
hideChildrenInMenu:
description: Hide children menu or not | 隐藏所有子菜单
type: boolean
x-go-name: HideChildrenInMenu
hideMenu:
description: Hide menu | 隐藏菜单
type: boolean
x-go-name: HideMenu
hideTab:
description: Hide the tab header | 当前路由不在标签页显示
type: boolean
x-go-name: HideTab
icon:
description: Menu Icon | 菜单图标
maxLength: 50
type: string
x-go-name: Icon
ignoreKeepAlive:
description: Do not keep alive the tab | 不缓存Tab
type: boolean
x-go-name: IgnoreKeepAlive
realPath:
description: The real path of the route without dynamic part | 动态路由的实际Path, 即去除路由的动态部分
type: string
x-go-name: RealPath
title:
description: Menu title show in page | 菜单显示名
maxLength: 50
type: string
x-go-name: Title
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
OauthLoginReq:
description: Oauth log in request | Oauth 登录请求
properties:
provider:
description: Provider name | 提供商名字
example: google
maxLength: 40
type: string
x-go-name: Provider
state:
description: State code to avoid hack | 状态码,请求前后相同避免安全问题
maxLength: 30
type: string
x-go-name: State
required:
- state
- provider
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
PageInfo:
description: The page request parameters | 列表请求参数
properties:
page:
description: Page number | 第几页
format: uint64
type: integer
x-go-name: Page
pageSize:
description: Page size | 单页数据行数
format: uint64
maximum: 100000
type: integer
x-go-name: PageSize
required:
- page
- pageSize
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
PermCodeResp:
description: The permission code for front end permission control | 权限码: 用于前端权限控制
properties:
code:
description: Error code | 错误代码
format: int64
type: integer
x-go-name: Code
data:
description: Permission code data | 权限码数据
items:
type: string
type: array
x-go-name: Data
msg:
description: Message | 提示信息
type: string
x-go-name: Msg
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
ProfileInfo:
description: The profile information | 个人信息
properties:
avatar:
description: The user's avatar path | 用户的头像路径
type: string
x-go-name: Avatar
email:
description: The user's email address | 用户的邮箱
type: string
x-go-name: Email
mobile:
description: User's mobile phone number | 用户的手机号码
type: string
x-go-name: Mobile
nickname:
description: user's nickname | 用户的昵称
type: string
x-go-name: Nickname
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
ProfileReq:
description: The profile request data | 个人信息请求参数
properties:
avatar:
description: The user's avatar path | 用户的头像路径
type: string
x-go-name: Avatar
email:
description: The user's email address | 用户的邮箱
maxLength: 100
type: string
x-go-name: Email
mobile:
description: User's mobile phone number | 用户的手机号码
maxLength: 18
type: string
x-go-name: Mobile
nickname:
description: user's nickname | 用户的昵称
maxLength: 10
type: string
x-go-name: Nickname
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
ProfileResp:
description: The profile response data | 个人信息返回数据
properties:
code:
description: Error code | 错误代码
format: int64
type: integer
x-go-name: Code
data:
$ref: '#/definitions/ProfileInfo'
description: Data | 数据
type: string
x-go-name: Data
msg:
description: Message | 提示信息
type: string
x-go-name: Msg
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
ProviderInfo:
description: The response data of oauth provider information | 提供者信息
properties:
authStyle:
description: Auth Style is specifies how the endpoint wants the client ID & client secret sent. The zero value means to auto-detect. | 鉴权方式, 0 表示自动检测
format: int64
type: integer
x-go-name: AuthStyle
authURL:
description: Auth URL | 鉴权URL
type: string
x-go-name: AuthURL
clientId:
description: Client ID | 客户端ID
type: string
x-go-name: ClientId
clientSecret:
description: Client secret | 客户端密码
type: string
x-go-name: ClientSecret
createdAt:
description: Create date | 创建日期
format: int64
type: integer
x-go-name: CreatedAt
id:
description: ID
format: uint64
type: integer
x-go-name: Id
infoURL:
description: Get User information URL | 获取用户信息地址
type: string
x-go-name: InfoURL
name:
description: Provider name | 提供商名字
type: string
x-go-name: Name
redirectURL:
description: Redirect URL | 跳转URL
type: string
x-go-name: RedirectURL
scopes:
description: Scopes | 范围
type: string
x-go-name: Scopes
tokenURL:
description: Token URL | 获取 Token 的网址
type: string
x-go-name: TokenURL
updatedAt:
description: Update date | 更新日期
format: int64
type: integer
x-go-name: UpdatedAt
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
ProviderListInfo:
description: The data of provider list | 提供商列表数据
properties:
data:
description: The provider list data | 提供商列表数据
items:
$ref: '#/definitions/ProviderInfo'
type: array
x-go-name: Data
total:
description: The total number of data | 数据总数
format: uint64
type: integer
x-go-name: Total
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
ProviderListResp:
description: The response data of provider list | 提供商列表返回数据
properties:
code:
description: Error code | 错误代码
format: int64
type: integer
x-go-name: Code
data:
$ref: '#/definitions/ProviderListInfo'
description: Data | 数据
type: string
x-go-name: Data
msg:
description: Message | 提示信息
type: string
x-go-name: Msg
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
RedirectInfo:
description: Redirect information | 跳转网址
properties:
URL:
description: Redirect URL | 跳转网址
type: string
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
RedirectResp:
description: Redirect response | 跳转网址返回信息
properties:
code:
description: Error code | 错误代码
format: int64
type: integer
x-go-name: Code
data:
$ref: '#/definitions/RedirectInfo'
description: Data | 数据
type: string
x-go-name: Data
msg:
description: Message | 提示信息
type: string
x-go-name: Msg
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
RegisterReq:
description: register request | 注册参数
properties:
captcha:
description: The Captcha which users input | 用户输入的验证码
maxLength: 5
type: string
x-go-name: Captcha
captchaId:
description: Captcha ID which store in redis | 验证码编号, 存在redis中
maxLength: 20
type: string
x-go-name: CaptchaId
email:
description: The user's email address | 用户的邮箱
maxLength: 100
type: string
x-go-name: Email
password:
description: Password | 密码
maxLength: 30
minLength: 6
type: string
x-go-name: Password
username:
description: User Name | 用户名
maxLength: 20
type: string
x-go-name: Username
required:
- username
- password
- captchaId
- captcha
- email
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
RoleInfo:
description: Create or update role information params | 创建或更新角色信息参数
properties:
createdAt:
description: Create date | 创建日期
format: int64
type: integer
x-go-name: CreatedAt
defaultRouter:
description: Role's default page | 角色默认管理页面
maxLength: 20
type: string
x-go-name: DefaultRouter
id:
description: ID
format: uint64
type: integer
x-go-name: Id
name:
description: Role Name | 角色名
maxLength: 20
type: string
x-go-name: Name
orderNo:
description: Role's sorting number | 角色排序
format: uint32
maximum: 1000
type: integer
x-go-name: OrderNo
remark:
description: Role remark | 角色备注
maxLength: 200
type: string
x-go-name: Remark
status:
description: Role status | 角色状态
format: uint32
maximum: 20
type: integer
x-go-name: Status
title:
description: Role translation | 角色名称国际化
type: string
x-go-name: Title
updatedAt:
description: Update date | 更新日期
format: int64
type: integer
x-go-name: UpdatedAt
value:
description: Role value | 角色值
maxLength: 10
type: string
x-go-name: Value
required:
- name
- value
- defaultRouter
- status
- remark
- orderNo
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
RoleInfoSimple:
description: The simple role data | 简单的角色数据
properties:
roleName:
description: Role name | 角色名
type: string
x-go-name: RoleName
value:
description: Role value | 角色值
type: string
x-go-name: Value
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
RoleListInfo:
description: The data of role list | 角色列表数据
properties:
data:
description: The role list data | 角色列表数据
items:
$ref: '#/definitions/RoleInfo'
type: array
x-go-name: Data
total:
description: The total number of data | 数据总数
format: uint64
type: integer
x-go-name: Total
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
RoleListResp:
description: The response data of role list | 角色列表返回数据
properties:
code:
description: Error code | 错误代码
format: int64
type: integer
x-go-name: Code
data:
$ref: '#/definitions/RoleListInfo'
description: Data | 数据
type: string
x-go-name: Data
msg:
description: Message | 提示信息
type: string
x-go-name: Msg
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
StatusCodeReq:
description: The request params of setting boolean status | 设置状态参数
properties:
id:
description: ID
format: uint64
type: integer
x-go-name: Id
status:
description: Status code | 状态码
format: uint64
type: integer
x-go-name: Status
required:
- id
- status
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
TokenInfo:
description: The response data of Token information | Token信息
properties:
UUID:
description: User's UUID | 用户的UUID
type: string
createdAt:
description: Create date | 创建日期
format: int64
type: integer
x-go-name: CreatedAt
expiredAt:
description: Expire time | 过期时间
format: int64
type: integer
x-go-name: ExpiredAt
id:
description: ID
format: uint64
type: integer
x-go-name: Id
source:
description: Log in source such as github | Token 来源 (本地为core, 第三方如github等)
type: string
x-go-name: Source
status:
description: JWT status 0 ban 1 active | JWT状态, 0 禁止 1 正常
format: uint64
type: integer
x-go-name: Status
token:
description: Token string | Token 字符串
type: string
x-go-name: Token
updatedAt:
description: Update date | 更新日期
format: int64
type: integer
x-go-name: UpdatedAt
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
TokenListInfo:
description: The data of Token list | Token列表数据
properties:
data:
description: The token list data | Token列表数据
items:
$ref: '#/definitions/TokenInfo'
type: array
x-go-name: Data
total:
description: The total number of data | 数据总数
format: uint64
type: integer
x-go-name: Total
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
TokenListReq:
description: Get token list request params | token列表请求参数
properties:
UUID:
description: User's UUID | 用户的UUID
maxLength: 36
type: string
email:
description: The user's email address | 用户的邮箱
maxLength: 100
type: string
x-go-name: Email
nickname:
description: user's nickname | 用户的昵称
maxLength: 10
type: string
x-go-name: Nickname
page:
description: Page number | 第几页
format: uint64
type: integer
x-go-name: Page
pageSize:
description: Page size | 单页数据行数
format: uint64
maximum: 100000
type: integer
x-go-name: PageSize
username:
description: User Name | 用户名
maxLength: 20
type: string
x-go-name: Username
required:
- page
- pageSize
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
TokenListResp:
description: The response data of Token list | Token列表返回数据
properties:
code:
description: Error code | 错误代码
format: int64
type: integer
x-go-name: Code
data:
$ref: '#/definitions/TokenListInfo'
description: Data | 数据
type: string
x-go-name: Data
msg:
description: Message | 提示信息
type: string
x-go-name: Msg
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
UUIDReq:
description: Basic UUID request | 基础UUID参数请求
properties:
UUID:
description: UUID
maxLength: 36
type: string
required:
- UUID
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
UserBaseInfo:
description: The data of user's basic information | 用户基本信息
properties:
avatar:
description: The user's avatar path | 用户的头像路径
type: string
x-go-name: Avatar
nickname:
description: User's nickname | 用户的昵称
type: string
x-go-name: Nickname
roles:
$ref: '#/definitions/GetUserRoleInfo'
userId:
description: User's UUID | 用户的UUID
type: string
x-go-name: UUID
username:
description: User's name | 用户名
type: string
x-go-name: Username
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
UserInfoResp:
description: The response data of user's information | 用户信息返回数据
properties:
UUID:
description: User's UUID | 用户的UUID
type: string
avatar:
description: The user's avatar path | 用户的头像路径
type: string
x-go-name: Avatar
createdAt:
description: Create date | 创建日期
format: int64
type: integer
x-go-name: CreatedAt
email:
description: The user's email address | 用户的邮箱
type: string
x-go-name: Email
id:
description: ID
format: uint64
type: integer
x-go-name: Id
mobile:
description: User's mobile phone number | 用户的手机号码
type: string
x-go-name: Mobile
nickname:
description: User's nickname | 用户的昵称
type: string
x-go-name: Nickname
roleId:
description: User's role id | 用户的角色ID
format: uint64
type: integer
x-go-name: RoleId
sideMode:
description: The user's layout mode | 用户的布局
type: string
x-go-name: SideMode
status:
description: |-
The user's status | 用户状态
1 normal, 2 ban | 1 正常 2 拉黑
format: uint64
type: integer
x-go-name: Status
updatedAt:
description: Update date | 更新日期
format: int64
type: integer
x-go-name: UpdatedAt
username:
description: User Name | 用户名
type: string
x-go-name: Username
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
UserListInfo:
description: The response data of user list | 用户列表数据
properties:
data:
description: The user list data | 用户列表数据
items:
$ref: '#/definitions/UserInfoResp'
type: array
x-go-name: Data
total:
description: The total number of data | 数据总数
format: uint64
type: integer
x-go-name: Total
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
UserListResp:
description: The response data of user list | 用户列表返回数据
properties:
code:
description: Error code | 错误代码
format: int64
type: integer
x-go-name: Code
data:
$ref: '#/definitions/UserListInfo'
description: Data | 数据
type: string
x-go-name: Data
msg:
description: Message | 提示信息
type: string
x-go-name: Msg
type: object
x-go-package: github.com/suyuan32/simple-admin-core/api/internal/types
host: localhost:9100
info:
contact:
email: yuansu.china.work@gmail.com
description: This is simple admin api doc
title: Simple Admin
version: 0.1.2
paths:
/api:
delete:
description: Delete API information | 删除API信息
operationId: DeleteApi
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/IDReq'
type: object
responses:
"200":
description: BaseMsgResp
schema:
$ref: '#/definitions/BaseMsgResp'
summary: Delete API information | 删除API信息
tags:
- api
post:
description: Create or update API information | 创建或更新API
operationId: CreateOrUpdateApi
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/CreateOrUpdateApiReq'
type: object
responses:
"200":
description: BaseMsgResp
schema:
$ref: '#/definitions/BaseMsgResp'
summary: Create or update API information | 创建或更新API
tags:
- api
/api/list:
post:
description: Get API list | 获取API列表
operationId: GetApiList
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/ApiListReq'
type: object
responses:
"200":
description: ApiListResp
schema:
$ref: '#/definitions/ApiListResp'
summary: Get API list | 获取API列表
tags:
- api
/authority/api:
post:
description: Create or update API authorization information | 创建或更新API权限
operationId: CreateOrUpdateApiAuthority
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/CreateOrUpdateApiAuthorityReq'
type: object
responses:
"200":
description: BaseMsgResp
schema:
$ref: '#/definitions/BaseMsgResp'
summary: Create or update API authorization information | 创建或更新API权限
tags:
- authority
/authority/api/role:
post:
description: Get role's API authorization list | 获取角色api权限列表
operationId: GetApiAuthority
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/IDReq'
type: object
responses:
"200":
description: ApiAuthorityListResp
schema:
$ref: '#/definitions/ApiAuthorityListResp'
summary: Get role's API authorization list | 获取角色api权限列表
tags:
- authority
/authority/menu:
post:
description: Create or update menu authorization information | 创建或更新菜单权限
operationId: CreateOrUpdateMenuAuthority
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/MenuAuthorityInfoReq'
type: object
responses:
"200":
description: BaseMsgResp
schema:
$ref: '#/definitions/BaseMsgResp'
summary: Create or update menu authorization information | 创建或更新菜单权限
tags:
- authority
/authority/menu/role:
post:
description: Get role's menu authorization list | 获取角色菜单权限列表
operationId: GetMenuAuthority
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/IDReq'
type: object
responses:
"200":
description: MenuAuthorityInfoResp
schema:
$ref: '#/definitions/MenuAuthorityInfoResp'
summary: Get role's menu authorization list | 获取角色菜单权限列表
tags:
- authority
/captcha:
get:
description: Get captcha | 获取验证码
operationId: GetCaptcha
responses:
"200":
description: CaptchaResp
schema:
$ref: '#/definitions/CaptchaResp'
summary: Get captcha | 获取验证码
tags:
- captcha
/core/health:
get:
description: Check the system status | 检查系统状态
operationId: HealthCheck
summary: Check the system status | 检查系统状态
tags:
- core
/core/init/database:
get:
description: Initialize database | 初始化数据库
operationId: InitDatabase
responses:
"200":
description: BaseMsgResp
schema:
$ref: '#/definitions/BaseMsgResp'
summary: Initialize database | 初始化数据库
tags:
- core
/dict:
delete:
description: Delete dictionary information | 删除字典信息
operationId: DeleteDictionary
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/IDReq'
type: object
responses:
"200":
description: BaseMsgResp
schema:
$ref: '#/definitions/BaseMsgResp'
summary: Delete dictionary information | 删除字典信息
tags:
- dictionary
post:
description: Create or update dictionary information | 创建或更新字典信息
operationId: CreateOrUpdateDictionary
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/CreateOrUpdateDictionaryReq'
type: object
responses:
"200":
description: BaseMsgResp
schema:
$ref: '#/definitions/BaseMsgResp'
summary: Create or update dictionary information | 创建或更新字典信息
tags:
- dictionary
/dict/detail:
delete:
description: Delete dictionary KV information | 删除字典键值信息
operationId: DeleteDictionaryDetail
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/IDReq'
type: object
responses:
"200":
description: BaseMsgResp
schema:
$ref: '#/definitions/BaseMsgResp'
summary: Delete dictionary KV information | 删除字典键值信息
tags:
- dictionary
post:
description: Create or update dictionary KV information | 创建或更新字典键值信息
operationId: CreateOrUpdateDictionaryDetail
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/CreateOrUpdateDictionaryDetailReq'
type: object
responses:
"200":
description: BaseMsgResp
schema:
$ref: '#/definitions/BaseMsgResp'
summary: Create or update dictionary KV information | 创建或更新字典键值信息
tags:
- dictionary
/dict/detail/list:
post:
description: Get dictionary detail list by dictionary name | 根据字典名获取字典键值列表
operationId: GetDetailByDictionaryName
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/DictionaryDetailReq'
type: object
responses:
"200":
description: DictionaryDetailListResp
schema:
$ref: '#/definitions/DictionaryDetailListResp'
summary: Get dictionary detail list by dictionary name | 根据字典名获取字典键值列表
tags:
- dictionary
/dict/list:
post:
description: Get dictionary list | 获取字典列表
operationId: GetDictionaryList
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/DictionaryListReq'
type: object
responses:
"200":
description: DictionaryListResp
schema:
$ref: '#/definitions/DictionaryListResp'
summary: Get dictionary list | 获取字典列表
tags:
- dictionary
/menu:
delete:
description: Delete menu information | 删除菜单信息
operationId: DeleteMenu
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/IDReq'
type: object
responses:
"200":
description: BaseMsgResp
schema:
$ref: '#/definitions/BaseMsgResp'
summary: Delete menu information | 删除菜单信息
tags:
- menu
post:
description: Create or update menu information | 创建或更新菜单
operationId: CreateOrUpdateMenu
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/CreateOrUpdateMenuReq'
type: object
responses:
"200":
description: BaseMsgResp
schema:
$ref: '#/definitions/BaseMsgResp'
summary: Create or update menu information | 创建或更新菜单
tags:
- menu
/menu/list:
get:
description: Get menu list | 获取菜单列表
operationId: GetMenuList
responses:
"200":
description: MenuListResp
schema:
$ref: '#/definitions/MenuListResp'
summary: Get menu list | 获取菜单列表
tags:
- menu
/menu/param:
delete:
description: Delete menu extra parameters | 删除菜单额外参数
operationId: DeleteMenuParam
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/IDReq'
type: object
responses:
"200":
description: BaseMsgResp
schema:
$ref: '#/definitions/BaseMsgResp'
summary: Delete menu extra parameters | 删除菜单额外参数
tags:
- menu
post:
description: Create or update menu parameters | 创建或更新菜单参数
operationId: CreateOrUpdateMenuParam
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/CreateOrUpdateMenuParamReq'
type: object
responses:
"200":
description: BaseMsgResp
schema:
$ref: '#/definitions/BaseMsgResp'
summary: Create or update menu parameters | 创建或更新菜单参数
tags:
- menu
/menu/param/list:
post:
description: Get menu extra parameters by menu ID | 获取某个菜单的额外参数列表
operationId: GetMenuParamListByMenuId
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/IDReq'
type: object
responses:
"200":
description: MenuParamListByMenuIdResp
schema:
$ref: '#/definitions/MenuParamListByMenuIdResp'
summary: Get menu extra parameters by menu ID | 获取某个菜单的额外参数列表
tags:
- menu
/menu/role:
get:
description: Get role's menu list API | 获取角色菜单列表
operationId: GetMenuByRole
responses:
"200":
description: GetMenuListBase
schema:
$ref: '#/definitions/GetMenuListBase'
summary: Get role's menu list API | 获取角色菜单列表
tags:
- menu
/oauth/login:
post:
description: Oauth log in | Oauth 登录
operationId: OauthLogin
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/OauthLoginReq'
type: object
responses:
"200":
description: RedirectResp
schema:
$ref: '#/definitions/RedirectResp'
summary: Oauth log in | Oauth 登录
tags:
- oauth
/oauth/login/callback:
get:
description: Oauth log in callback route | Oauth 登录返回调接口
operationId: OauthCallback
responses:
"200":
description: CallbackResp
schema:
$ref: '#/definitions/CallbackResp'
summary: Oauth log in callback route | Oauth 登录返回调接口
tags:
- oauth
/oauth/provider:
delete:
description: Delete provider information | 删除提供商信息
operationId: DeleteProvider
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/IDReq'
type: object
responses:
"200":
description: BaseMsgResp
schema:
$ref: '#/definitions/BaseMsgResp'
summary: Delete provider information | 删除提供商信息
tags:
- oauth
post:
description: Create or update Provider information | 创建或更新提供商
operationId: CreateOrUpdateProvider
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/CreateOrUpdateProviderReq'
type: object
responses:
"200":
description: BaseMsgResp
schema:
$ref: '#/definitions/BaseMsgResp'
summary: Create or update Provider information | 创建或更新提供商
tags:
- oauth
/oauth/provider/list:
post:
description: Get provider list | 获取提供商列表
operationId: GetProviderList
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/PageInfo'
type: object
responses:
"200":
description: ProviderListResp
schema:
$ref: '#/definitions/ProviderListResp'
summary: Get provider list | 获取提供商列表
tags:
- oauth
/role:
delete:
description: Delete role information | 删除角色信息
operationId: DeleteRole
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/IDReq'
type: object
responses:
"200":
description: BaseMsgResp
schema:
$ref: '#/definitions/BaseMsgResp'
summary: Delete role information | 删除角色信息
tags:
- role
post:
description: Create or update role information | 创建或更新角色
operationId: CreateOrUpdateRole
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/RoleInfo'
type: object
responses:
"200":
description: BaseMsgResp
schema:
$ref: '#/definitions/BaseMsgResp'
summary: Create or update role information | 创建或更新角色
tags:
- role
/role/list:
post:
description: Get role list | 获取角色列表
operationId: GetRoleList
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/PageInfo'
type: object
responses:
"200":
description: RoleListResp
schema:
$ref: '#/definitions/RoleListResp'
summary: Get role list | 获取角色列表
tags:
- role
/role/status:
post:
description: Set role status | 设置角色状态
operationId: UpdateRoleStatus
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/StatusCodeReq'
type: object
responses:
"200":
description: BaseMsgResp
schema:
$ref: '#/definitions/BaseMsgResp'
summary: Set role status | 设置角色状态
tags:
- role
/token:
delete:
description: Delete token information | 删除token信息
operationId: DeleteToken
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/IDReq'
type: object
responses:
"200":
description: BaseMsgResp
schema:
$ref: '#/definitions/BaseMsgResp'
summary: Delete token information | 删除token信息
tags:
- token
post:
description: Create or update Token information | 创建或更新Token
operationId: CreateOrUpdateToken
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/CreateOrUpdateTokenReq'
type: object
responses:
"200":
description: BaseMsgResp
schema:
$ref: '#/definitions/BaseMsgResp'
summary: Create or update Token information | 创建或更新Token
tags:
- token
/token/list:
post:
description: Get Token list | 获取token列表
operationId: GetTokenList
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/TokenListReq'
type: object
responses:
"200":
description: TokenListResp
schema:
$ref: '#/definitions/TokenListResp'
summary: Get Token list | 获取token列表
tags:
- token
/token/logout:
post:
description: Force logging out by user UUID | 根据UUID强制用户退出
operationId: Logout
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/UUIDReq'
type: object
responses:
"200":
description: BaseMsgResp
schema:
$ref: '#/definitions/BaseMsgResp'
summary: Force logging out by user UUID | 根据UUID强制用户退出
tags:
- token
/token/status:
post:
description: Set token status | 设置token状态
operationId: UpdateTokenStatus
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/StatusCodeReq'
type: object
responses:
"200":
description: BaseMsgResp
schema:
$ref: '#/definitions/BaseMsgResp'
summary: Set token status | 设置token状态
tags:
- token
/user:
delete:
description: Delete user information | 删除用户信息
operationId: DeleteUser
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/IDReq'
type: object
responses:
"200":
description: BaseMsgResp
schema:
$ref: '#/definitions/BaseMsgResp'
summary: Delete user information | 删除用户信息
tags:
- user
post:
description: Create or update user's information | 新增或更新用户
operationId: CreateOrUpdateUser
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/CreateOrUpdateUserReq'
type: object
responses:
"200":
description: BaseMsgResp
schema:
$ref: '#/definitions/BaseMsgResp'
summary: Create or update user's information | 新增或更新用户
tags:
- user
/user/change-password:
post:
description: Change Password | 修改密码
operationId: ChangePassword
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/ChangePasswordReq'
type: object
responses:
"200":
description: BaseMsgResp
schema:
$ref: '#/definitions/BaseMsgResp'
summary: Change Password | 修改密码
tags:
- user
/user/info:
get:
description: Get user basic information | 获取用户基本信息
operationId: GetUserInfo
responses:
"200":
description: GetUserInfoResp
schema:
$ref: '#/definitions/GetUserInfoResp'
summary: Get user basic information | 获取用户基本信息
tags:
- user
/user/list:
post:
description: Get user list | 获取用户列表
operationId: GetUserList
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/GetUserListReq'
type: object
responses:
"200":
description: UserListResp
schema:
$ref: '#/definitions/UserListResp'
summary: Get user list | 获取用户列表
tags:
- user
/user/login:
post:
description: Log in | 登录
operationId: Login
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/LoginReq'
type: object
responses:
"200":
description: LoginResp
schema:
$ref: '#/definitions/LoginResp'
summary: Log in | 登录
tags:
- user
/user/logout:
get:
description: Log out | 退出登陆
operationId: Logout
responses:
"200":
description: BaseMsgResp
schema:
$ref: '#/definitions/BaseMsgResp'
summary: Log out | 退出登陆
tags:
- user
/user/perm:
get:
description: Get user's permission code | 获取用户权限码
operationId: GetUserPermCode
responses:
"200":
description: PermCodeResp
schema:
$ref: '#/definitions/PermCodeResp'
summary: Get user's permission code | 获取用户权限码
tags:
- user
/user/profile:
get:
description: Get user's profile | 获取用户个人信息
operationId: GetUserProfile
responses:
"200":
description: ProfileResp
schema:
$ref: '#/definitions/ProfileResp'
summary: Get user's profile | 获取用户个人信息
tags:
- user
post:
description: Update user's profile | 更新用户个人信息
operationId: UpdateUserProfile
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/ProfileReq'
type: object
responses:
"200":
description: BaseMsgResp
schema:
$ref: '#/definitions/BaseMsgResp'
summary: Update user's profile | 更新用户个人信息
tags:
- user
/user/register:
post:
description: Register | 注册
operationId: Register
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/RegisterReq'
type: object
responses:
"200":
description: BaseMsgResp
schema:
$ref: '#/definitions/BaseMsgResp'
summary: Register | 注册
tags:
- user
/user/status:
post:
description: Set user's status | 更新用户状态
operationId: UpdateUserStatus
parameters:
- in: body
name: body
schema:
$ref: '#/definitions/StatusCodeReq'
type: object
responses:
"200":
description: BaseMsgResp
schema:
$ref: '#/definitions/BaseMsgResp'
summary: Set user's status | 更新用户状态
tags:
- user
produces:
- application/json
responses:
PageList:
description: The page response data model | 列表返回信息
headers:
data:
description: Data | 数据
items:
type: string
type: array
total:
description: Total number | 数据总数
format: uint64
type: integer
SimpleMsg:
description: The simplest message | 最简单的信息
headers:
msg:
description: Message | 信息
type: string
schemes:
- http
- https
security:
- Token:
- '[]'
securityDefinitions:
Token:
in: header
name: Authorization
type: apiKey
swagger: "2.0"
Go
1
https://gitee.com/itmrliu/simple-admin-core.git
git@gitee.com:itmrliu/simple-admin-core.git
itmrliu
simple-admin-core
simple-admin-core
master

搜索帮助