代码拉取完成,页面将自动刷新
package model
import (
"context"
"github.com/LyricTian/gin-admin/src/schema"
)
// IUser 用户管理
type IUser interface {
// 查询分页数据
QueryPage(ctx context.Context, params schema.UserQueryParam, pageIndex, pageSize uint) (int64, []*schema.UserQueryResult, error)
// 查询指定数据
Get(ctx context.Context, recordID string, includeRoleIDs bool) (*schema.User, error)
// Check 检查数据是否存在
Check(ctx context.Context, recordID string) (bool, error)
// 检查用户名
CheckUserName(ctx context.Context, userName string) (bool, error)
// 根据用户名查询指定数据
GetByUserName(ctx context.Context, userName string, includeRoleIDs bool) (*schema.User, error)
// 检查角色下是否存在用户
CheckByRoleID(ctx context.Context, roleID string) (bool, error)
// 查询用户角色
QueryUserRoles(ctx context.Context, params schema.UserRoleQueryParam) ([]*schema.UserRole, error)
// 创建数据
Create(ctx context.Context, item *schema.User) error
// 更新数据
Update(ctx context.Context, recordID string, info map[string]interface{}) error
// 更新数据
UpdateWithRoleIDs(ctx context.Context, recordID string, info map[string]interface{}, roleIDs []string) error
// 删除数据
Delete(ctx context.Context, recordID string) error
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。