getunreadcountlogic.go 761 B

12345678910111213141516171819202122232425262728293031
  1. package logic
  2. import (
  3. "context"
  4. "app.yhyue.com/moapp/MessageCenter/rpc/internal/svc"
  5. "app.yhyue.com/moapp/MessageCenter/rpc/message"
  6. "github.com/tal-tech/go-zero/core/logx"
  7. )
  8. type GetUnreadCountLogic struct {
  9. ctx context.Context
  10. svcCtx *svc.ServiceContext
  11. logx.Logger
  12. }
  13. func NewGetUnreadCountLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetUnreadCountLogic {
  14. return &GetUnreadCountLogic{
  15. ctx: ctx,
  16. svcCtx: svcCtx,
  17. Logger: logx.WithContext(ctx),
  18. }
  19. }
  20. // 查询指定用户未读消息合计
  21. func (l *GetUnreadCountLogic) GetUnreadCount(in *message.DeleteMultipleMessageRequest) (*message.GetUnreadCountResponse, error) {
  22. // todo: add your logic here and delete this line
  23. return &message.GetUnreadCountResponse{}, nil
  24. }