package com.hzs.system.base.controller.api;


import com.hzs.common.core.service.RedisService;
import com.hzs.common.core.web.controller.BaseController;
import com.hzs.common.core.web.domain.AjaxResult;
import com.hzs.common.domain.system.base.BdCurrency;
import com.hzs.system.base.service.IBdCurrencyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * Created with IntelliJ IDEA.
 * Author: yuhui
 * Description: 币种控制器
 */
@RestController("apiCurrencyController")
@RequestMapping("/api/currency")
public class ApiCurrencyController extends BaseController {
    @Autowired
    private RedisService redisService;
    @Autowired
    private IBdCurrencyService currencyService;

    /**
     * 查询全部的币种列表
     * @return
     */
    @GetMapping("list")
    public AjaxResult list(){
        return AjaxResult.success(currencyService.list());
    }

}
