check params

This commit is contained in:
2026-08-06 22:20:28 +08:00
parent 9d5b507634
commit e7e3aa12c3
15 changed files with 1465 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
// 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) Add(ctx context.Context, in *admin.AddRequest) (*admin.Response, error) {
l := logic.NewAddLogic(ctx, s.svcCtx)
return l.Add(in)
}
func (s *AdminServer) Edit(ctx context.Context, in *admin.EditRequest) (*admin.Response, error) {
l := logic.NewEditLogic(ctx, s.svcCtx)
return l.Edit(in)
}
func (s *AdminServer) Status(ctx context.Context, in *admin.StatusRequest) (*admin.Response, error) {
l := logic.NewStatusLogic(ctx, s.svcCtx)
return l.Status(in)
}