| | |
| | | import com.nq.common.ServerResponse; |
| | | import com.nq.dao.RechargeAddressMapper; |
| | | import com.nq.pojo.RechargeAddress; |
| | | import com.nq.service.IUserRechargeService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | @Autowired |
| | | private RechargeAddressMapper mapper; |
| | | |
| | | @Autowired |
| | | IUserRechargeService iUserRechargeService; |
| | | |
| | | @RequestMapping(value = {"select.do"}) |
| | | @ResponseBody |
| | | public ServerResponse select(@RequestParam("currency") String currency) { |
| | | return ServerResponse.createBySuccess(mapper.selectList(new LambdaQueryWrapper<RechargeAddress>().eq(RechargeAddress::getCurrency,currency))); |
| | | } |
| | | |
| | | |
| | | @RequestMapping(value = {"createUSDTOrder.do"}) |
| | | @ResponseBody |
| | | public ServerResponse createUSDTOrder(@RequestParam("userId") Integer userId, |
| | | @RequestParam("amt") Integer amt, |
| | | @RequestParam("img") String img, |
| | | @RequestParam("accectType") String accectType, |
| | | HttpServletRequest request) { |
| | | return ServerResponse.createBySuccess(iUserRechargeService.createUSDTOrder(userId,amt,img,accectType,request)); |
| | | } |
| | | } |