调整接口

This commit is contained in:
TinyAnts
2023-03-31 15:34:47 +08:00
parent 6a977e75e4
commit 8004ee15ea
2 changed files with 27 additions and 1 deletions

View File

@@ -18,6 +18,8 @@ import com.mdd.common.util.UrlUtils;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* 用户余额记录服务实现类
@@ -63,7 +65,10 @@ public class FinanceWalletServiceImpl implements IFinanceWalletService {
vo.setAvatar(UrlUtils.toAbsoluteUrl(vo.getAvatar()));
}
return PageResult.iPageHandle(iPage);
Map<String, Object> extend = new LinkedHashMap<>();
extend.put("changeType", LogMoneyEnum.getTypeList());
return PageResult.iPageHandle(iPage.getTotal(), iPage.getCurrent(), iPage.getSize(), iPage.getRecords(), extend);
}
}