请求json数据类型转换:
先写一个vo类,用@RequestBody注解。
代码例子如下:
public class CreateAccountVo {
/**
* 账户分组名称
*/
private String financePayGroupName;
/**
* 房间idList
*/
private List<String> roomIdList;
public String getFinancePayGroupName() {
return financePayGroupName;
}
public void setFinancePayGroupName(String financePayGroupName) {
this.financePayGroupName = financePayGroupName;
}
public List<String> getRoomIdList() {
return roomIdList;
}
public void setRoomIdList(List<String> roomIdList) {
this.roomIdList = roomIdList;
}
}
@ApiLog("创建缴费账户信息(缴费分组)")
@Login
@PostMapping("account/create")
@ApiOperation(value = "创建缴费账户信息(缴费分组)")