1 Star 0 Fork 201

阿杰/go-mall

forked from guchengwuyue/yshop-gin 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
swagger.yml 14.44 KB
一键复制 编辑 原始数据 按行查看 历史
guchengwuyue 提交于 2021-03-07 10:52 . YSHOP-GO 1.0版本 发布
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667
swagger: "2.0"
info:
title: YSHOP-GO API
description: YSHOP-GO管理系统API
version: 1.0.0
termsOfService: https://www.yixiang.co/
basePath: /v1
paths:
/auth/captcha:
get:
tags:
- auth
description: 获取验证码
operationId: LoginController.获取验证码
/auth/info:
get:
tags:
- auth
description: 获取用户信息
operationId: LoginController.获取用户信息
responses:
"200":
description: ""
schema:
$ref: '#/definitions/controllers.Result'
/auth/login:
post:
tags:
- auth
description: 登录
operationId: LoginController.登录
responses:
"200":
description: ""
schema:
$ref: '#/definitions/controllers.Result'
/auth/logout:
delete:
tags:
- auth
description: 退出登录
operationId: LoginController.退出登录
responses:
"200":
description: ""
schema:
$ref: '#/definitions/controllers.Result'
/dept/:
get:
tags:
- dept
description: 获取部门列表
operationId: DeptController.获取部门列表
responses:
"200":
description: ""
schema:
$ref: '#/definitions/controllers.Result'
put:
tags:
- dept
description: 修改部门
operationId: DeptController.修改部门
responses:
"200":
description: ""
schema:
$ref: '#/definitions/controllers.Result'
post:
tags:
- dept
description: 添加部门
operationId: DeptController.添加部门
responses:
"200":
description: ""
schema:
$ref: '#/definitions/controllers.Result'
delete:
tags:
- dept
description: 删除部门
operationId: DeptController.删除部门
responses:
"200":
description: ""
schema:
$ref: '#/definitions/controllers.Result'
/dict/:
get:
tags:
- dict
description: 获取字典列表
operationId: DictController.获取字典列表
responses:
"200":
description: ""
schema:
$ref: '#/definitions/controllers.Result'
put:
tags:
- dict
description: 修改字典
operationId: DictController.修改字典
responses:
"200":
description: ""
schema:
$ref: '#/definitions/controllers.Result'
post:
tags:
- dict
description: 添加字典
operationId: DictController.添加字典
responses:
"200":
description: ""
schema:
$ref: '#/definitions/controllers.Result'
/dict/{id}:
delete:
tags:
- dict
description: 删除字典
operationId: DictController.删除字典
responses:
"200":
description: ""
schema:
$ref: '#/definitions/controllers.Result'
/dictDetail/:
get:
tags:
- dictDetail
description: 获取字典详情列表
operationId: DictDetailController.获取字典详情列表
responses:
"200":
description: ""
schema:
$ref: '#/definitions/controllers.Result'
put:
tags:
- dictDetail
description: 修改字典详情
operationId: DictDetailController.修改字典详情
responses:
"200":
description: ""
schema:
$ref: '#/definitions/controllers.Result'
post:
tags:
- dictDetail
description: 添加字典详情
operationId: DictDetailController.添加字典详情
responses:
"200":
description: ""
schema:
$ref: '#/definitions/controllers.Result'
/dictDetail/{id}:
delete:
tags:
- dictDetail
description: 删除字典详情
operationId: DictDetailController.删除字典详情
responses:
"200":
description: ""
schema:
$ref: '#/definitions/controllers.Result'
/job/:
get:
tags:
- job
description: 岗位列表
operationId: JobController.岗位列表
responses:
"200":
description: ""
schema:
$ref: '#/definitions/controllers.Result'
put:
tags:
- job
description: 岗位修改
operationId: JobController.岗位修改
responses:
"200":
description: ""
schema:
$ref: '#/definitions/controllers.Result'
post:
tags:
- job
description: 岗位添加
operationId: JobController.岗位添加
responses:
"200":
description: ""
schema:
$ref: '#/definitions/controllers.Result'
delete:
tags:
- job
description: 岗位删除
operationId: JobController.岗位删除
responses:
"200":
description: ""
schema:
$ref: '#/definitions/controllers.Result'
/menu/:
get:
tags:
- menu
description: 菜单列表
operationId: MenuController.菜单列表
responses:
"200":
description: ""
schema:
$ref: '#/definitions/controllers.Result'
put:
tags:
- menu
description: 菜单修改
operationId: MenuController.菜单修改
responses:
"200":
description: ""
schema:
$ref: '#/definitions/controllers.Result'
post:
tags:
- menu
description: 菜单添加
operationId: MenuController.菜单添加
responses:
"200":
description: ""
schema:
$ref: '#/definitions/controllers.Result'
delete:
tags:
- menu
description: 菜单删除
operationId: MenuController.菜单删除
responses:
"200":
description: ""
schema:
$ref: '#/definitions/controllers.Result'
/menu/build:
get:
tags:
- menu
description: 菜单构建
operationId: MenuController.菜单构建
responses:
"200":
description: ""
schema:
$ref: '#/definitions/controllers.Result'
/menu/tree:
get:
tags:
- menu
description: 菜单树形
operationId: MenuController.菜单树形
responses:
"200":
description: ""
schema:
$ref: '#/definitions/controllers.Result'
/roles/:
get:
tags:
- roles
description: 角色列表
operationId: RoleController.角色列表
responses:
"200":
description: ""
schema:
$ref: '#/definitions/controllers.Result'
put:
tags:
- roles
post:
tags:
- roles
description: 角色添加
operationId: RoleController.角色添加
responses:
"200":
description: ""
schema:
$ref: '#/definitions/controllers.Result'
delete:
tags:
- roles
description: 角色删除
operationId: RoleController.角色删除
responses:
"200":
description: ""
schema:
$ref: '#/definitions/controllers.Result'
/roles/{id}:
get:
tags:
- roles
description: 获取单个角色
operationId: RoleController.获取单个角色
parameters:
- in: path
name: id
description: 角色ID
required: true
type: integer
format: int64
responses:
"200":
description: ""
schema:
$ref: '#/definitions/models.Role'
/roles/menu:
put:
tags:
- roles
description: 角色菜单更新
operationId: RoleController.角色菜单更新
responses:
"200":
description: ""
schema:
$ref: '#/definitions/controllers.Result'
/user/:
get:
tags:
- user
description: 用户列表
operationId: UserController.用户列表
responses:
"200":
description: ""
schema:
$ref: '#/definitions/controllers.Result'
put:
tags:
- user
description: 用户编辑
operationId: UserController.用户编辑
responses:
"200":
description: ""
schema:
$ref: '#/definitions/controllers.Result'
post:
tags:
- user
description: 用户添加
operationId: UserController.用户添加
responses:
"200":
description: ""
schema:
$ref: '#/definitions/controllers.Result'
delete:
tags:
- user
description: 用户删除
operationId: UserController.用户删除
responses:
"200":
description: ""
schema:
$ref: '#/definitions/controllers.Result'
/user/center:
put:
tags:
- user
description: 用户修改个人信息
operationId: UserController.用户修改个人信息
responses:
"200":
description: ""
schema:
$ref: '#/definitions/controllers.Result'
/user/updateAvatar:
post:
tags:
- user
description: 用户上传图像
operationId: UserController.用户上传图像
responses:
"200":
description: ""
schema:
$ref: '#/definitions/controllers.Result'
/user/updatePass:
post:
tags:
- user
description: 用户修改密码
operationId: UserController.用户修改密码
responses:
"200":
description: ""
schema:
$ref: '#/definitions/controllers.Result'
definitions:
611.0xc000380630.false:
title: "false"
type: object
controllers.Result:
title: Result
type: object
properties:
data:
$ref: '#/definitions/611.0xc000380630.false'
msg:
type: string
status:
type: integer
format: int64
models.BaseModel:
title: BaseModel
type: object
properties:
createTime:
type: string
format: datetime
isDel:
type: integer
format: int32
updateTime:
type: string
format: datetime
models.Dept:
title: Dept
type: object
properties:
children:
type: array
items:
$ref: '#/definitions/models.Dept'
createTime:
type: string
format: datetime
enabled:
type: integer
format: int32
id:
type: integer
format: int64
isDel:
type: integer
format: int32
label:
type: string
name:
type: string
pid:
type: integer
format: int64
updateTime:
type: string
format: datetime
models.Job:
title: Job
type: object
properties:
createTime:
type: string
format: datetime
dept:
$ref: '#/definitions/models.Dept'
enabled:
type: integer
format: int32
id:
type: integer
format: int64
isDel:
type: integer
format: int32
name:
type: string
sort:
type: integer
format: int32
updateTime:
type: string
format: datetime
models.Menu:
title: Menu
type: object
properties:
cache:
type: integer
format: int32
children:
type: array
items:
$ref: '#/definitions/models.Menu'
component:
type: string
componentName:
type: string
createTime:
type: string
format: datetime
hidden:
type: integer
format: int32
icon:
type: string
id:
type: integer
format: int64
iframe:
type: integer
format: int32
isDel:
type: integer
format: int32
label:
type: string
name:
type: string
path:
type: string
permission:
type: string
pid:
type: integer
format: int64
router:
type: string
routerMethod:
type: string
sort:
type: integer
format: int32
type:
type: integer
format: int32
updateTime:
type: string
format: datetime
models.Role:
title: Role
type: object
properties:
Depts:
type: array
items:
$ref: '#/definitions/models.Dept'
Users:
type: array
items:
$ref: '#/definitions/models.User'
createTime:
type: string
format: datetime
dataScope:
type: string
id:
type: integer
format: int64
isDel:
type: integer
format: int32
level:
type: integer
format: int32
menus:
type: array
items:
$ref: '#/definitions/models.Menu'
name:
type: string
permission:
type: string
remark:
type: string
updateTime:
type: string
format: datetime
models.User:
title: User
type: object
properties:
Permissions:
type: array
items:
type: string
avatar:
type: string
createTime:
type: string
format: datetime
dept:
$ref: '#/definitions/models.Dept'
email:
type: string
enabled:
type: integer
format: int32
id:
type: integer
format: int64
isDel:
type: integer
format: int32
job:
$ref: '#/definitions/models.Job'
nickName:
type: string
password:
type: string
phone:
type: string
roleIds:
type: array
items:
type: integer
format: int64
roles:
type: array
items:
$ref: '#/definitions/models.Role'
sex:
type: string
updateTime:
type: string
format: datetime
username:
type: string
tags:
- name: auth
description: |
登录api
- name: user
description: |
用户 API
- name: menu
description: |
菜单api
- name: dict
description: |
字典api
- name: dictDetail
description: |
字典详情api
- name: dept
description: |
部门api
- name: job
description: |
岗位api
- name: roles
description: |
角色 API
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/mjzk/go-mall.git
git@gitee.com:mjzk/go-mall.git
mjzk
go-mall
go-mall
master

搜索帮助