|
|
package com.yohoufo.order.controller;
|
|
|
|
|
|
import com.yohoufo.common.ApiResponse;
|
|
|
import com.yohoufo.order.model.response.AssetsResp;
|
|
|
import com.yohoufo.order.service.impl.AssetsService;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
/**
|
|
|
* Created by chenchao on 2018/9/28.
|
|
|
*/
|
|
|
@Controller
|
|
|
public class AssetsController {
|
|
|
|
|
|
final Logger logger = LoggerFactory.getLogger(getClass());
|
|
|
@Autowired
|
|
|
private AssetsService assetsService;
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(params = "method=ufo.asssets.details")
|
|
|
@ResponseBody
|
|
|
public ApiResponse getAssetsDetails(@RequestParam(name = "uid")int uid,
|
|
|
@RequestParam(value = "page", required = false, defaultValue = "1") int page,
|
|
|
@RequestParam(value = "limit", required = false, defaultValue = "10") int limit){
|
|
|
logger.info("in ufo.asssets.details, uid {},page {},limit {}", uid, page, limit);
|
|
|
AssetsResp resp = assetsService.getAssetsDetails(uid, page, limit);
|
|
|
return new ApiResponse.ApiResponseBuilder().code(200).data(resp).message("流水详情").build();
|
|
|
}
|
|
|
} |
...
|
...
|
|