180 lines
6.0 KiB
Go
180 lines
6.0 KiB
Go
// Code generated by goctl. DO NOT EDIT.
|
|
// goctl 1.10.2
|
|
// Source: admin.proto
|
|
|
|
package server
|
|
|
|
import (
|
|
"context"
|
|
|
|
"lone-services/rpc/admin/pb"
|
|
"lone-services/services/admin/internal/logic"
|
|
"lone-services/services/admin/internal/svc"
|
|
)
|
|
|
|
type AdminServer struct {
|
|
svcCtx *svc.ServiceContext
|
|
admin.UnimplementedAdminServer
|
|
}
|
|
|
|
func NewAdminServer(svcCtx *svc.ServiceContext) *AdminServer {
|
|
return &AdminServer{
|
|
svcCtx: svcCtx,
|
|
}
|
|
}
|
|
|
|
func (s *AdminServer) AdminEdit(ctx context.Context, in *admin.AdminEditRequest) (*admin.Response, error) {
|
|
l := logic.NewAdminEditLogic(ctx, s.svcCtx)
|
|
return l.AdminEdit(in)
|
|
}
|
|
|
|
func (s *AdminServer) AdminStatus(ctx context.Context, in *admin.StatusRequest) (*admin.Response, error) {
|
|
l := logic.NewAdminStatusLogic(ctx, s.svcCtx)
|
|
return l.AdminStatus(in)
|
|
}
|
|
|
|
func (s *AdminServer) Password(ctx context.Context, in *admin.PasswordRequest) (*admin.Response, error) {
|
|
l := logic.NewPasswordLogic(ctx, s.svcCtx)
|
|
return l.Password(in)
|
|
}
|
|
|
|
func (s *AdminServer) OwnPassword(ctx context.Context, in *admin.OwnPasswordRequest) (*admin.Response, error) {
|
|
l := logic.NewOwnPasswordLogic(ctx, s.svcCtx)
|
|
return l.OwnPassword(in)
|
|
}
|
|
|
|
func (s *AdminServer) AdminInfo(ctx context.Context, in *admin.AdminInfoRequest) (*admin.Response, error) {
|
|
l := logic.NewAdminInfoLogic(ctx, s.svcCtx)
|
|
return l.AdminInfo(in)
|
|
}
|
|
|
|
func (s *AdminServer) AdminItems(ctx context.Context, in *admin.AdminItemsRequest) (*admin.Response, error) {
|
|
l := logic.NewAdminItemsLogic(ctx, s.svcCtx)
|
|
return l.AdminItems(in)
|
|
}
|
|
|
|
func (s *AdminServer) AdminNames(ctx context.Context, in *admin.AdminEmptyRequest) (*admin.Response, error) {
|
|
l := logic.NewAdminNamesLogic(ctx, s.svcCtx)
|
|
return l.AdminNames(in)
|
|
}
|
|
|
|
func (s *AdminServer) LoginRefresh(ctx context.Context, in *admin.AdminEmptyRequest) (*admin.Response, error) {
|
|
l := logic.NewLoginRefreshLogic(ctx, s.svcCtx)
|
|
return l.LoginRefresh(in)
|
|
}
|
|
|
|
func (s *AdminServer) Login(ctx context.Context, in *admin.LoginRequest) (*admin.Response, error) {
|
|
l := logic.NewLoginLogic(ctx, s.svcCtx)
|
|
return l.Login(in)
|
|
}
|
|
|
|
func (s *AdminServer) LoginInfo(ctx context.Context, in *admin.AdminEmptyRequest) (*admin.Response, error) {
|
|
l := logic.NewLoginInfoLogic(ctx, s.svcCtx)
|
|
return l.LoginInfo(in)
|
|
}
|
|
|
|
func (s *AdminServer) LoginItems(ctx context.Context, in *admin.AdminEmptyRequest) (*admin.Response, error) {
|
|
l := logic.NewLoginItemsLogic(ctx, s.svcCtx)
|
|
return l.LoginItems(in)
|
|
}
|
|
|
|
func (s *AdminServer) LoginKickedOut(ctx context.Context, in *admin.LoginKickedOutRequest) (*admin.Response, error) {
|
|
l := logic.NewLoginKickedOutLogic(ctx, s.svcCtx)
|
|
return l.LoginKickedOut(in)
|
|
}
|
|
|
|
func (s *AdminServer) LogOut(ctx context.Context, in *admin.AdminEmptyRequest) (*admin.Response, error) {
|
|
l := logic.NewLogOutLogic(ctx, s.svcCtx)
|
|
return l.LogOut(in)
|
|
}
|
|
|
|
func (s *AdminServer) LoginRoutes(ctx context.Context, in *admin.RoutesRequest) (*admin.Response, error) {
|
|
l := logic.NewLoginRoutesLogic(ctx, s.svcCtx)
|
|
return l.LoginRoutes(in)
|
|
}
|
|
|
|
func (s *AdminServer) ServiceInfo(ctx context.Context, in *admin.InfoRequest) (*admin.Response, error) {
|
|
l := logic.NewServiceInfoLogic(ctx, s.svcCtx)
|
|
return l.ServiceInfo(in)
|
|
}
|
|
|
|
func (s *AdminServer) ServiceEdit(ctx context.Context, in *admin.ServiceEditRequest) (*admin.Response, error) {
|
|
l := logic.NewServiceEditLogic(ctx, s.svcCtx)
|
|
return l.ServiceEdit(in)
|
|
}
|
|
|
|
func (s *AdminServer) ServiceItems(ctx context.Context, in *admin.ServiceItemsRequest) (*admin.Response, error) {
|
|
l := logic.NewServiceItemsLogic(ctx, s.svcCtx)
|
|
return l.ServiceItems(in)
|
|
}
|
|
|
|
func (s *AdminServer) ServiceStatus(ctx context.Context, in *admin.StatusRequest) (*admin.Response, error) {
|
|
l := logic.NewServiceStatusLogic(ctx, s.svcCtx)
|
|
return l.ServiceStatus(in)
|
|
}
|
|
|
|
func (s *AdminServer) ServiceNames(ctx context.Context, in *admin.ServiceNameRequest) (*admin.Response, error) {
|
|
l := logic.NewServiceNamesLogic(ctx, s.svcCtx)
|
|
return l.ServiceNames(in)
|
|
}
|
|
|
|
func (s *AdminServer) AuthorityInfo(ctx context.Context, in *admin.InfoRequest) (*admin.Response, error) {
|
|
l := logic.NewAuthorityInfoLogic(ctx, s.svcCtx)
|
|
return l.AuthorityInfo(in)
|
|
}
|
|
|
|
func (s *AdminServer) AuthorityEdit(ctx context.Context, in *admin.AuthorityEditRequest) (*admin.Response, error) {
|
|
l := logic.NewAuthorityEditLogic(ctx, s.svcCtx)
|
|
return l.AuthorityEdit(in)
|
|
}
|
|
|
|
func (s *AdminServer) AuthorityItems(ctx context.Context, in *admin.AuthorityItemsRequest) (*admin.Response, error) {
|
|
l := logic.NewAuthorityItemsLogic(ctx, s.svcCtx)
|
|
return l.AuthorityItems(in)
|
|
}
|
|
|
|
func (s *AdminServer) AuthorityStatus(ctx context.Context, in *admin.StatusRequest) (*admin.Response, error) {
|
|
l := logic.NewAuthorityStatusLogic(ctx, s.svcCtx)
|
|
return l.AuthorityStatus(in)
|
|
}
|
|
|
|
func (s *AdminServer) AuthorityNames(ctx context.Context, in *admin.AuthorityNameRequest) (*admin.Response, error) {
|
|
l := logic.NewAuthorityNamesLogic(ctx, s.svcCtx)
|
|
return l.AuthorityNames(in)
|
|
}
|
|
|
|
func (s *AdminServer) AuthoritySort(ctx context.Context, in *admin.AuthoritySortRequest) (*admin.Response, error) {
|
|
l := logic.NewAuthoritySortLogic(ctx, s.svcCtx)
|
|
return l.AuthoritySort(in)
|
|
}
|
|
|
|
func (s *AdminServer) RoleNames(ctx context.Context, in *admin.RoleNameRequest) (*admin.Response, error) {
|
|
l := logic.NewRoleNamesLogic(ctx, s.svcCtx)
|
|
return l.RoleNames(in)
|
|
}
|
|
|
|
func (s *AdminServer) RoleInfo(ctx context.Context, in *admin.InfoRequest) (*admin.Response, error) {
|
|
l := logic.NewRoleInfoLogic(ctx, s.svcCtx)
|
|
return l.RoleInfo(in)
|
|
}
|
|
|
|
func (s *AdminServer) RoleEdit(ctx context.Context, in *admin.RoleEditRequest) (*admin.Response, error) {
|
|
l := logic.NewRoleEditLogic(ctx, s.svcCtx)
|
|
return l.RoleEdit(in)
|
|
}
|
|
|
|
func (s *AdminServer) RoleItems(ctx context.Context, in *admin.RoleItemsRequest) (*admin.Response, error) {
|
|
l := logic.NewRoleItemsLogic(ctx, s.svcCtx)
|
|
return l.RoleItems(in)
|
|
}
|
|
|
|
func (s *AdminServer) RoleStatus(ctx context.Context, in *admin.StatusRequest) (*admin.Response, error) {
|
|
l := logic.NewRoleStatusLogic(ctx, s.svcCtx)
|
|
return l.RoleStatus(in)
|
|
}
|
|
|
|
func (s *AdminServer) RoleRule(ctx context.Context, in *admin.RoleRuleRequest) (*admin.Response, error) {
|
|
l := logic.NewRoleRuleLogic(ctx, s.svcCtx)
|
|
return l.RoleRule(in)
|
|
}
|