udeserverlogic.go 638 B

123456789101112131415161718192021222324252627282930313233
  1. // Code scaffolded by goctl. Safe to edit.
  2. // goctl 1.10.2
  3. package logic
  4. import (
  5. "context"
  6. "udeServer/internal/svc"
  7. "udeServer/internal/types"
  8. "github.com/zeromicro/go-zero/core/logx"
  9. )
  10. type UdeServerLogic struct {
  11. logx.Logger
  12. ctx context.Context
  13. svcCtx *svc.ServiceContext
  14. }
  15. func NewUdeServerLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UdeServerLogic {
  16. return &UdeServerLogic{
  17. Logger: logx.WithContext(ctx),
  18. ctx: ctx,
  19. svcCtx: svcCtx,
  20. }
  21. }
  22. func (l *UdeServerLogic) UdeServer(req *types.Request) (resp *types.Response, err error) {
  23. return &types.Response{
  24. Message: "Hello " + req.Name,
  25. }, nil
  26. }