api

package
v0.0.0-...-9b87607 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

APISet 注入api

View Source
var DemoSet = wire.NewSet(wire.Struct(new(Demo), "*"))

DemoSet 注入Demo

View Source
var LoginSet = wire.NewSet(wire.Struct(new(Login), "*"))

LoginSet 注入Login

View Source
var MenuSet = wire.NewSet(wire.Struct(new(Menu), "*"))

MenuSet 注入Menu

View Source
var RoleSet = wire.NewSet(wire.Struct(new(Role), "*"))

RoleSet 注入Role

View Source
var UserSet = wire.NewSet(wire.Struct(new(User), "*"))

UserSet 注入User

Functions

This section is empty.

Types

type Demo

type Demo struct {
	DemoBll bll.IDemo
}

Demo 示例程序

func (*Demo) Create

func (a *Demo) Create(c *gin.Context)

Create 创建数据

func (*Demo) Delete

func (a *Demo) Delete(c *gin.Context)

Delete 删除数据

func (*Demo) Disable

func (a *Demo) Disable(c *gin.Context)

Disable 禁用数据

func (*Demo) Enable

func (a *Demo) Enable(c *gin.Context)

Enable 启用数据

func (*Demo) Get

func (a *Demo) Get(c *gin.Context)

Get 查询指定数据

func (*Demo) Query

func (a *Demo) Query(c *gin.Context)

Query 查询数据

func (*Demo) Update

func (a *Demo) Update(c *gin.Context)

Update 更新数据

type Login

type Login struct {
	LoginBll bll.ILogin
}

Login 登录管理

func (*Login) GetCaptcha

func (a *Login) GetCaptcha(c *gin.Context)

GetCaptcha 获取验证码信息

func (*Login) GetUserInfo

func (a *Login) GetUserInfo(c *gin.Context)

GetUserInfo 获取当前用户信息

func (*Login) Login

func (a *Login) Login(c *gin.Context)

Login 用户登录

func (*Login) Logout

func (a *Login) Logout(c *gin.Context)

Logout 用户登出

func (*Login) QueryUserMenuTree

func (a *Login) QueryUserMenuTree(c *gin.Context)

QueryUserMenuTree 查询当前用户菜单树

func (*Login) RefreshToken

func (a *Login) RefreshToken(c *gin.Context)

RefreshToken 刷新令牌

func (*Login) ResCaptcha

func (a *Login) ResCaptcha(c *gin.Context)

ResCaptcha 响应图形验证码

func (*Login) UpdatePassword

func (a *Login) UpdatePassword(c *gin.Context)

UpdatePassword 更新个人密码

type Menu struct {
	MenuBll bll.IMenu
}

Menu 菜单管理

func (a *Menu) Create(c *gin.Context)

Create 创建数据

func (a *Menu) Delete(c *gin.Context)

Delete 删除数据

func (a *Menu) Disable(c *gin.Context)

Disable 禁用数据

func (a *Menu) Enable(c *gin.Context)

Enable 启用数据

func (a *Menu) Get(c *gin.Context)

Get 查询指定数据

func (a *Menu) Query(c *gin.Context)

Query 查询数据

func (a *Menu) QueryTree(c *gin.Context)

QueryTree 查询菜单树

func (a *Menu) Update(c *gin.Context)

Update 更新数据

type Role

type Role struct {
	RoleBll bll.IRole
}

Role 角色管理

func (*Role) Create

func (a *Role) Create(c *gin.Context)

Create 创建数据

func (*Role) Delete

func (a *Role) Delete(c *gin.Context)

Delete 删除数据

func (*Role) Disable

func (a *Role) Disable(c *gin.Context)

Disable 禁用数据

func (*Role) Enable

func (a *Role) Enable(c *gin.Context)

Enable 启用数据

func (*Role) Get

func (a *Role) Get(c *gin.Context)

Get 查询指定数据

func (*Role) Query

func (a *Role) Query(c *gin.Context)

Query 查询数据

func (*Role) QuerySelect

func (a *Role) QuerySelect(c *gin.Context)

QuerySelect 查询选择数据

func (*Role) Update

func (a *Role) Update(c *gin.Context)

Update 更新数据

type User

type User struct {
	UserBll bll.IUser
}

User 用户管理

func (*User) Create

func (a *User) Create(c *gin.Context)

Create 创建数据

func (*User) Delete

func (a *User) Delete(c *gin.Context)

Delete 删除数据

func (*User) Disable

func (a *User) Disable(c *gin.Context)

Disable 禁用数据

func (*User) Enable

func (a *User) Enable(c *gin.Context)

Enable 启用数据

func (*User) Get

func (a *User) Get(c *gin.Context)

Get 查询指定数据

func (*User) Query

func (a *User) Query(c *gin.Context)

Query 查询数据

func (*User) Update

func (a *User) Update(c *gin.Context)

Update 更新数据

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL