12345678910111213141516171819202122232425262728293031 |
- package logic
- import (
- "context"
- "app.yhyue.com/moapp/MessageCenter/rpc/internal/svc"
- "app.yhyue.com/moapp/MessageCenter/rpc/message"
- "app.yhyue.com/moapp/MessageCenter/service"
- "github.com/tal-tech/go-zero/core/logx"
- )
- type FindUserMsgLogic struct {
- ctx context.Context
- svcCtx *svc.ServiceContext
- logx.Logger
- }
- func NewFindUserMsgLogic(ctx context.Context, svcCtx *svc.ServiceContext) *FindUserMsgLogic {
- return &FindUserMsgLogic{
- ctx: ctx,
- svcCtx: svcCtx,
- Logger: logx.WithContext(ctx),
- }
- }
- // 查询指定用户的历史消息记录
- func (l *FindUserMsgLogic) FindUserMsg(in *message.FindUserMsgReq) (*message.FindUserMsgRes, error) {
- // todo: add your logic here and delete this line
- data := service.FindUserMsg(*in, false)
- return &data, nil
- }
|