package logic import ( "app.yhyue.com/moapp/MessageCenter/service" "context" "app.yhyue.com/moapp/MessageCenter/rpc/internal/svc" "app.yhyue.com/moapp/MessageCenter/rpc/message" "github.com/tal-tech/go-zero/core/logx" ) type FindUserBuoyMsgLogic struct { ctx context.Context svcCtx *svc.ServiceContext logx.Logger } func NewFindUserBuoyMsgLogic(ctx context.Context, svcCtx *svc.ServiceContext) *FindUserBuoyMsgLogic { return &FindUserBuoyMsgLogic{ ctx: ctx, svcCtx: svcCtx, Logger: logx.WithContext(ctx), } } // 查询指定用户的浮标消息 func (l *FindUserBuoyMsgLogic) FindUserBuoyMsg(in *message.FindUserBuoyMsgReq) (*message.FindUserBuoyMsgRes, error) { // todo: add your logic here and delete this line data := service.FindUserBuoyMsg(in) return data, nil }