findusermsglogic.go 796 B

12345678910111213141516171819202122232425262728293031
  1. package logic
  2. import (
  3. "app.yhyue.com/moapp/MessageCenter/rpc/messageclient"
  4. "context"
  5. "app.yhyue.com/moapp/MessageCenter/rpc/internal/svc"
  6. "app.yhyue.com/moapp/MessageCenter/service"
  7. "github.com/tal-tech/go-zero/core/logx"
  8. )
  9. type FindUserMsgLogic struct {
  10. ctx context.Context
  11. svcCtx *svc.ServiceContext
  12. logx.Logger
  13. }
  14. func NewFindUserMsgLogic(ctx context.Context, svcCtx *svc.ServiceContext) *FindUserMsgLogic {
  15. return &FindUserMsgLogic{
  16. ctx: ctx,
  17. svcCtx: svcCtx,
  18. Logger: logx.WithContext(ctx),
  19. }
  20. }
  21. // 查询指定用户的历史消息记录
  22. func (l *FindUserMsgLogic) FindUserMsg(in *messageclient.FindUserMsgReq) (*messageclient.FindUserMsgRes, error) {
  23. // todo: add your logic here and delete this line
  24. data := service.FindUserMsg(*in, false)
  25. return &data, nil
  26. }