package com.crm.ucard.controller;

import com.crm.rely.backend.core.dto.base.BaseResultDto;
import com.crm.rely.backend.core.entity.ucard.crypto.currency.vaultody.*;
import com.crm.ucard.service.VaultodyService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Slf4j
@RestController
@RequestMapping("/vaultody/api")
public class VaultodyApiController {

    @Autowired
    private VaultodyService vaultodyService;

    /**
     * 生成钱包地址
     * @param entity:
     * @return void
     */
    @PostMapping("/generate/deposit/address")
    public BaseResultDto generateDepositAddress(@RequestBody VaultodyGenerateDepositAddressEntity entity) throws Exception {
        return vaultodyService.generateDepositAddress(entity);
    }

}
