ctl

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2018 License: MIT Imports: 10 Imported by: 66

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Common

type Common struct {
	LoginAPI *Login `inject:""`
	UserAPI  *User  `inject:""`
	RoleAPI  *Role  `inject:""`
	DemoAPI  *Demo  `inject:""`
	MenuAPI  *Menu  `inject:""`
}

Common API模块

type Demo

type Demo struct {
	DemoBll *bll.Demo `inject:""`
}

Demo 示例程序

func (*Demo) Create

func (a *Demo) Create(ctx *context.Context)

Create 创建数据

func (*Demo) Delete

func (a *Demo) Delete(ctx *context.Context)

Delete 删除数据

func (*Demo) DeleteMany

func (a *Demo) DeleteMany(ctx *context.Context)

DeleteMany 删除多条数据

func (*Demo) Get

func (a *Demo) Get(ctx *context.Context)

Get 查询指定数据

func (*Demo) Query

func (a *Demo) Query(ctx *context.Context)

Query 查询数据

func (*Demo) QueryPage

func (a *Demo) QueryPage(ctx *context.Context)

QueryPage 查询分页数据

func (*Demo) Update

func (a *Demo) Update(ctx *context.Context)

Update 更新数据

type Login

type Login struct {
	LoginBll *bll.Login `inject:""`
}

Login 登录管理

func (*Login) GetCurrentUserInfo

func (a *Login) GetCurrentUserInfo(ctx *context.Context)

GetCurrentUserInfo 获取当前用户信息

func (*Login) Login

func (a *Login) Login(ctx *context.Context)

Login 用户登录

func (*Login) Logout

func (a *Login) Logout(ctx *context.Context)

Logout 用户登出

func (*Login) QueryCurrentUserMenus

func (a *Login) QueryCurrentUserMenus(ctx *context.Context)

QueryCurrentUserMenus 查询当前用户菜单

type Menu struct {
	MenuBll *bll.Menu `inject:""`
}

Menu 菜单管理

func (a *Menu) Create(ctx *context.Context)

Create 创建数据

func (a *Menu) Delete(ctx *context.Context)

Delete 删除数据

func (a *Menu) DeleteMany(ctx *context.Context)

DeleteMany 删除多条数据

func (a *Menu) Disable(ctx *context.Context)

Disable 禁用数据

func (a *Menu) Enable(ctx *context.Context)

Enable 启用数据

func (a *Menu) Get(ctx *context.Context)

Get 查询指定数据

func (a *Menu) Query(ctx *context.Context)

Query 查询数据

func (a *Menu) QueryPage(ctx *context.Context)

QueryPage 查询分页数据

func (a *Menu) QueryTree(ctx *context.Context)

QueryTree 查询菜单树

func (a *Menu) Update(ctx *context.Context)

Update 更新数据

type Role

type Role struct {
	RoleBll *bll.Role `inject:""`
}

Role 角色管理

func (*Role) Create

func (a *Role) Create(ctx *context.Context)

Create 创建数据

func (*Role) Delete

func (a *Role) Delete(ctx *context.Context)

Delete 删除数据

func (*Role) DeleteMany

func (a *Role) DeleteMany(ctx *context.Context)

DeleteMany 删除多条数据

func (*Role) Disable

func (a *Role) Disable(ctx *context.Context)

Disable 禁用数据

func (*Role) Enable

func (a *Role) Enable(ctx *context.Context)

Enable 启用数据

func (*Role) Get

func (a *Role) Get(ctx *context.Context)

Get 查询指定数据

func (*Role) Query

func (a *Role) Query(ctx *context.Context)

Query 查询数据

func (*Role) QueryPage

func (a *Role) QueryPage(ctx *context.Context)

QueryPage 查询分页数据

func (*Role) QuerySelect

func (a *Role) QuerySelect(ctx *context.Context)

QuerySelect 查询分页数据

func (*Role) Update

func (a *Role) Update(ctx *context.Context)

Update 更新数据

type User

type User struct {
	UserBll *bll.User `inject:""`
}

User 用户管理

func (*User) Create

func (a *User) Create(ctx *context.Context)

Create 创建数据

func (*User) Delete

func (a *User) Delete(ctx *context.Context)

Delete 删除数据

func (*User) DeleteMany

func (a *User) DeleteMany(ctx *context.Context)

DeleteMany 删除多条数据

func (*User) Disable

func (a *User) Disable(ctx *context.Context)

Disable 禁用数据

func (*User) Enable

func (a *User) Enable(ctx *context.Context)

Enable 启用数据

func (*User) Get

func (a *User) Get(ctx *context.Context)

Get 查询指定数据

func (*User) Query

func (a *User) Query(ctx *context.Context)

Query 查询数据

func (*User) QueryPage

func (a *User) QueryPage(ctx *context.Context)

QueryPage 查询分页数据

func (*User) Update

func (a *User) Update(ctx *context.Context)

Update 更新数据

Jump to

Keyboard shortcuts

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