package com.cf.imes.module.manage.controller.admin.test;

import com.cf.imes.module.manage.dal.mysql.test.TestMapper;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.annotation.security.PermitAll;

/**
 * @author there
 * 测试 controller
 */
@RestController
@RequestMapping("/manage/test")
@Tag(name = "测试")
public class TestController {

    @Resource
    private TestMapper testMapper;

    @GetMapping("/get")
    @PermitAll
    @Operation(summary = "测试")
    public Object get() {
        return testMapper.selectList();
    }
}
