Files
lone-services/admin/internal/server/adminserver.go
T
gjs afc8e18635
CI / changes (push) Successful in 1s
CI / docker-bff (push) Successful in 1s
CI / docker-product (push) Failing after 1s
fix reesh api
2026-08-10 18:48:58 +08:00

70 lines
2.0 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)
}