|
|
|
@ -1,11 +1,14 @@ |
|
|
|
package bc.mm.mis.v1; |
|
|
|
|
|
|
|
import bc.mm.mis.core.bean.Coins; |
|
|
|
import bc.mm.mis.core.bean.Country; |
|
|
|
import bc.mm.mis.core.bean.Reggo; |
|
|
|
import bc.mm.mis.core.service.CoinsService; |
|
|
|
import bc.mm.mis.core.service.CountryService; |
|
|
|
import bc.mm.mis.core.service.ReggoService; |
|
|
|
import bc.mm.mis.utils.AjaxResult; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.alibaba.fastjson.annotation.JSONField; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.PathVariable; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
@ -20,6 +23,8 @@ public class HomeController { |
|
|
|
private ReggoService reggoService; |
|
|
|
@Autowired |
|
|
|
private CountryService countryService; |
|
|
|
@Autowired |
|
|
|
private CoinsService coinsService; |
|
|
|
|
|
|
|
@RequestMapping("/acc") |
|
|
|
public String oot(){ |
|
|
|
@ -34,4 +39,10 @@ public class HomeController { |
|
|
|
//
|
|
|
|
return AjaxResult.success("success",countryList); |
|
|
|
} |
|
|
|
|
|
|
|
@RequestMapping("/aclist/{page}/{size}") |
|
|
|
public JSONObject clist(@PathVariable("page") int page,@PathVariable("size") int size){ |
|
|
|
List<Coins> coinsList = coinsService.getCoinsList(page,size); |
|
|
|
return AjaxResult.success("success",coinsList); |
|
|
|
} |
|
|
|
} |
|
|
|
|