Documentation
¶
Index ¶
- type App
- func (r App) CreateApp(ctx core.Context, app *entity.App) (uint32, error)
- func (r App) DeleteApp(ctx core.Context, id uint32) error
- func (r App) GetApp(ctx core.Context, id uint32) (*entity.App, error)
- func (r App) GetAppByKeyword(keyword string) (*entity.App, error)
- func (r App) ListApp(ctx core.Context, req *types.ListAppRequest) ([]*entity.App, uint32, error)
- func (r App) UpdateApp(ctx core.Context, app *entity.App) error
- type AppField
- func (r AppField) CreateAppField(ctx core.Context, afc *entity.AppField) (uint32, error)
- func (r AppField) DeleteAppField(ctx core.Context, id uint32) error
- func (r AppField) GetAppFields(ctx core.Context, app string) ([]string, error)
- func (r AppField) ListAppField(ctx core.Context, req *types.ListAppFieldRequest) ([]*entity.AppField, uint32, error)
- func (r AppField) UpdateAppField(ctx core.Context, afc *entity.AppField) error
- type AppForm
- func (r AppForm) CreateAppForm(ctx core.Context, ent *entity.AppForm) (uint32, error)
- func (r AppForm) DeleteAppForm(ctx core.Context, id uint32) error
- func (r AppForm) GetAppForm(ctx core.Context, appKeyword string, scene string) (*entity.AppForm, error)
- func (r AppForm) ListAppForm(ctx core.Context, req *types.ListAppFormRequest) ([]*entity.AppForm, error)
- type AppOAuther
- func (r AppOAuther) CreateAppOAuther(ctx core.Context, aoc *entity.AppOAuther) (uint32, error)
- func (r AppOAuther) DeleteAppOAuther(ctx core.Context, id uint32) error
- func (r AppOAuther) GetAppOAutherByAT(ctx core.Context, app string, tp string) (*entity.AppOAuther, error)
- func (r AppOAuther) ListAppOAuther(ctx core.Context, req *types.ListAppOAutherRequest) ([]*entity.AppOAuther, uint32, error)
- type Authorize
- func (infra *Authorize) CreateAuthorize(ctx core.Context, tg *entity.Authorize) (uint32, error)
- func (infra *Authorize) DeleteAuthorize(ctx core.Context, id uint32) error
- func (infra *Authorize) GetAuthorize(ctx core.Context, req *types.GetAuthorizeRequest) (*entity.Authorize, error)
- func (infra *Authorize) ListAuthorize(ctx core.Context, req *types.ListAuthorizeRequest) ([]*entity.Authorize, uint32, error)
- func (infra *Authorize) UpdateAuthorize(ctx core.Context, tg *entity.Authorize) error
- type Dept
- func (dept *Dept) CreateDept(ctx core.Context, req *entity.Dept) (uint32, error)
- func (dept *Dept) CreateDeptClassify(ctx core.Context, tg *entity.DeptClassify) (uint32, error)
- func (dept *Dept) DeleteDept(ctx core.Context, app string, id uint32) error
- func (dept *Dept) DeleteDeptClassify(ctx core.Context, app string, id uint32) error
- func (dept *Dept) GetDept(ctx core.Context, app string, id uint32) (*entity.Dept, error)
- func (dept *Dept) GetDeptByKeyword(ctx core.Context, app string, keyword string) (*entity.Dept, error)
- func (dept *Dept) GetDeptChildrenIds(pids []uint32) []uint32
- func (dept *Dept) GetDeptParentIds(id uint32) []uint32
- func (dept *Dept) ListDept(ctx core.Context, app string, req *types.ListDeptRequest) ([]*entity.Dept, error)
- func (dept *Dept) ListDeptClassify(ctx core.Context, app string, req *types.ListDeptClassifyRequest) ([]*entity.DeptClassify, uint32, error)
- func (dept *Dept) UpdateDept(ctx core.Context, req *entity.Dept) error
- func (dept *Dept) UpdateDeptClassify(ctx core.Context, tg *entity.DeptClassify) error
- type DeptRole
- func (dr *DeptRole) CreateDeptRole(ctx core.Context, app string, deptId, roleId uint32) error
- func (dr *DeptRole) DeleteDeptRole(ctx core.Context, app string, deptId, roleId uint32) error
- func (dr *DeptRole) GetDeptIdsByRoleIds(ctx core.Context, app string, roleIds []uint32) []uint32
- func (dr *DeptRole) GetDeptRolesByDeptIds(ctx core.Context, app string, deptIds []uint32) []*entity.DeptRole
- func (dr *DeptRole) GetRoleIdsByDeptIds(ctx core.Context, app string, deptIds []uint32) []uint32
- func (dr *DeptRole) ListDeptRole(ctx core.Context, app string, req *types.ListDeptRoleRequest) ([]*entity.Role, uint32, error)
- type Dictionary
- func (infra *Dictionary) AllDictionaryValue(ctx kratosx.Context, req *types.AllDictionaryValueRequest) ([]*entity.DictionaryValue, error)
- func (infra *Dictionary) AllDictionaryValueByKeyword(ctx kratosx.Context, keyword string) ([]*entity.DictionaryValue, error)
- func (infra *Dictionary) CreateDictionary(ctx kratosx.Context, dict *entity.Dictionary) (uint32, error)
- func (infra *Dictionary) CreateDictionaryValue(ctx kratosx.Context, dictValue *entity.DictionaryValue) (uint32, error)
- func (infra *Dictionary) DeleteDictionary(ctx kratosx.Context, id uint32) error
- func (infra *Dictionary) DeleteDictionaryValue(ctx kratosx.Context, id uint32) error
- func (infra *Dictionary) GetDictionary(ctx kratosx.Context, id uint32) (*entity.Dictionary, error)
- func (infra *Dictionary) GetDictionaryByKeyword(ctx kratosx.Context, keyword string) (*entity.Dictionary, error)
- func (infra *Dictionary) GetDictionaryValue(ctx kratosx.Context, id uint32) (*entity.DictionaryValue, error)
- func (infra *Dictionary) ListDictionary(ctx kratosx.Context, req *types.ListDictionaryRequest) ([]*entity.Dictionary, uint32, error)
- func (infra *Dictionary) ListDictionaryValue(ctx kratosx.Context, req *types.ListDictionaryValueRequest) ([]*entity.DictionaryValue, uint32, error)
- func (infra *Dictionary) ListDictionaryValues(ctx kratosx.Context, keywords []string) ([]*types.DictionaryValue, error)
- func (infra *Dictionary) UpdateDictionary(ctx kratosx.Context, dict *entity.Dictionary) error
- func (infra *Dictionary) UpdateDictionaryValue(ctx kratosx.Context, dictValue *entity.DictionaryValue) error
- func (infra *Dictionary) UpdateDictionaryValueStatus(ctx kratosx.Context, id uint32, status bool) error
- type Entity
- func (infra *Entity) CreateEntity(ctx core.Context, req *entity.Entity) (uint32, error)
- func (infra *Entity) CreateEntityField(ctx core.Context, tg *entity.EntityField) (uint32, error)
- func (infra *Entity) CreateEntityRule(ctx core.Context, tg *entity.EntityRule) (uint32, error)
- func (infra *Entity) DeleteEntities(ctx core.Context, ids []uint32) error
- func (infra *Entity) DeleteEntity(ctx core.Context, id uint32) error
- func (infra *Entity) DeleteEntityField(ctx core.Context, id uint32) error
- func (infra *Entity) DeleteEntityFields(ctx core.Context, ids []uint32) error
- func (infra *Entity) DeleteEntityRule(ctx core.Context, id uint32) error
- func (infra *Entity) DeleteEntityRules(ctx core.Context, ids []uint32) error
- func (infra *Entity) GetEntity(ctx core.Context, id uint32) (*entity.Entity, error)
- func (infra *Entity) GetEntityByName(ctx core.Context, app string, db string, name string) (*entity.Entity, error)
- func (infra *Entity) GetEntityField(ctx core.Context, id uint32, name string) (*entity.EntityField, error)
- func (infra *Entity) GetEntityIdByName(ctx core.Context, app string, db string, name string) (uint32, bool)
- func (infra *Entity) GetEntityRule(ctx core.Context, id uint32, name string) (*entity.EntityRule, error)
- func (infra *Entity) GetEntityRuleById(id uint32) (string, bool)
- func (infra *Entity) ListEntity(ctx core.Context, req *types.ListEntityRequest) ([]*entity.Entity, error)
- func (infra *Entity) ListEntityField(ctx core.Context, req *types.ListEntityFieldRequest) ([]*entity.EntityField, uint32, error)
- func (infra *Entity) ListEntityRule(ctx core.Context, req *types.ListEntityRuleRequest) ([]*entity.EntityRule, uint32, error)
- func (infra *Entity) UpdateEntity(ctx core.Context, req *entity.Entity) error
- func (infra *Entity) UpdateEntityField(ctx core.Context, tg *entity.EntityField) error
- func (infra *Entity) UpdateEntityRule(ctx core.Context, tg *entity.EntityRule) error
- func (infra *Entity) UpdateRegisteredEntity(ctx core.Context, req *entity.Entity) error
- func (infra *Entity) UpdateRegisteredEntityField(ctx core.Context, tg *entity.EntityField) error
- func (infra *Entity) UpdateRegisteredEntityRule(ctx core.Context, tg *entity.EntityRule) error
- type Feedback
- func (r Feedback) CreateFeedback(ctx core.Context, feedback *entity.Feedback) (uint32, error)
- func (r Feedback) CreateFeedbackClassify(ctx core.Context, fc *entity.FeedbackClassify) (uint32, error)
- func (r Feedback) DeleteFeedback(ctx core.Context, id uint32) error
- func (r Feedback) DeleteFeedbackClassify(ctx core.Context, id uint32) error
- func (r Feedback) GetFeedback(ctx core.Context, id uint32) (*entity.Feedback, error)
- func (r Feedback) GetFeedbackClassify(ctx core.Context, id uint32) (*entity.FeedbackClassify, error)
- func (r Feedback) IsExistFeedbackByMd5(ctx core.Context, md5 string) bool
- func (r Feedback) ListFeedback(ctx core.Context, req *types.ListFeedbackRequest) ([]*entity.Feedback, uint32, error)
- func (r Feedback) ListFeedbackClassify(ctx core.Context, req *types.ListFeedbackClassifyRequest) ([]*entity.FeedbackClassify, uint32, error)
- func (r Feedback) UpdateFeedback(ctx core.Context, feedback *entity.Feedback) error
- func (r Feedback) UpdateFeedbackClassify(ctx core.Context, fc *entity.FeedbackClassify) error
- type Field
- func (r Field) CreateField(ctx core.Context, field *entity.Field) (uint32, error)
- func (r Field) DeleteField(ctx core.Context, id uint32) error
- func (r Field) GetField(ctx core.Context, id uint32) (*entity.Field, error)
- func (r Field) ListField(ctx core.Context, req *types.ListFieldRequest) ([]*entity.Field, uint32, error)
- func (r Field) UpdateField(ctx core.Context, field *entity.Field) error
- type FormScene
- func (r FormScene) CreateFormScene(ctx core.Context, ent *entity.FormScene) (uint32, error)
- func (r FormScene) DeleteFormScene(ctx core.Context, id uint32) error
- func (r FormScene) GetFormScene(ctx core.Context, id uint32) (*entity.FormScene, error)
- func (r FormScene) GetFormSceneByKeyword(ctx core.Context, keyword string) (*entity.FormScene, error)
- func (r FormScene) ListFormScene(ctx core.Context, req *types.ListFormSceneRequest) ([]*entity.FormScene, uint32, error)
- func (r FormScene) UpdateFormScene(ctx core.Context, ent *entity.FormScene) error
- type Job
- func (infra *Job) CreateJob(ctx core.Context, tg *entity.Job) (uint32, error)
- func (infra *Job) DeleteJob(ctx core.Context, app string, id uint32) error
- func (infra *Job) ListJob(ctx core.Context, app string, req *types.ListJobRequest) ([]*entity.Job, uint32, error)
- func (infra *Job) UpdateJob(ctx core.Context, tg *entity.Job) error
- type JobRole
- func (jr *JobRole) CreateJobRole(ctx core.Context, app string, jobId, roleId uint32) error
- func (jr *JobRole) DeleteJobRole(ctx core.Context, app string, jobId, roleId uint32) error
- func (jr *JobRole) GetJobIdsByRoleIds(ctx core.Context, app string, roleIds []uint32) []uint32
- func (jr *JobRole) GetJobRolesByJobIds(ctx core.Context, app string, jobIds []uint32) []*entity.JobRole
- func (jr *JobRole) GetRoleIdsByJobIds(ctx core.Context, app string, jobIds []uint32) []uint32
- func (jr *JobRole) ListJobRole(ctx core.Context, app string, req *types.ListJobRoleRequest) ([]*entity.Role, uint32, error)
- type Log
- func (log *Log) CreateAuthLog(ctx core.Context, al *entity.AuthLog) (uint32, error)
- func (log *Log) CreateLoginLog(ctx core.Context, ll *entity.LoginLog) (uint32, error)
- func (log *Log) ListAuthLog(ctx core.Context, req *types.ListAuthLogRequest) ([]*entity.AuthLog, uint32, error)
- func (log *Log) ListLoginLog(ctx core.Context, req *types.ListLoginLogRequest) ([]*entity.LoginLog, uint32, error)
- type Menu
- func (infra *Menu) CreateMenu(ctx core.Context, menu *entity.Menu) (uint32, error)
- func (infra *Menu) DeleteMenu(ctx core.Context, id uint32) error
- func (infra *Menu) DeleteMenus(ctx core.Context, ids []uint32) error
- func (infra *Menu) GetCacheMenu(api string, method string) (*types.CacheMenu, bool)
- func (infra *Menu) GetMenu(ctx core.Context, id uint32) (*entity.Menu, error)
- func (infra *Menu) GetMenuByApi(ctx core.Context, app string, api string, method string) (*entity.Menu, error)
- func (infra *Menu) GetMenuByKeyword(ctx core.Context, app string, keyword string) (*entity.Menu, error)
- func (infra *Menu) GetMenuChildrenIds(ctx core.Context, id uint32) ([]uint32, error)
- func (infra *Menu) GetMenuIdsByApp(ctx core.Context, app string) ([]uint32, error)
- func (infra *Menu) GetMenuParentIds(ctx core.Context, id uint32) ([]uint32, error)
- func (infra *Menu) GetMenuParentIdsByIds(ctx core.Context, cids []uint32) ([]uint32, error)
- func (infra *Menu) ListMenu(ctx core.Context, req *types.ListMenuRequest) ([]*entity.Menu, error)
- func (infra *Menu) ListMenuChildrenApi(ctx core.Context, id uint32) ([]*entity.Menu, error)
- func (infra *Menu) SetHome(ctx core.Context, id uint32) error
- func (infra *Menu) UpdateMenu(ctx core.Context, menu *entity.Menu) error
- func (infra *Menu) UpdateRegisteredMenu(ctx core.Context, menu *entity.Menu) error
- type Notice
- func (r Notice) AddUserNotice(ctx core.Context, uid, nid uint32) error
- func (r Notice) CreateNotice(ctx core.Context, notice *entity.Notice) (uint32, error)
- func (r Notice) CreateNoticeClassify(ctx core.Context, fc *entity.NoticeClassify) (uint32, error)
- func (r Notice) DeleteNotice(ctx core.Context, id uint32) error
- func (r Notice) DeleteNoticeClassify(ctx core.Context, id uint32) error
- func (r Notice) GetNotice(ctx core.Context, id uint32) (*entity.Notice, error)
- func (r Notice) GetNoticeClassify(ctx core.Context, id uint32) (*entity.NoticeClassify, error)
- func (r Notice) IsExistNoticeByMd5(ctx core.Context, md5 string) bool
- func (r Notice) ListNotice(ctx core.Context, req *types.ListNoticeRequest) ([]*entity.Notice, uint32, error)
- func (r Notice) ListNoticeClassify(ctx core.Context) ([]*entity.NoticeClassify, error)
- func (r Notice) UpdateNotice(ctx core.Context, notice *entity.Notice) error
- func (r Notice) UpdateNoticeClassify(ctx core.Context, fc *entity.NoticeClassify) error
- type OAuther
- func (r *OAuther) CreateOAuther(ctx core.Context, channel *entity.OAuther) (uint32, error)
- func (r *OAuther) DeleteOAuther(ctx core.Context, id uint32) error
- func (r *OAuther) GetOAuther(ctx core.Context, id uint32) (*entity.OAuther, error)
- func (r *OAuther) GetOAutherByKeyword(ctx core.Context, keyword string) (*entity.OAuther, error)
- func (r *OAuther) ListOAuther(ctx core.Context, req *types.ListOAutherRequest) ([]*entity.OAuther, uint32, error)
- func (r *OAuther) UpdateOAuther(ctx core.Context, channel *entity.OAuther) error
- type Role
- func (infra *Role) CreateRole(ctx core.Context, req *entity.Role) (uint32, error)
- func (infra *Role) DeleteRole(ctx core.Context, app string, id uint32) error
- func (infra *Role) GetRole(ctx core.Context, app string, id uint32) (*entity.Role, error)
- func (infra *Role) GetRoleByKeyword(ctx core.Context, app string, keyword string) (*entity.Role, error)
- func (infra *Role) GetRoleChildrenIds(ctx core.Context, rids []uint32) ([]uint32, error)
- func (infra *Role) GetRoleChildrenKeywords(ctx core.Context, app string, id uint32) ([]string, error)
- func (infra *Role) GetRoleParentIds(ctx core.Context, rids []uint32) ([]uint32, error)
- func (infra *Role) ListRole(ctx core.Context, app string, req *types.ListRoleRequest) ([]*entity.Role, error)
- func (infra *Role) UpdateRole(ctx core.Context, req *entity.Role) error
- type RoleEntity
- func (r *RoleEntity) CreateRoleEntity(ctx core.Context, req *entity.RoleEntity) (uint32, error)
- func (r *RoleEntity) DeleteRoleEntity(ctx core.Context, app string, id uint32) error
- func (r *RoleEntity) GetRoleEntity(ctx core.Context, app string, id uint32) (*entity.RoleEntity, error)
- func (r *RoleEntity) GetRoleEntityByRDA(ctx core.Context, re *entity.RoleEntity) (*entity.RoleEntity, bool)
- func (r *RoleEntity) ListRoleEntity(ctx core.Context, app string, req *types.ListRoleEntityRequest) ([]*entity.RoleEntity, uint32, error)
- func (r *RoleEntity) UpdateRoleEntity(ctx core.Context, req *entity.RoleEntity) error
- type RoleMenu
- func (rm *RoleMenu) CreateRoleMenus(ctx core.Context, rms []*entity.RoleMenu) error
- func (rm *RoleMenu) DeleteMenus(ctx core.Context, app string, mids []uint32) error
- func (rm *RoleMenu) DeleteRoleMenus(ctx core.Context, rms []*entity.RoleMenu) error
- func (rm *RoleMenu) DeleteRoles(ctx core.Context, app string, rids []uint32) error
- func (rm *RoleMenu) GetMenuIdsByRoleIds(ctx core.Context, app string, rids []uint32) []uint32
- func (rm *RoleMenu) GetRoleIdsByMenuIds(ctx core.Context, app string, mids []uint32) []uint32
- type Scope
- func (s Scope) DeptIds(ctx core.Context) []uint32
- func (s Scope) DeptScopes(ctx core.Context, database string, entity string, action string) (bool, []uint32)
- func (s Scope) GetScope(ctx core.Context, database string, entity string, action string) *types.GetScopeResponse
- func (s Scope) HasMenuScope(ctx core.Context, menuId uint32) bool
- func (s Scope) HasRoleScope(ctx core.Context, roleId uint32) bool
- func (s Scope) RoleIds(ctx core.Context) []uint32
- func (s Scope) RoleScopes(ctx core.Context) []uint32
- func (s Scope) SystemDeptScopes(ctx core.Context, entity string, action string) (bool, []uint32)
- type User
- func (u *User) CreateUser(ctx core.Context, req *entity.User) (uint32, error)
- func (u *User) DeleteUser(ctx core.Context, id uint32) error
- func (u *User) GetUser(ctx core.Context, id uint32) (*entity.User, error)
- func (u *User) GetUserByUsername(ctx core.Context, keyword string) (*entity.User, error)
- func (u *User) ListUser(ctx core.Context, req *types.ListUserRequest) ([]*entity.User, uint32, error)
- func (u *User) UpdateUser(ctx core.Context, req *entity.User) error
- type UserDept
- func (ud *UserDept) CreateUserDept(ctx core.Context, ent *entity.UserDept) error
- func (ud *UserDept) DeleteUserDept(ctx core.Context, app string, id uint32) error
- func (ud *UserDept) GetDeptIdsByUserId(ctx core.Context, app string, userId uint32) []uint32
- func (ud *UserDept) GetUserMainDeptId(ctx core.Context, app string, uid uint32) uint32
- func (ud *UserDept) GetUserMainJobId(ctx core.Context, app string, uid uint32) uint32
- func (ud *UserDept) ListDeptUser(ctx core.Context, app string, req *types.ListDeptUserRequest) ([]*entity.User, uint32, error)
- func (ud *UserDept) ListUserDept(ctx core.Context, app string, req *types.ListUserDeptRequest) ([]*entity.UserDept, uint32, error)
- func (ud *UserDept) ListUserDeptByUserId(ctx core.Context, app string, id uint32) []*entity.UserDept
- func (ud *UserDept) UpdateUserDept(ctx core.Context, ent *entity.UserDept) error
- type UserForm
- func (r UserForm) CreateUserForm(ctx core.Context, ent *entity.UserForm) (uint32, error)
- func (r UserForm) DeleteUserForm(ctx core.Context, id uint32) error
- func (r UserForm) GetUserForm(ctx core.Context, req *types.GetUserFormRequest) (*entity.UserForm, error)
- func (r UserForm) ListUserForm(ctx core.Context, req *types.ListUserFormRequest) ([]*entity.UserForm, uint32, error)
- func (r UserForm) UpdateUserForm(ctx core.Context, ent *entity.UserForm) error
- type UserOAuther
- func (oa UserOAuther) CreateUserOAuther(ctx core.Context, ua *entity.UserOAuther) (uint32, error)
- func (oa UserOAuther) DeleteUserOAuther(ctx core.Context, userId uint32, oautherId uint32) error
- func (oa UserOAuther) GetUserOAutherByCO(ctx core.Context, cid uint32, oid string) (*entity.UserOAuther, error)
- func (oa UserOAuther) IsBindUserOAuther(ctx core.Context, cid uint32, oid string) bool
- func (oa UserOAuther) UpdateUserOAuther(ctx core.Context, ua *entity.UserOAuther) error
- type UserSetting
- type Userinfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (App) GetAppByKeyword ¶
GetAppByKeyword 获取指定数据
type AppField ¶ added in v1.2.8
type AppField struct{}
func NewAppField ¶ added in v1.2.8
func NewAppField() *AppField
func (AppField) CreateAppField ¶ added in v1.2.8
CreateAppField 创建数据
func (AppField) DeleteAppField ¶ added in v1.2.8
DeleteAppField 删除数据
func (AppField) GetAppFields ¶ added in v1.2.8
GetAppFields 获取列表
type AppForm ¶ added in v1.2.10
type AppForm struct{}
func NewAppForm ¶ added in v1.2.10
func NewAppForm() *AppForm
func (AppForm) CreateAppForm ¶ added in v1.2.10
CreateAppForm 分配表单到应用
func (AppForm) DeleteAppForm ¶ added in v1.2.10
DeleteAppForm 取消分配(by id)
func (AppForm) GetAppForm ¶ added in v1.2.10
func (r AppForm) GetAppForm(ctx core.Context, appKeyword string, scene string) (*entity.AppForm, error)
GetAppForm 获取单条关联(by app_keyword + scene)
func (AppForm) ListAppForm ¶ added in v1.2.10
func (r AppForm) ListAppForm(ctx core.Context, req *types.ListAppFormRequest) ([]*entity.AppForm, error)
ListAppForm 查询某应用下的表单关联列表
type AppOAuther ¶ added in v1.2.8
type AppOAuther struct{}
func NewAppOAuther ¶ added in v1.2.8
func NewAppOAuther() *AppOAuther
func (AppOAuther) CreateAppOAuther ¶ added in v1.2.8
func (r AppOAuther) CreateAppOAuther(ctx core.Context, aoc *entity.AppOAuther) (uint32, error)
CreateAppOAuther 创建数据
func (AppOAuther) DeleteAppOAuther ¶ added in v1.2.8
func (r AppOAuther) DeleteAppOAuther(ctx core.Context, id uint32) error
DeleteAppOAuther 删除数据
func (AppOAuther) GetAppOAutherByAT ¶ added in v1.2.8
func (r AppOAuther) GetAppOAutherByAT(ctx core.Context, app string, tp string) (*entity.AppOAuther, error)
func (AppOAuther) ListAppOAuther ¶ added in v1.2.8
func (r AppOAuther) ListAppOAuther(ctx core.Context, req *types.ListAppOAutherRequest) ([]*entity.AppOAuther, uint32, error)
ListAppOAuther 获取列表
type Authorize ¶ added in v1.2.8
type Authorize struct{}
func NewAuthorize ¶ added in v1.2.8
func NewAuthorize() *Authorize
func (*Authorize) CreateAuthorize ¶ added in v1.2.8
CreateAuthorize 创建数据
func (*Authorize) DeleteAuthorize ¶ added in v1.2.8
DeleteAuthorize 删除数据
func (*Authorize) GetAuthorize ¶ added in v1.2.8
type Dept ¶
type Dept struct {
// contains filtered or unexported fields
}
func (*Dept) CreateDept ¶
CreateDept 创建数据
func (*Dept) CreateDeptClassify ¶
CreateDeptClassify 创建数据
func (*Dept) DeleteDept ¶
DeleteDept 删除数据
func (*Dept) DeleteDeptClassify ¶
DeleteDeptClassify 删除数据
func (*Dept) GetDeptByKeyword ¶
func (dept *Dept) GetDeptByKeyword(ctx core.Context, app string, keyword string) (*entity.Dept, error)
GetDeptByKeyword 获取指定数据
func (*Dept) GetDeptChildrenIds ¶
GetDeptChildrenIds 获取指定id的所有子id
func (*Dept) GetDeptParentIds ¶
GetDeptParentIds 获取指定id的所有父id
func (*Dept) ListDept ¶
func (dept *Dept) ListDept(ctx core.Context, app string, req *types.ListDeptRequest) ([]*entity.Dept, error)
ListDept 获取列表 fixed code
func (*Dept) ListDeptClassify ¶
func (dept *Dept) ListDeptClassify(ctx core.Context, app string, req *types.ListDeptClassifyRequest) ([]*entity.DeptClassify, uint32, error)
ListDeptClassify 获取列表
func (*Dept) UpdateDept ¶
UpdateDept 更新数据
func (*Dept) UpdateDeptClassify ¶
UpdateDeptClassify 更新数据
type DeptRole ¶
type DeptRole struct {
// contains filtered or unexported fields
}
func NewDeptRole ¶
func NewDeptRole() *DeptRole
func (*DeptRole) CreateDeptRole ¶ added in v1.2.8
CreateDeptRole 创建部门角色
func (*DeptRole) DeleteDeptRole ¶ added in v1.2.8
DeleteDeptRole 获取指定部门的角色列表
func (*DeptRole) GetDeptIdsByRoleIds ¶
GetDeptIdsByRoleIds 获取指定角色绑定的所有部门ID
func (*DeptRole) GetDeptRolesByDeptIds ¶
func (dr *DeptRole) GetDeptRolesByDeptIds(ctx core.Context, app string, deptIds []uint32) []*entity.DeptRole
GetDeptRolesByDeptIds 获取指定部门绑定的所有角色ID
func (*DeptRole) GetRoleIdsByDeptIds ¶
GetRoleIdsByDeptIds 获取指定部门绑定的所有角色ID
type Dictionary ¶
type Dictionary struct{}
func NewDictionary ¶
func NewDictionary() *Dictionary
func (*Dictionary) AllDictionaryValue ¶
func (infra *Dictionary) AllDictionaryValue(ctx kratosx.Context, req *types.AllDictionaryValueRequest) ([]*entity.DictionaryValue, error)
func (*Dictionary) AllDictionaryValueByKeyword ¶
func (infra *Dictionary) AllDictionaryValueByKeyword(ctx kratosx.Context, keyword string) ([]*entity.DictionaryValue, error)
func (*Dictionary) CreateDictionary ¶
func (infra *Dictionary) CreateDictionary(ctx kratosx.Context, dict *entity.Dictionary) (uint32, error)
CreateDictionary 创建数据
func (*Dictionary) CreateDictionaryValue ¶
func (infra *Dictionary) CreateDictionaryValue(ctx kratosx.Context, dictValue *entity.DictionaryValue) (uint32, error)
CreateDictionaryValue 创建数据
func (*Dictionary) DeleteDictionary ¶
func (infra *Dictionary) DeleteDictionary(ctx kratosx.Context, id uint32) error
DeleteDictionary 删除数据
func (*Dictionary) DeleteDictionaryValue ¶
func (infra *Dictionary) DeleteDictionaryValue(ctx kratosx.Context, id uint32) error
DeleteDictionaryValue 删除数据
func (*Dictionary) GetDictionary ¶
func (infra *Dictionary) GetDictionary(ctx kratosx.Context, id uint32) (*entity.Dictionary, error)
GetDictionary 获取指定的数据
func (*Dictionary) GetDictionaryByKeyword ¶
func (infra *Dictionary) GetDictionaryByKeyword(ctx kratosx.Context, keyword string) (*entity.Dictionary, error)
GetDictionaryByKeyword 获取指定数据
func (*Dictionary) GetDictionaryValue ¶
func (infra *Dictionary) GetDictionaryValue(ctx kratosx.Context, id uint32) (*entity.DictionaryValue, error)
GetDictionaryValue 获取指定的数据
func (*Dictionary) ListDictionary ¶
func (infra *Dictionary) ListDictionary(ctx kratosx.Context, req *types.ListDictionaryRequest) ([]*entity.Dictionary, uint32, error)
ListDictionary 获取列表
func (*Dictionary) ListDictionaryValue ¶
func (infra *Dictionary) ListDictionaryValue(ctx kratosx.Context, req *types.ListDictionaryValueRequest) ([]*entity.DictionaryValue, uint32, error)
ListDictionaryValue 获取列表
func (*Dictionary) ListDictionaryValues ¶
func (infra *Dictionary) ListDictionaryValues(ctx kratosx.Context, keywords []string) ([]*types.DictionaryValue, error)
func (*Dictionary) UpdateDictionary ¶
func (infra *Dictionary) UpdateDictionary(ctx kratosx.Context, dict *entity.Dictionary) error
UpdateDictionary 更新数据
func (*Dictionary) UpdateDictionaryValue ¶
func (infra *Dictionary) UpdateDictionaryValue(ctx kratosx.Context, dictValue *entity.DictionaryValue) error
UpdateDictionaryValue 更新数据
func (*Dictionary) UpdateDictionaryValueStatus ¶
func (infra *Dictionary) UpdateDictionaryValueStatus(ctx kratosx.Context, id uint32, status bool) error
UpdateDictionaryValueStatus 更新数据状态
type Entity ¶
type Entity struct {
// contains filtered or unexported fields
}
func (*Entity) CreateEntity ¶
CreateEntity 创建数据
func (*Entity) CreateEntityField ¶
CreateEntityField 创建数据
func (*Entity) CreateEntityRule ¶
CreateEntityRule 创建数据
func (*Entity) DeleteEntities ¶ added in v1.2.10
DeleteEntities 删除多条实体数据
func (*Entity) DeleteEntity ¶
DeleteEntity 删除数据
func (*Entity) DeleteEntityField ¶
DeleteEntityField 删除数据
func (*Entity) DeleteEntityFields ¶ added in v1.2.10
DeleteEntityFields 删除多条实体字段
func (*Entity) DeleteEntityRule ¶
DeleteEntityRule 删除数据
func (*Entity) DeleteEntityRules ¶ added in v1.2.10
DeleteEntityRules 删除多条实体规则
func (*Entity) GetEntityByName ¶ added in v1.2.10
func (infra *Entity) GetEntityByName(ctx core.Context, app string, db string, name string) (*entity.Entity, error)
GetEntityByName 获取指定应用下的实体
func (*Entity) GetEntityField ¶
func (*Entity) GetEntityIdByName ¶
func (*Entity) GetEntityRule ¶
func (*Entity) ListEntity ¶
func (infra *Entity) ListEntity(ctx core.Context, req *types.ListEntityRequest) ([]*entity.Entity, error)
ListEntity 获取列表 fixed code
func (*Entity) ListEntityField ¶
func (infra *Entity) ListEntityField(ctx core.Context, req *types.ListEntityFieldRequest) ([]*entity.EntityField, uint32, error)
ListEntityField 获取列表
func (*Entity) ListEntityRule ¶
func (infra *Entity) ListEntityRule(ctx core.Context, req *types.ListEntityRuleRequest) ([]*entity.EntityRule, uint32, error)
ListEntityRule 获取列表
func (*Entity) UpdateEntity ¶
UpdateEntity 更新数据
func (*Entity) UpdateEntityField ¶
UpdateEntityField 更新数据
func (*Entity) UpdateEntityRule ¶
UpdateEntityRule 更新数据
func (*Entity) UpdateRegisteredEntity ¶ added in v1.2.10
UpdateRegisteredEntity 更新注册实体
func (*Entity) UpdateRegisteredEntityField ¶ added in v1.2.10
UpdateRegisteredEntityField 更新注册实体字段
func (*Entity) UpdateRegisteredEntityRule ¶ added in v1.2.10
UpdateRegisteredEntityRule 更新注册实体规则
type Feedback ¶
type Feedback struct{}
func NewFeedback ¶
func NewFeedback() *Feedback
func (Feedback) CreateFeedback ¶
CreateFeedback 创建数据
func (Feedback) CreateFeedbackClassify ¶ added in v1.2.10
func (r Feedback) CreateFeedbackClassify(ctx core.Context, fc *entity.FeedbackClassify) (uint32, error)
CreateFeedbackClassify 创建数据
func (Feedback) DeleteFeedback ¶
DeleteFeedback 删除数据
func (Feedback) DeleteFeedbackClassify ¶ added in v1.2.10
DeleteFeedbackClassify 删除数据
func (Feedback) GetFeedback ¶
GetFeedback 获取指定的数据
func (Feedback) GetFeedbackClassify ¶ added in v1.2.10
func (r Feedback) GetFeedbackClassify(ctx core.Context, id uint32) (*entity.FeedbackClassify, error)
GetFeedbackClassify 获取指定的数据
func (Feedback) IsExistFeedbackByMd5 ¶
func (Feedback) ListFeedback ¶
func (r Feedback) ListFeedback(ctx core.Context, req *types.ListFeedbackRequest) ([]*entity.Feedback, uint32, error)
ListFeedback 获取列表
func (Feedback) ListFeedbackClassify ¶ added in v1.2.10
func (r Feedback) ListFeedbackClassify(ctx core.Context, req *types.ListFeedbackClassifyRequest) ([]*entity.FeedbackClassify, uint32, error)
ListFeedbackClassify 获取列表
func (Feedback) UpdateFeedback ¶
UpdateFeedback 更新数据
func (Feedback) UpdateFeedbackClassify ¶ added in v1.2.10
UpdateFeedbackClassify 更新数据
type Field ¶
type Field struct{}
func (Field) CreateField ¶
CreateField 创建数据
func (Field) DeleteField ¶
DeleteField 删除数据
type FormScene ¶ added in v1.2.10
type FormScene struct{}
func NewFormScene ¶ added in v1.2.10
func NewFormScene() *FormScene
func (FormScene) CreateFormScene ¶ added in v1.2.10
CreateFormScene 创建场景
func (FormScene) DeleteFormScene ¶ added in v1.2.10
DeleteFormScene 删除场景
func (FormScene) GetFormScene ¶ added in v1.2.10
GetFormScene 获取场景(by id)
func (FormScene) GetFormSceneByKeyword ¶ added in v1.2.10
func (r FormScene) GetFormSceneByKeyword(ctx core.Context, keyword string) (*entity.FormScene, error)
GetFormSceneByKeyword 获取场景(by keyword)
type Job ¶
type Job struct{}
type JobRole ¶
type JobRole struct {
// contains filtered or unexported fields
}
func NewJobRole ¶
func NewJobRole() *JobRole
func (*JobRole) CreateJobRole ¶ added in v1.2.8
CreateJobRole 批量绑定职位角色关系
func (*JobRole) DeleteJobRole ¶ added in v1.2.8
DeleteJobRole 获取指定菜单的角色列表
func (*JobRole) GetJobIdsByRoleIds ¶
GetJobIdsByRoleIds 获取指定角色绑定的所有部门ID
func (*JobRole) GetJobRolesByJobIds ¶
func (jr *JobRole) GetJobRolesByJobIds(ctx core.Context, app string, jobIds []uint32) []*entity.JobRole
GetJobRolesByJobIds 获取指定角色绑定的所有部门ID
func (*JobRole) GetRoleIdsByJobIds ¶
GetRoleIdsByJobIds 获取指定部门绑定的所有角色ID
type Log ¶ added in v1.2.8
type Log struct{}
func (*Log) CreateAuthLog ¶ added in v1.2.8
CreateAuthLog 创建数据
func (*Log) CreateLoginLog ¶ added in v1.2.8
CreateLoginLog 创建数据
type Menu ¶
type Menu struct {
// contains filtered or unexported fields
}
func (*Menu) CreateMenu ¶
CreateMenu 创建数据
func (*Menu) DeleteMenu ¶
DeleteMenu 删除数据
func (*Menu) DeleteMenus ¶ added in v1.2.10
DeleteMenus 删除多个菜单数据
func (*Menu) GetCacheMenu ¶ added in v1.2.8
GetCacheMenu 获取api类型
func (*Menu) GetMenuByApi ¶ added in v1.2.10
func (infra *Menu) GetMenuByApi(ctx core.Context, app string, api string, method string) (*entity.Menu, error)
GetMenuByApi 获取指定应用下指定接口的菜单
func (*Menu) GetMenuByKeyword ¶ added in v1.2.10
func (infra *Menu) GetMenuByKeyword(ctx core.Context, app string, keyword string) (*entity.Menu, error)
GetMenuByKeyword 获取指定应用下指定标识的菜单
func (*Menu) GetMenuChildrenIds ¶
GetMenuChildrenIds 获取指定id的所有子id
func (*Menu) GetMenuIdsByApp ¶ added in v1.2.10
GetMenuIdsByApp 获取指定app的所有菜单id
func (*Menu) GetMenuParentIds ¶
GetMenuParentIds 获取指定id的所有父id
func (*Menu) GetMenuParentIdsByIds ¶ added in v1.2.8
GetMenuParentIdsByIds 获取指定id的所有父id
func (*Menu) ListMenuChildrenApi ¶
func (*Menu) UpdateMenu ¶
UpdateMenu 更新数据
type Notice ¶ added in v1.2.10
type Notice struct{}
func (Notice) AddUserNotice ¶ added in v1.2.10
func (Notice) CreateNotice ¶ added in v1.2.10
CreateNotice 创建数据
func (Notice) CreateNoticeClassify ¶ added in v1.2.10
CreateNoticeClassify 创建数据
func (Notice) DeleteNotice ¶ added in v1.2.10
DeleteNotice 删除数据
func (Notice) DeleteNoticeClassify ¶ added in v1.2.10
DeleteNoticeClassify 删除数据
func (Notice) GetNoticeClassify ¶ added in v1.2.10
GetNoticeClassify 获取指定的数据
func (Notice) IsExistNoticeByMd5 ¶ added in v1.2.10
func (Notice) ListNotice ¶ added in v1.2.10
func (r Notice) ListNotice(ctx core.Context, req *types.ListNoticeRequest) ([]*entity.Notice, uint32, error)
ListNotice 获取列表
func (Notice) ListNoticeClassify ¶ added in v1.2.10
ListNoticeClassify 获取列表
func (Notice) UpdateNotice ¶ added in v1.2.10
UpdateNotice 更新数据
func (Notice) UpdateNoticeClassify ¶ added in v1.2.10
UpdateNoticeClassify 更新数据
type OAuther ¶ added in v1.2.8
type OAuther struct{}
func NewOAuther ¶ added in v1.2.8
func NewOAuther() *OAuther
func (*OAuther) CreateOAuther ¶ added in v1.2.8
CreateOAuther 创建数据
func (*OAuther) DeleteOAuther ¶ added in v1.2.8
DeleteOAuther 删除数据
func (*OAuther) GetOAuther ¶ added in v1.2.8
GetOAuther 获取指定的数据
func (*OAuther) GetOAutherByKeyword ¶ added in v1.2.8
GetOAutherByKeyword 获取指定数据
type Role ¶
type Role struct{}
func (*Role) CreateRole ¶
CreateRole 创建数据
func (*Role) DeleteRole ¶
DeleteRole 删除数据
func (*Role) GetRoleByKeyword ¶
func (infra *Role) GetRoleByKeyword(ctx core.Context, app string, keyword string) (*entity.Role, error)
GetRoleByKeyword 获取指定数据
func (*Role) GetRoleChildrenIds ¶
GetRoleChildrenIds 获取指定id的所有子id
func (*Role) GetRoleChildrenKeywords ¶
func (infra *Role) GetRoleChildrenKeywords(ctx core.Context, app string, id uint32) ([]string, error)
GetRoleChildrenKeywords 获取指定id的所有子keyword
func (*Role) GetRoleParentIds ¶
GetRoleParentIds 获取指定id的所有父id
type RoleEntity ¶
type RoleEntity struct {
// contains filtered or unexported fields
}
func NewRoleEntity ¶
func NewRoleEntity() *RoleEntity
func (*RoleEntity) CreateRoleEntity ¶
func (r *RoleEntity) CreateRoleEntity(ctx core.Context, req *entity.RoleEntity) (uint32, error)
CreateRoleEntity 创建数据
func (*RoleEntity) DeleteRoleEntity ¶
DeleteRoleEntity 删除数据
func (*RoleEntity) GetRoleEntity ¶
func (r *RoleEntity) GetRoleEntity(ctx core.Context, app string, id uint32) (*entity.RoleEntity, error)
GetRoleEntity 获取指定的数据
func (*RoleEntity) GetRoleEntityByRDA ¶
func (r *RoleEntity) GetRoleEntityByRDA(ctx core.Context, re *entity.RoleEntity) (*entity.RoleEntity, bool)
func (*RoleEntity) ListRoleEntity ¶
func (r *RoleEntity) ListRoleEntity(ctx core.Context, app string, req *types.ListRoleEntityRequest) ([]*entity.RoleEntity, uint32, error)
ListRoleEntity 获取列表
func (*RoleEntity) UpdateRoleEntity ¶
func (r *RoleEntity) UpdateRoleEntity(ctx core.Context, req *entity.RoleEntity) error
UpdateRoleEntity 更新数据
type RoleMenu ¶
type RoleMenu struct {
// contains filtered or unexported fields
}
func NewRoleMenu ¶
func NewRoleMenu() *RoleMenu
func (*RoleMenu) CreateRoleMenus ¶
CreateRoleMenus 获取指定菜单的角色列表
func (*RoleMenu) DeleteMenus ¶
func (*RoleMenu) DeleteRoleMenus ¶
DeleteRoleMenus 获取指定菜单的角色列表
func (*RoleMenu) DeleteRoles ¶
func (*RoleMenu) GetMenuIdsByRoleIds ¶
type Scope ¶
type Scope struct {
// contains filtered or unexported fields
}
func (Scope) DeptScopes ¶
func (s Scope) DeptScopes(ctx core.Context, database string, entity string, action string) (bool, []uint32)
DeptScopes 获取当前操
func (Scope) GetScope ¶
func (s Scope) GetScope(ctx core.Context, database string, entity string, action string) *types.GetScopeResponse
GetScope 获取的规则
func (Scope) HasRoleScope ¶
HasRoleScope 获取用户是否具有指定角色的权限
type User ¶
type User struct{}
func (*User) CreateUser ¶
CreateUser 创建数据
func (*User) DeleteUser ¶
DeleteUser 删除数据
func (*User) GetUserByUsername ¶
GetUserByUsername 获取指定数据
type UserDept ¶
type UserDept struct {
// contains filtered or unexported fields
}
func NewUserDept ¶
func NewUserDept() *UserDept
func (*UserDept) CreateUserDept ¶
CreateUserDept 批量绑定部门部门角色关系
func (*UserDept) DeleteUserDept ¶
DeleteUserDept 获取指定菜单的角色列表
func (*UserDept) GetDeptIdsByUserId ¶
GetDeptIdsByUserId 获取指定部门绑定的所有角色ID
func (*UserDept) GetUserMainDeptId ¶ added in v1.2.8
func (*UserDept) GetUserMainJobId ¶ added in v1.2.10
func (*UserDept) ListDeptUser ¶
func (ud *UserDept) ListDeptUser(ctx core.Context, app string, req *types.ListDeptUserRequest) ([]*entity.User, uint32, error)
ListDeptUser 获取指定角色绑定的所有部门
func (*UserDept) ListUserDept ¶
func (ud *UserDept) ListUserDept(ctx core.Context, app string, req *types.ListUserDeptRequest) ([]*entity.UserDept, uint32, error)
ListUserDept 获取指定部门的角色列表
type UserForm ¶ added in v1.2.10
type UserForm struct{}
func NewUserForm ¶ added in v1.2.10
func NewUserForm() *UserForm
func (UserForm) CreateUserForm ¶ added in v1.2.10
CreateUserForm 创建表单
func (UserForm) DeleteUserForm ¶ added in v1.2.10
DeleteUserForm 删除表单
func (UserForm) GetUserForm ¶ added in v1.2.10
func (r UserForm) GetUserForm(ctx core.Context, req *types.GetUserFormRequest) (*entity.UserForm, error)
GetUserForm 获取表单(by id 或 scene)
type UserOAuther ¶ added in v1.2.8
type UserOAuther struct{}
func NewUserOAuther ¶ added in v1.2.8
func NewUserOAuther() *UserOAuther
func (UserOAuther) CreateUserOAuther ¶ added in v1.2.8
func (oa UserOAuther) CreateUserOAuther(ctx core.Context, ua *entity.UserOAuther) (uint32, error)
func (UserOAuther) DeleteUserOAuther ¶ added in v1.2.8
func (UserOAuther) GetUserOAutherByCO ¶ added in v1.2.8
func (oa UserOAuther) GetUserOAutherByCO(ctx core.Context, cid uint32, oid string) (*entity.UserOAuther, error)
GetUserOAutherByCO 通过oauther_id 和 oid获取 授权信息
func (UserOAuther) IsBindUserOAuther ¶ added in v1.2.8
func (UserOAuther) UpdateUserOAuther ¶ added in v1.2.8
func (oa UserOAuther) UpdateUserOAuther(ctx core.Context, ua *entity.UserOAuther) error
type UserSetting ¶
type UserSetting struct{}
func NewUserSetting ¶
func NewUserSetting() *UserSetting
func (*UserSetting) GetUserSetting ¶
func (u *UserSetting) GetUserSetting(ctx core.Context, req *types.GetUserSettingRequest) (*entity.UserSetting, error)
GetUserSetting 获取设置信息
func (*UserSetting) UpsertUserSetting ¶
func (u *UserSetting) UpsertUserSetting(ctx core.Context, req *entity.UserSetting) error
UpsertUserSetting 更新数据
type Userinfo ¶
type Userinfo struct{}
func NewUserinfo ¶
func NewUserinfo() *Userinfo
func (*Userinfo) ListUserinfo ¶
func (u *Userinfo) ListUserinfo(ctx core.Context, req *types.ListUserinfoRequest) ([]*entity.Userinfo, error)
ListUserinfo 获取指定用户的数据