app

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2025 License: MIT Imports: 44 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(hs *http.Server, gs *grpc.Server)

Types

type App

type App struct {
	app.UnimplementedAppServer
	// contains filtered or unexported fields
}

func NewApp

func NewApp() *App

func (*App) CreateApp

func (s *App) CreateApp(c context.Context, req *app.CreateAppRequest) (*app.CreateAppReply, error)

CreateApp 创建应用信息

func (*App) DeleteApp

func (s *App) DeleteApp(c context.Context, req *app.DeleteAppRequest) (*app.DeleteAppReply, error)

DeleteApp 删除应用信息

func (*App) GetApp

func (s *App) GetApp(c context.Context, req *app.GetAppRequest) (*app.GetAppReply, error)

GetApp 获取指定的应用信息

func (*App) GetAppByKeyword added in v1.2.8

func (s *App) GetAppByKeyword(c context.Context, keyword string) (*entity.App, error)

GetAppByKeyword 获取指定的应用信息

func (*App) GetSampleApp added in v1.2.8

func (s *App) GetSampleApp(c context.Context, req *app.GetSampleAppRequest) (*app.GetSampleAppReply, error)

GetSampleApp 获取指定的应用信息

func (*App) ListApp

func (s *App) ListApp(c context.Context, req *app.ListAppRequest) (*app.ListAppReply, error)

ListApp 获取应用信息列表

func (*App) UpdateApp

func (s *App) UpdateApp(c context.Context, req *app.UpdateAppRequest) (*app.UpdateAppReply, error)

UpdateApp 更新应用信息

type AppField added in v1.2.8

type AppField struct {
	appfield.UnimplementedAppFieldServer
	// contains filtered or unexported fields
}

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) ListAppField added in v1.2.8

ListAppField 获取应用渠道信息

func (*AppField) UpdateAppField added in v1.2.8

UpdateAppField 更新应用渠道信息

type AppOAuther added in v1.2.8

type AppOAuther struct {
	appoauther.UnimplementedAppOAutherServer
	// contains filtered or unexported fields
}

func NewAppOAuther added in v1.2.8

func NewAppOAuther() *AppOAuther

func (*AppOAuther) CreateAppOAuther added in v1.2.8

CreateAppOAuther 创建应用渠道信息

func (*AppOAuther) DeleteAppOAuther added in v1.2.8

DeleteAppOAuther 删除应用信息

func (*AppOAuther) ListAppOAuther added in v1.2.8

ListAppOAuther 获取应用渠道信息

type Authorize added in v1.2.8

type Authorize struct {
	authorize.UnimplementedAuthorizeServer
	// contains filtered or unexported fields
}

func NewAuthorize added in v1.2.8

func NewAuthorize() *Authorize

func (*Authorize) CheckAuth added in v1.2.8

func (*Authorize) GetImageCaptcha added in v1.2.8

func (*Authorize) ListOAuther added in v1.2.8

ListOAuther 获取登陆渠道信息

func (*Authorize) Login added in v1.2.8

func (*Authorize) OAutherBind added in v1.2.8

func (*Authorize) OAutherHandle added in v1.2.8

func (*Authorize) OAutherLogin added in v1.2.8

func (*Authorize) Register added in v1.2.8

type Dept

type Dept struct {
	dept.UnimplementedDeptServer
	// contains filtered or unexported fields
}

func NewDept

func NewDept() *Dept

NewDept 初始化租户应用

func (*Dept) CreateDept

func (app *Dept) CreateDept(c context.Context, req *dept.CreateDeptRequest) (*dept.CreateDeptReply, error)

CreateDept 创建租户信息

func (*Dept) CreateDeptClassify

func (app *Dept) CreateDeptClassify(c context.Context, req *dept.CreateDeptClassifyRequest) (*dept.CreateDeptClassifyReply, error)

CreateDeptClassify 创建租户信息

func (*Dept) DeleteDept

func (app *Dept) DeleteDept(c context.Context, req *dept.DeleteDeptRequest) (*dept.DeleteDeptReply, error)

DeleteDept 删除租户信息

func (*Dept) DeleteDeptClassify

func (app *Dept) DeleteDeptClassify(c context.Context, req *dept.DeleteDeptClassifyRequest) (*dept.DeleteDeptClassifyReply, error)

DeleteDeptClassify 删除租户信息

func (*Dept) GetDept

func (app *Dept) GetDept(c context.Context, req *dept.GetDeptRequest) (*dept.GetDeptReply, error)

GetDept 获取指定租户信息

func (*Dept) ListCurrentDept

func (app *Dept) ListCurrentDept(c context.Context, req *dept.ListDeptRequest) (*dept.ListDeptReply, error)

ListCurrentDept 获取租户信息列表

func (*Dept) ListDept

func (app *Dept) ListDept(c context.Context, req *dept.ListDeptRequest) (*dept.ListDeptReply, error)

ListDept 获取租户信息列表

func (*Dept) ListDeptClassify

func (app *Dept) ListDeptClassify(c context.Context, req *dept.ListDeptClassifyRequest) (*dept.ListDeptClassifyReply, error)

ListDeptClassify 获取租户信息列表

func (*Dept) UpdateDept

func (app *Dept) UpdateDept(c context.Context, req *dept.UpdateDeptRequest) (*dept.UpdateDeptReply, error)

UpdateDept 更新租户信息

func (*Dept) UpdateDeptClassify

func (app *Dept) UpdateDeptClassify(c context.Context, req *dept.UpdateDeptClassifyRequest) (*dept.UpdateDeptClassifyReply, error)

UpdateDeptClassify 更新租户信息

type DeptRole

type DeptRole struct {
	deptrole.UnimplementedDeptRoleServer
	// contains filtered or unexported fields
}

func NewDeptRole

func NewDeptRole() *DeptRole

func (*DeptRole) CreateDeptRole added in v1.2.8

func (*DeptRole) DeleteDeptRole added in v1.2.8

func (*DeptRole) ListDeptRole

ListDeptRole 获取角色菜单列表

type Dictionary

type Dictionary struct {
	dictionary.UnimplementedDictionaryServer
	// contains filtered or unexported fields
}

func NewDictionary

func NewDictionary() *Dictionary

func (*Dictionary) CreateDictionary

CreateDictionary 创建字典目录

func (*Dictionary) CreateDictionaryValue

CreateDictionaryValue 创建字典值目录

func (*Dictionary) DeleteDictionary

DeleteDictionary 删除字典目录

func (*Dictionary) DeleteDictionaryValue

DeleteDictionaryValue 删除字典值目录

func (*Dictionary) GetDictionary

GetDictionary 获取指定的字典目录

func (*Dictionary) ListDictionary

ListDictionary 获取字典目录列表

func (*Dictionary) ListDictionaryValue

ListDictionaryValue 获取字典值目录列表

func (*Dictionary) UpdateDictionary

UpdateDictionary 更新字典目录

func (*Dictionary) UpdateDictionaryValue

UpdateDictionaryValue 更新字典值目录

func (*Dictionary) UpdateDictionaryValueStatus

UpdateDictionaryValueStatus 更新字典值目录状态

type Entity

type Entity struct {
	apientity.UnimplementedEntityServer
	// contains filtered or unexported fields
}

func NewEntity

func NewEntity() *Entity

NewEntity 初始化租户应用

func (*Entity) CreateEntity

CreateEntity 创建实体

func (*Entity) CreateEntityField

CreateEntityField 创建实体

func (*Entity) CreateEntityRule

CreateEntityRule 创建实体规则

func (*Entity) DeleteEntity

DeleteEntity 删除实体

func (*Entity) DeleteEntityField

DeleteEntityField 删除实体

func (*Entity) DeleteEntityRule

DeleteEntityRule 删除实体规则

func (*Entity) ImportEntity

func (app *Entity) ImportEntity(c context.Context, req *apientity.ImportEntityRequest) (*emptypb.Empty, error)

ImportEntity 载入全部实体信息

func (*Entity) ListEntity

ListEntity 获取实体列表

func (*Entity) ListEntityField

ListEntityField 获取实体列表

func (*Entity) ListEntityRule

ListEntityRule 获取实体规则列表

func (*Entity) LoadEntity

func (app *Entity) LoadEntity(c context.Context, _ *emptypb.Empty) (*apientity.LoadEntityReply, error)

LoadEntity 载入全部实体信息

func (*Entity) UpdateEntity

UpdateEntity 更新实体

func (*Entity) UpdateEntityField

UpdateEntityField 更新实体

func (*Entity) UpdateEntityRule

UpdateEntityRule 更新实体规则

type Feedback

type Feedback struct {
	feedback.UnimplementedFeedbackServer
	// contains filtered or unexported fields
}

func NewFeedback

func NewFeedback() *Feedback

func (*Feedback) CreateFeedback

CreateFeedback 创建反馈建议

func (*Feedback) CreateFeedbackCategory

CreateFeedbackCategory 创建反馈建议分类

func (*Feedback) DeleteFeedback

DeleteFeedback 删除反馈建议

func (*Feedback) DeleteFeedbackCategory

DeleteFeedbackCategory 删除反馈建议分类

func (*Feedback) ListFeedback

ListFeedback 获取反馈建议列表

func (*Feedback) ListFeedbackCategory

ListFeedbackCategory 获取反馈建议分类列表

func (*Feedback) UpdateFeedback

UpdateFeedback 更新反馈建议

func (*Feedback) UpdateFeedbackCategory

UpdateFeedbackCategory 更新反馈建议分类

type Field

type Field struct {
	field.UnimplementedFieldServer
	// contains filtered or unexported fields
}

func NewField

func NewField() *Field

func (*Field) CreateField

CreateField 创建用户字段

func (*Field) DeleteField

DeleteField 删除用户字段

func (*Field) ListField

func (fd *Field) ListField(c context.Context, req *field.ListFieldRequest) (*field.ListFieldReply, error)

ListField 获取用户字段列表

func (*Field) ListFieldType

ListFieldType 获取字段类型列表

func (*Field) ListRequiredField added in v1.2.8

ListRequiredField 获取必填用户字段列表

func (*Field) UpdateField

UpdateField 更新用户字段

type Job

type Job struct {
	job.UnimplementedJobServer
	// contains filtered or unexported fields
}

func NewJob

func NewJob() *Job

NewJob 初始化租户应用

func (*Job) CreateJob

func (app *Job) CreateJob(c context.Context, req *job.CreateJobRequest) (*job.CreateJobReply, error)

CreateJob 创建租户信息

func (*Job) DeleteJob

func (app *Job) DeleteJob(c context.Context, req *job.DeleteJobRequest) (*job.DeleteJobReply, error)

DeleteJob 删除租户信息

func (*Job) ListJob

func (app *Job) ListJob(c context.Context, req *job.ListJobRequest) (*job.ListJobReply, error)

ListJob 获取租户信息列表

func (*Job) UpdateJob

func (app *Job) UpdateJob(c context.Context, req *job.UpdateJobRequest) (*job.UpdateJobReply, error)

UpdateJob 更新租户信息

type JobRole

type JobRole struct {
	jobrole.UnimplementedJobRoleServer
	// contains filtered or unexported fields
}

func NewJobRole

func NewJobRole() *JobRole

func (*JobRole) CreateJobRole added in v1.2.8

func (*JobRole) DeleteJobRole added in v1.2.8

func (*JobRole) ListJobRole

ListJobRole 获取角色菜单列表

type Log added in v1.2.8

type Log struct {
	log.UnimplementedLogServer
	// contains filtered or unexported fields
}

func NewLog added in v1.2.8

func NewLog() *Log

func (*Log) ListAuthLog added in v1.2.8

func (s *Log) ListAuthLog(c context.Context, req *log.ListAuthLogRequest) (*log.ListAuthLogReply, error)

ListAuthLog 获取鉴权日志

func (*Log) ListLoginLog added in v1.2.8

func (s *Log) ListLoginLog(c context.Context, req *log.ListLoginLogRequest) (*log.ListLoginLogReply, error)

ListLoginLog 获取登陆日志

type Menu struct {
	menu.UnimplementedMenuServer
	// contains filtered or unexported fields
}

func NewMenu

func NewMenu() *Menu
func (s *Menu) CreateMenu(c context.Context, req *menu.CreateMenuRequest) (*menu.CreateMenuReply, error)

CreateMenu 创建菜单

func (s *Menu) DeleteMenu(c context.Context, req *menu.DeleteMenuRequest) (*menu.DeleteMenuReply, error)

DeleteMenu 删除菜单

func (s *Menu) ListCurrentMenu(c context.Context, req *menu.ListCurrentMenuRequest) (*menu.ListMenuReply, error)

ListCurrentMenu 获取当前用户的菜单列表

func (s *Menu) ListMenu(c context.Context, req *menu.ListMenuRequest) (*menu.ListMenuReply, error)

ListMenu 获取菜单列表

func (s *Menu) UpdateMenu(c context.Context, req *menu.UpdateMenuRequest) (*menu.UpdateMenuReply, error)

UpdateMenu 更新菜单

type OAuther added in v1.2.8

type OAuther struct {
	oauther.UnimplementedOAutherServer
	// contains filtered or unexported fields
}

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) ListOAuther added in v1.2.8

ListOAuther 获取登陆渠道列表

func (*OAuther) ListOAutherType added in v1.2.8

ListOAutherType 获取登陆渠道可用列表

func (*OAuther) UpdateOAuther added in v1.2.8

UpdateOAuther 更新登陆渠道

type Role

type Role struct {
	role.UnimplementedRoleServer
	// contains filtered or unexported fields
}

func NewRole

func NewRole() *Role

NewRole 初始化角色应用

func (*Role) CreateRole

func (app *Role) CreateRole(c context.Context, req *role.CreateRoleRequest) (*role.CreateRoleReply, error)

CreateRole 创建角色信息

func (*Role) DeleteRole

func (app *Role) DeleteRole(c context.Context, req *role.DeleteRoleRequest) (*role.DeleteRoleReply, error)

DeleteRole 删除角色信息

func (*Role) GetRole

func (app *Role) GetRole(c context.Context, req *role.GetRoleRequest) (*role.GetRoleReply, error)

GetRole 获取指定角色信息

func (*Role) ListCurrentRole

func (app *Role) ListCurrentRole(c context.Context, req *role.ListRoleRequest) (*role.ListRoleReply, error)

ListCurrentRole 获取角色信息列表

func (*Role) ListRole

func (app *Role) ListRole(c context.Context, req *role.ListRoleRequest) (*role.ListRoleReply, error)

ListRole 获取角色信息列表

func (*Role) UpdateRole

func (app *Role) UpdateRole(c context.Context, req *role.UpdateRoleRequest) (*role.UpdateRoleReply, error)

UpdateRole 更新角色信息

type RoleEntity

type RoleEntity struct {
	roleentity.UnimplementedRoleEntityServer
	// contains filtered or unexported fields
}

func NewRoleEntity

func NewRoleEntity() *RoleEntity

func (*RoleEntity) CreateRoleEntity

CreateRoleEntity 创建用户字段

func (*RoleEntity) DeleteRoleEntity

DeleteRoleEntity 删除用户字段

func (*RoleEntity) ListRoleEntity

ListRoleEntity 获取用户字段列表

func (*RoleEntity) UpdateRoleEntity

UpdateRoleEntity 更新用户字段

type RoleMenu

type RoleMenu struct {
	rolemenu.UnimplementedRoleMenuServer
	// contains filtered or unexported fields
}

func NewRoleMenu

func NewRoleMenu() *RoleMenu

func (*RoleMenu) GetMenuRoleIds

GetMenuRoleIds 获取角色菜单列表

func (*RoleMenu) GetRoleMenuIds

GetRoleMenuIds 获取角色菜单列表

type Scope added in v1.2.0

type Scope struct {
	scope.UnimplementedScopeServer
	// contains filtered or unexported fields
}

func NewScope added in v1.2.0

func NewScope() *Scope

NewScope 初始化角色应用

func (*Scope) GetScope added in v1.2.0

func (app *Scope) GetScope(c context.Context, req *scope.GetScopeRequest) (*scope.GetScopeReply, error)

GetScope 获取指定角色信息

type System

type System struct {
	system.UnimplementedSystemServer
	// contains filtered or unexported fields
}

func NewSystem

func NewSystem() *System

func (*System) GetSystemSetting

GetSystemSetting 获取系统设置

type Tenant

type Tenant struct {
	tenant.UnimplementedTenantServer
	// contains filtered or unexported fields
}

func NewTenant

func NewTenant() *Tenant

NewTenant 初始化租户应用

func (*Tenant) CreateTenant

CreateTenant 创建租户信息

func (*Tenant) DeleteTenant

DeleteTenant 删除租户信息

func (*Tenant) GetTenant

GetTenant 获取指定租户信息

func (*Tenant) ListAppTenant added in v1.2.8

ListAppTenant 获取可见的租户信息列表

func (*Tenant) ListTenant

ListTenant 获取租户信息列表

func (*Tenant) UpdateTenant

UpdateTenant 更新租户信息

type TenantAdmin added in v1.2.8

type TenantAdmin struct {
	tenantadmin.UnimplementedTenantAdminServer
	// contains filtered or unexported fields
}

func NewTenantAdmin added in v1.2.8

func NewTenantAdmin() *TenantAdmin

NewTenantAdmin 初始化租户应用

func (*TenantAdmin) CreateTenantAdmin added in v1.2.8

CreateTenantAdmin 创建租户信息

func (*TenantAdmin) DeleteTenantAdmin added in v1.2.8

DeleteTenantAdmin 删除租户信息

func (*TenantAdmin) ListTenantAdmin added in v1.2.8

ListTenantAdmin 获取租户信息列表

type TenantApp

type TenantApp struct {
	tenantapp.UnimplementedTenantServer
	// contains filtered or unexported fields
}

func NewTenantApp

func NewTenantApp() *TenantApp

NewTenantApp 初始化租户应用

func (*TenantApp) CreateTenantApp

CreateTenantApp 创建租户信息

func (*TenantApp) DeleteTenantApp

DeleteTenantApp 删除租户信息

func (*TenantApp) GetTenantApp added in v1.2.8

GetTenantApp 获取租户菜单

func (*TenantApp) ListTenantApp

ListTenantApp 获取租户信息列表

func (*TenantApp) UpdateTenantApp

UpdateTenantApp 更新租户信息

type User

type User struct {
	user.UnimplementedUserServer
	// contains filtered or unexported fields
}

func NewUser

func NewUser() *User

NewUser 初始化角色应用

func (*User) CreateUser

func (app *User) CreateUser(c context.Context, req *user.CreateUserRequest) (*user.CreateUserReply, error)

CreateUser 创建角色信息

func (*User) DeleteUser

func (app *User) DeleteUser(c context.Context, req *user.DeleteUserRequest) (*user.DeleteUserReply, error)

DeleteUser 删除角色信息

func (*User) GetCurrentUser

func (app *User) GetCurrentUser(c context.Context, req *user.GetCurrentUserRequest) (*user.UserObject, error)

func (*User) GetUser

func (app *User) GetUser(c context.Context, req *user.GetUserRequest) (*user.UserObject, error)

GetUser 获取指定角色信息

func (*User) ListUser

func (app *User) ListUser(c context.Context, req *user.ListUserRequest) (*user.ListUserReply, error)

ListUser 获取角色信息列表

func (*User) OfflineUser added in v1.2.8

func (app *User) OfflineUser(c context.Context, req *user.OfflineUserRequest) (*emptypb.Empty, error)

OfflineUser 下线用户

func (*User) ResetPassword

func (app *User) ResetPassword(c context.Context, req *user.ResetPasswordRequest) (*emptypb.Empty, error)

ResetPassword 重置密码

func (*User) UpdateCurrentUser

func (app *User) UpdateCurrentUser(c context.Context, req *user.UpdateCurrentUserRequest) (*emptypb.Empty, error)

func (*User) UpdateCurrentUserPassword added in v1.2.8

func (*User) UpdateCurrentUserSetting

func (app *User) UpdateCurrentUserSetting(c context.Context, req *user.UpdateCurrentUserSettingRequest) (*emptypb.Empty, error)

func (*User) UpdateUser

func (app *User) UpdateUser(c context.Context, req *user.UpdateUserRequest) (*user.UpdateUserReply, error)

UpdateUser 更新角色信息

func (*User) UpdateUserinfo added in v1.2.0

func (app *User) UpdateUserinfo(c context.Context, req *user.UpdateUserinfoRequest) (*user.UpdateUserinfoReply, error)

UpdateUserinfo 更新角色信息

type UserDept

type UserDept struct {
	userdept.UnimplementedUserDeptServer
	// contains filtered or unexported fields
}

func NewUserDept

func NewUserDept() *UserDept

func (*UserDept) CreateUserDept

func (*UserDept) DeleteUserDept

func (*UserDept) ListUserDept

ListUserDept 获取角色菜单列表

func (*UserDept) UpdateUserDept added in v1.2.8

Jump to

Keyboard shortcuts

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