70 Star 510 Fork 185

Lyric / gin-admin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
m_role.go 1.04 KB
一键复制 编辑 原始数据 按行查看 历史
Lyric 提交于 2018-11-29 18:01 . 更新包名
package model
import (
"context"
"github.com/LyricTian/gin-admin/src/schema"
)
// IRole 角色管理
type IRole interface {
// 查询分页数据
QueryPage(ctx context.Context, params schema.RoleQueryParam, pageIndex, pageSize uint) (int64, []*schema.RoleQueryResult, error)
// 查询选择数据
QuerySelect(ctx context.Context, params schema.RoleSelectQueryParam) ([]*schema.RoleSelectQueryResult, error)
// 查询指定数据
Get(ctx context.Context, recordID string, includeMenuIDs bool) (*schema.Role, error)
// Check 检查数据是否存在
Check(ctx context.Context, recordID string) (bool, error)
// 检查名称
CheckName(ctx context.Context, name string) (bool, error)
// 创建数据
Create(ctx context.Context, item *schema.Role) error
// 更新数据
Update(ctx context.Context, recordID string, info map[string]interface{}) error
// 更新数据
UpdateWithMenuIDs(ctx context.Context, recordID string, info map[string]interface{}, menuIDs []string) error
// 删除数据
Delete(ctx context.Context, recordID string) error
}
Go
1
https://gitee.com/lyric/gin-admin.git
git@gitee.com:lyric/gin-admin.git
lyric
gin-admin
gin-admin
v1.1.0

搜索帮助