cssendmsglogic.go 607 B

123456789101112131415161718192021222324252627282930
  1. package logic
  2. import (
  3. "context"
  4. "ylink/core/cmd/rpc/internal/svc"
  5. "ylink/core/cmd/rpc/pb"
  6. "github.com/zeromicro/go-zero/core/logx"
  7. )
  8. type CsSendMsgLogic struct {
  9. ctx context.Context
  10. svcCtx *svc.ServiceContext
  11. logx.Logger
  12. }
  13. func NewCsSendMsgLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CsSendMsgLogic {
  14. return &CsSendMsgLogic{
  15. ctx: ctx,
  16. svcCtx: svcCtx,
  17. Logger: logx.WithContext(ctx),
  18. }
  19. }
  20. func (l *CsSendMsgLogic) CsSendMsg(in *pb.CsSendMsgReq) (*pb.CsSendMsgResp, error) {
  21. // todo 投递到对应客服的收件箱
  22. // todo 写入db
  23. return &pb.CsSendMsgResp{}, nil
  24. }