Files
lone-services/admin/internal/server/adminserver.go
T
2026-08-12 10:20:45 +08:00

160 lines
5.3 KiB
Go

// Code generated by goctl. DO NOT EDIT.
// goctl 1.10.2
// Source: admin.proto
package server
import (
"context"
"admin/admin"
"admin/internal/logic"
"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) AdminLogin(ctx context.Context, in *admin.AdminLoginRequest) (*admin.Response, error) {
l := logic.NewAdminLoginLogic(ctx, s.svcCtx)
return l.AdminLogin(in)
}
func (s *AdminServer) AdminRefresh(ctx context.Context, in *admin.AdminEmptyRequest) (*admin.Response, error) {
l := logic.NewAdminRefreshLogic(ctx, s.svcCtx)
return l.AdminRefresh(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) LoginRoutes(ctx context.Context, in *admin.AdminEmptyRequest) (*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)
}