|
|
@@ -9,7 +9,6 @@ import com.izouma.nineth.dto.PageQuery;
|
|
|
import com.izouma.nineth.dto.UserHistory;
|
|
|
import com.izouma.nineth.exception.BusinessException;
|
|
|
import com.izouma.nineth.repo.AssetRepo;
|
|
|
-import com.izouma.nineth.repo.TokenHistoryRepo;
|
|
|
import com.izouma.nineth.service.AssetMintService;
|
|
|
import com.izouma.nineth.service.AssetService;
|
|
|
import com.izouma.nineth.service.GiftOrderService;
|
|
|
@@ -36,7 +35,6 @@ public class AssetController extends BaseController {
|
|
|
private AssetService assetService;
|
|
|
private AssetRepo assetRepo;
|
|
|
private GiftOrderService giftOrderService;
|
|
|
- private TokenHistoryRepo tokenHistoryRepo;
|
|
|
private AssetMintService assetMintService;
|
|
|
|
|
|
//@PreAuthorize("hasRole('ADMIN')")
|
|
|
@@ -107,7 +105,8 @@ public class AssetController extends BaseController {
|
|
|
@PostMapping("/gift")
|
|
|
@ApiOperation("转赠")
|
|
|
public GiftOrder gift(@RequestParam Long assetId, @RequestParam Long toUserId) {
|
|
|
- return giftOrderService.gift(SecurityUtils.getAuthenticatedUser().getId(), assetId, toUserId);
|
|
|
+ throw new BusinessException("无转赠");
|
|
|
+// return giftOrderService.gift(SecurityUtils.getAuthenticatedUser().getId(), assetId, toUserId);
|
|
|
}
|
|
|
|
|
|
@GetMapping("/tokenHistory")
|