| | |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.utils.util.ListUtil; |
| | | import com.java110.utils.util.StringUtil; |
| | | import com.java110.vo.ResultVo; |
| | | import com.java110.vo.api.ApiOwnerDataVo; |
| | | import com.java110.vo.api.ApiOwnerVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | ownerDtoList = new ArrayList<>(); |
| | | } |
| | | |
| | | ResponseEntity<String> responseEntity = ResultVo.createResponseEntity((int) Math.ceil((double) total / (double) row), total, ownerDtoList); |
| | | |
| | | ApiOwnerVo apiOwnerVo = new ApiOwnerVo(); |
| | | apiOwnerVo.setOwners(BeanConvertUtil.covertBeanList(ownerDtoList, ApiOwnerDataVo.class)); |
| | | apiOwnerVo.setTotal(total); |
| | | apiOwnerVo.setRecords((int) Math.ceil((double) total / (double) row)); |
| | | |
| | | ResponseEntity<String> responseEntity = new ResponseEntity<String>(JSONObject.toJSONString(apiOwnerVo), HttpStatus.OK); |
| | | context.setResponseEntity(responseEntity); |
| | | } |
| | | } |