package logic import ( "context" "trasfer_middleware/until/common" "trasfer_middleware/cmd/rpc/internal/svc" "trasfer_middleware/cmd/rpc/pb/transfer" "github.com/zeromicro/go-zero/core/logx" ) type PhysicalOrderLogisticsLogsLogic struct { ctx context.Context svcCtx *svc.ServiceContext logx.Logger } func NewPhysicalOrderLogisticsLogsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PhysicalOrderLogisticsLogsLogic { return &PhysicalOrderLogisticsLogsLogic{ ctx: ctx, svcCtx: svcCtx, Logger: logx.WithContext(ctx), } } func (l *PhysicalOrderLogisticsLogsLogic) PhysicalOrderLogisticsLogs(in *transfer.PhysicalOrderLogisticsLogsReq) (*transfer.PhysicalOrderLogisticsLogsRes, error) { res, err := l.svcCtx.Physical.SetData(l.ctx, in.AppId, common.StructToMap(in), &l.svcCtx.Config.Mq).OrderLogisticsLogs() return res, err }