package com.liquidnet.client.admin.web.controller.zhengzai.smile;


import com.liquidnet.client.admin.common.core.domain.AjaxResult;
import com.liquidnet.client.admin.zhengzai.smile.service.ISmileAgentService;
import com.liquidnet.service.smile.entity.SmileAgent;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author liquidnet
 * @since 2022-03-16
 */
@Api(tags = "代理配置")
@RestController
@RequestMapping("/smile/agent")
public class SmileAgentController {

    @Autowired
    ISmileAgentService smileAgentService;

    @GetMapping("/list")
    @ApiOperation("获取票种")
    @ResponseBody
    public AjaxResult organizationList(@RequestParam(name = "", required = false) String name){
        List<SmileAgent> agents = smileAgentService.list();
        return AjaxResult.success();
    }


}
