package com.brilliance.isc.common.api.liaccv.controller;

import com.brilliance.isc.common.api.liaccv.service.LiaccvApiService;
import com.brilliance.isc.common.liaccv.vo.LiaccvAcctVo;
import com.brilliance.isc.vo.ResponseSet;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/liaccv")
@Api("公共组件保证金服务")
public class LiaccvController {

    @Autowired
    private LiaccvApiService liaccvApiService;

    /**
     * 调用8023获取保证金账号详细信息
     */
    @PostMapping("/getaccinfo")
    public ResponseSet<LiaccvAcctVo> getLiaccvAccountInfo(String account) {
        return ResponseSet.simpleSuccess(liaccvApiService.getLiaccvAccountInfo(account));
    }
}
