get_message_by_id_logic.go 609 B

1234567891011121314151617181920212223242526272829
  1. package Message
  2. import (
  3. "context"
  4. "wechat-api/internal/svc"
  5. "wechat-api/internal/types"
  6. "github.com/zeromicro/go-zero/core/logx"
  7. )
  8. type GetMessageByIdLogic struct {
  9. logx.Logger
  10. ctx context.Context
  11. svcCtx *svc.ServiceContext
  12. }
  13. func NewGetMessageByIdLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetMessageByIdLogic {
  14. return &GetMessageByIdLogic{
  15. Logger: logx.WithContext(ctx),
  16. ctx: ctx,
  17. svcCtx: svcCtx}
  18. }
  19. func (l *GetMessageByIdLogic) GetMessageById(req *types.IDReq) (resp *types.MessageInfoResp, err error) {
  20. // todo: add your logic here and delete this line
  21. return
  22. }