package com.tievd.jyz.controller;
|
|
import com.tievd.cube.commons.base.CubeController;
|
import com.tievd.cube.commons.base.Result;
|
import com.tievd.jyz.entity.Client;
|
import com.tievd.jyz.service.IClientService;
|
import io.swagger.v3.oas.annotations.Operation;
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
import lombok.extern.slf4j.Slf4j;
|
import org.springframework.beans.factory.annotation.Autowired;
|
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;
|
|
/**
|
* Client
|
*
|
* @author cube
|
* @since 2023-08-18
|
* @version V2.0.0
|
*/
|
@Slf4j
|
@RestController
|
@RequestMapping("/jyz/client")
|
@Tag(name = "客户类型接口")
|
public class ClientController extends CubeController<Client, IClientService> {
|
|
@Autowired
|
private IClientService clientService;
|
|
/**
|
* 获取客户类型列表
|
*/
|
@GetMapping("/listClientType")
|
@Operation(summary = "获取客户类型列表")
|
public Result<List<Client>> listClientType() {
|
List<Client> list = clientService.list();
|
return Result.ok(list);
|
}
|
}
|