Documentation ¶
Index ¶
- Variables
- type ApiService
- func (s *ApiService) AuthorizeApi(ctx context.Context, req *pb.AuthorizeApiRequest) (*pb.AuthorizeApiReply, error)
- func (s *ApiService) CreateApi(ctx context.Context, req *pb.CreateApiRequest) (*pb.CreateApiReply, error)
- func (s *ApiService) DeleteApi(ctx context.Context, req *pb.DeleteApiRequest) (*pb.DeleteApiReply, error)
- func (s *ApiService) EditApiStatus(ctx context.Context, req *pb.EditApiStatusRequest) (*pb.EditApiStatusReply, error)
- func (s *ApiService) GetApi(ctx context.Context, req *pb.GetApiRequest) (*pb.GetApiReply, error)
- func (s *ApiService) GetApiTree(ctx context.Context, _ *pb.GetApiTreeRequest) (*pb.GetApiTreeReply, error)
- func (s *ApiService) ListApi(ctx context.Context, req *pb.ListApiRequest) (*pb.ListApiReply, error)
- func (s *ApiService) SelectApi(ctx context.Context, req *pb.SelectApiRequest) (*pb.SelectApiReply, error)
- func (s *ApiService) UpdateApi(ctx context.Context, req *pb.UpdateApiRequest) (*pb.UpdateApiReply, error)
- type RoleService
- func (s *RoleService) CreateRole(ctx context.Context, req *pb.CreateRoleRequest) (*pb.CreateRoleReply, error)
- func (s *RoleService) DeleteRole(ctx context.Context, req *pb.DeleteRoleRequest) (*pb.DeleteRoleReply, error)
- func (s *RoleService) EditRoleStatus(ctx context.Context, req *pb.EditRoleStatusRequest) (*pb.EditRoleStatusReply, error)
- func (s *RoleService) GetRole(ctx context.Context, req *pb.GetRoleRequest) (*pb.GetRoleReply, error)
- func (s *RoleService) ListRole(ctx context.Context, req *pb.ListRoleRequest) (*pb.ListRoleReply, error)
- func (s *RoleService) RelateApi(ctx context.Context, req *pb.RelateApiRequest) (*pb.RelateApiReply, error)
- func (s *RoleService) SelectRole(ctx context.Context, req *pb.SelectRoleRequest) (*pb.SelectRoleReply, error)
- func (s *RoleService) UpdateRole(ctx context.Context, req *pb.UpdateRoleRequest) (*pb.UpdateRoleReply, error)
- type Service
- func (s *Service) BatchDeleteDict(ctx context.Context, req *system.BatchDeleteDictRequest) (*system.BatchDeleteDictReply, error)
- func (s *Service) BatchUpdateDictStatus(ctx context.Context, req *system.BatchUpdateDictStatusRequest) (*system.BatchUpdateDictStatusReply, error)
- func (s *Service) CountAlarmPage(ctx context.Context, req *system.CountAlarmPageRequest) (*system.CountAlarmPageReply, error)
- func (s *Service) CreateDict(ctx context.Context, req *system.CreateDictRequest) (*system.CreateDictReply, error)
- func (s *Service) DeleteDict(ctx context.Context, req *system.DeleteDictRequest) (*system.DeleteDictReply, error)
- func (s *Service) GetDict(ctx context.Context, req *system.GetDictRequest) (*system.GetDictReply, error)
- func (s *Service) ListDict(ctx context.Context, req *system.ListDictRequest) (*system.ListDictReply, error)
- func (s *Service) ListMyAlarmPage(ctx context.Context, _ *system.ListMyAlarmPageRequest) (*system.ListMyAlarmPageReply, error)
- func (s *Service) MyAlarmPagesConfig(ctx context.Context, req *system.MyAlarmPagesConfigRequest) (*system.MyAlarmPagesConfigReply, error)
- func (s *Service) SelectDict(ctx context.Context, req *system.SelectDictRequest) (*system.SelectDictReply, error)
- func (s *Service) UpdateDict(ctx context.Context, req *system.UpdateDictRequest) (*system.UpdateDictReply, error)
- type SyslogService
- type UserService
- func (s *UserService) CreateUser(ctx context.Context, req *pb.CreateUserRequest) (*pb.CreateUserReply, error)
- func (s *UserService) DeleteUser(ctx context.Context, req *pb.DeleteUserRequest) (*pb.DeleteUserReply, error)
- func (s *UserService) EditUserPassword(ctx context.Context, req *pb.EditUserPasswordRequest) (*pb.EditUserPasswordReply, error)
- func (s *UserService) EditUserStatus(ctx context.Context, req *pb.EditUserStatusRequest) (*pb.EditUserStatusReply, error)
- func (s *UserService) GetUser(ctx context.Context, req *pb.GetUserRequest) (*pb.GetUserReply, error)
- func (s *UserService) ListUser(ctx context.Context, req *pb.ListUserRequest) (*pb.ListUserReply, error)
- func (s *UserService) RelateRoles(ctx context.Context, req *pb.RelateRolesRequest) (*pb.RelateRolesReply, error)
- func (s *UserService) SelectUser(ctx context.Context, req *pb.SelectUserRequest) (*pb.SelectUserReply, error)
- func (s *UserService) UpdateUser(ctx context.Context, req *pb.UpdateUserRequest) (*pb.UpdateUserReply, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSetSystem = wire.NewSet( NewUserService, NewRoleService, NewApiService, NewSyslogService, NewDictService, )
ProviderSetSystem 注入系统相关服务
Functions ¶
This section is empty.
Types ¶
type ApiService ¶
type ApiService struct { pb.UnimplementedApiServer // contains filtered or unexported fields }
func NewApiService ¶
func NewApiService(apiBiz *biz.ApiBiz, logger log.Logger) *ApiService
func (*ApiService) AuthorizeApi ¶
func (s *ApiService) AuthorizeApi(ctx context.Context, req *pb.AuthorizeApiRequest) (*pb.AuthorizeApiReply, error)
AuthorizeApi 授权api
func (*ApiService) CreateApi ¶
func (s *ApiService) CreateApi(ctx context.Context, req *pb.CreateApiRequest) (*pb.CreateApiReply, error)
func (*ApiService) DeleteApi ¶
func (s *ApiService) DeleteApi(ctx context.Context, req *pb.DeleteApiRequest) (*pb.DeleteApiReply, error)
func (*ApiService) EditApiStatus ¶
func (s *ApiService) EditApiStatus(ctx context.Context, req *pb.EditApiStatusRequest) (*pb.EditApiStatusReply, error)
EditApiStatus 编辑api状态
func (*ApiService) GetApi ¶
func (s *ApiService) GetApi(ctx context.Context, req *pb.GetApiRequest) (*pb.GetApiReply, error)
func (*ApiService) GetApiTree ¶
func (s *ApiService) GetApiTree(ctx context.Context, _ *pb.GetApiTreeRequest) (*pb.GetApiTreeReply, error)
GetApiTree 获取api权限树
func (*ApiService) ListApi ¶
func (s *ApiService) ListApi(ctx context.Context, req *pb.ListApiRequest) (*pb.ListApiReply, error)
func (*ApiService) SelectApi ¶
func (s *ApiService) SelectApi(ctx context.Context, req *pb.SelectApiRequest) (*pb.SelectApiReply, error)
func (*ApiService) UpdateApi ¶
func (s *ApiService) UpdateApi(ctx context.Context, req *pb.UpdateApiRequest) (*pb.UpdateApiReply, error)
type RoleService ¶
type RoleService struct { pb.UnimplementedRoleServer // contains filtered or unexported fields }
func NewRoleService ¶
func NewRoleService(roleBiz *biz.RoleBiz, logger log.Logger) *RoleService
func (*RoleService) CreateRole ¶
func (s *RoleService) CreateRole(ctx context.Context, req *pb.CreateRoleRequest) (*pb.CreateRoleReply, error)
func (*RoleService) DeleteRole ¶
func (s *RoleService) DeleteRole(ctx context.Context, req *pb.DeleteRoleRequest) (*pb.DeleteRoleReply, error)
func (*RoleService) EditRoleStatus ¶
func (s *RoleService) EditRoleStatus(ctx context.Context, req *pb.EditRoleStatusRequest) (*pb.EditRoleStatusReply, error)
EditRoleStatus 编辑角色状态
func (*RoleService) GetRole ¶
func (s *RoleService) GetRole(ctx context.Context, req *pb.GetRoleRequest) (*pb.GetRoleReply, error)
func (*RoleService) ListRole ¶
func (s *RoleService) ListRole(ctx context.Context, req *pb.ListRoleRequest) (*pb.ListRoleReply, error)
func (*RoleService) RelateApi ¶
func (s *RoleService) RelateApi(ctx context.Context, req *pb.RelateApiRequest) (*pb.RelateApiReply, error)
func (*RoleService) SelectRole ¶
func (s *RoleService) SelectRole(ctx context.Context, req *pb.SelectRoleRequest) (*pb.SelectRoleReply, error)
func (*RoleService) UpdateRole ¶
func (s *RoleService) UpdateRole(ctx context.Context, req *pb.UpdateRoleRequest) (*pb.UpdateRoleReply, error)
type Service ¶
type Service struct { system.UnimplementedDictServer // contains filtered or unexported fields }
func NewDictService ¶
func (*Service) BatchDeleteDict ¶
func (s *Service) BatchDeleteDict(ctx context.Context, req *system.BatchDeleteDictRequest) (*system.BatchDeleteDictReply, error)
func (*Service) BatchUpdateDictStatus ¶
func (s *Service) BatchUpdateDictStatus(ctx context.Context, req *system.BatchUpdateDictStatusRequest) (*system.BatchUpdateDictStatusReply, error)
func (*Service) CountAlarmPage ¶
func (s *Service) CountAlarmPage(ctx context.Context, req *system.CountAlarmPageRequest) (*system.CountAlarmPageReply, error)
CountAlarmPage 统计各告警页面的告警数量
func (*Service) CreateDict ¶
func (s *Service) CreateDict(ctx context.Context, req *system.CreateDictRequest) (*system.CreateDictReply, error)
func (*Service) DeleteDict ¶
func (s *Service) DeleteDict(ctx context.Context, req *system.DeleteDictRequest) (*system.DeleteDictReply, error)
func (*Service) GetDict ¶
func (s *Service) GetDict(ctx context.Context, req *system.GetDictRequest) (*system.GetDictReply, error)
func (*Service) ListDict ¶
func (s *Service) ListDict(ctx context.Context, req *system.ListDictRequest) (*system.ListDictReply, error)
func (*Service) ListMyAlarmPage ¶
func (s *Service) ListMyAlarmPage(ctx context.Context, _ *system.ListMyAlarmPageRequest) (*system.ListMyAlarmPageReply, error)
ListMyAlarmPage 获取我的告警页面列表
func (*Service) MyAlarmPagesConfig ¶
func (s *Service) MyAlarmPagesConfig(ctx context.Context, req *system.MyAlarmPagesConfigRequest) (*system.MyAlarmPagesConfigReply, error)
MyAlarmPagesConfig 我的告警页面列表配置
func (*Service) SelectDict ¶
func (s *Service) SelectDict(ctx context.Context, req *system.SelectDictRequest) (*system.SelectDictReply, error)
func (*Service) UpdateDict ¶
func (s *Service) UpdateDict(ctx context.Context, req *system.UpdateDictRequest) (*system.UpdateDictReply, error)
type SyslogService ¶
type SyslogService struct { pb.UnimplementedSyslogServer // contains filtered or unexported fields }
func NewSyslogService ¶
func NewSyslogService(logBiz *biz.SysLogBiz, l log.Logger) *SyslogService
func (*SyslogService) ListSyslog ¶
func (s *SyslogService) ListSyslog(ctx context.Context, req *pb.ListSyslogRequest) (*pb.ListSyslogReply, error)
type UserService ¶
type UserService struct { pb.UnimplementedUserServer // contains filtered or unexported fields }
func NewUserService ¶
func NewUserService(userBiz *biz.UserBiz, captchaBiz *biz.CaptchaBiz, logger log.Logger) *UserService
func (*UserService) CreateUser ¶
func (s *UserService) CreateUser(ctx context.Context, req *pb.CreateUserRequest) (*pb.CreateUserReply, error)
func (*UserService) DeleteUser ¶
func (s *UserService) DeleteUser(ctx context.Context, req *pb.DeleteUserRequest) (*pb.DeleteUserReply, error)
func (*UserService) EditUserPassword ¶
func (s *UserService) EditUserPassword(ctx context.Context, req *pb.EditUserPasswordRequest) (*pb.EditUserPasswordReply, error)
func (*UserService) EditUserStatus ¶
func (s *UserService) EditUserStatus(ctx context.Context, req *pb.EditUserStatusRequest) (*pb.EditUserStatusReply, error)
func (*UserService) GetUser ¶
func (s *UserService) GetUser(ctx context.Context, req *pb.GetUserRequest) (*pb.GetUserReply, error)
func (*UserService) ListUser ¶
func (s *UserService) ListUser(ctx context.Context, req *pb.ListUserRequest) (*pb.ListUserReply, error)
func (*UserService) RelateRoles ¶
func (s *UserService) RelateRoles(ctx context.Context, req *pb.RelateRolesRequest) (*pb.RelateRolesReply, error)
func (*UserService) SelectUser ¶
func (s *UserService) SelectUser(ctx context.Context, req *pb.SelectUserRequest) (*pb.SelectUserReply, error)
func (*UserService) UpdateUser ¶
func (s *UserService) UpdateUser(ctx context.Context, req *pb.UpdateUserRequest) (*pb.UpdateUserReply, error)
Click to show internal directories.
Click to hide internal directories.