package com.ruoyi.interfaces.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.interfaces.mapper.PtServiceAuthMapper;
import io.swagger.annotations.ApiOperation;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * @author weking
 * @date 2019-4-25
 */
@RestController
@RequestMapping("/pt/service/auth")
public class PtServiceAuthController extends BaseController {

    @Autowired
    private PtServiceAuthMapper ptServiceAuthMapper;

    @Autowired
    private JdbcTemplate jdbcTemplate;

    @ApiOperation("数据列表")
    @GetMapping(value = "/list")
    public List list() {
        String queryNodeSql = "select * from PT_SERVICE_AUTH";
        List<Map<String, Object>> ret = jdbcTemplate.queryForList(queryNodeSql);
        return ret;
    }

}
