调整接口
This commit is contained in:
parent
6a977e75e4
commit
8004ee15ea
|
|
@ -18,6 +18,8 @@ import com.mdd.common.util.UrlUtils;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
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()));
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,10 @@
|
||||||
package com.mdd.common.enums;
|
package com.mdd.common.enums;
|
||||||
|
|
||||||
|
import java.util.LinkedHashMap;
|
||||||
|
import java.util.LinkedList;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
public enum LogMoneyEnum {
|
public enum LogMoneyEnum {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -56,4 +61,20 @@ public enum LogMoneyEnum {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据编码获取Msg
|
||||||
|
*
|
||||||
|
* @author fzr
|
||||||
|
* @return String
|
||||||
|
*/
|
||||||
|
public static List<Map<Integer, String>> getTypeList(){
|
||||||
|
List<Map<Integer, String>> list = new LinkedList<>();
|
||||||
|
for(LogMoneyEnum enumItem : LogMoneyEnum.values()) {
|
||||||
|
Map<Integer, String> map = new LinkedHashMap<>();
|
||||||
|
map.put(enumItem.getCode(), enumItem.getMsg());
|
||||||
|
list.add(map);
|
||||||
|
}
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue