package com.yami.shop.api.controller;
|
|
import com.yami.shop.bean.model.Diploma;
|
import com.yami.shop.bean.model.ShopDetail;
|
import com.yami.shop.common.response.ServerResponseEntity;
|
import com.yami.shop.security.api.util.SecurityUtils;
|
import com.yami.shop.service.DiplomaService;
|
import com.yami.shop.sys.common.model.ShopEmployee;
|
import io.swagger.v3.oas.annotations.Operation;
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
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;
|
|
@RestController
|
@RequestMapping("/diploma")
|
@Tag(name = "学历字典列表")
|
public class DiplomaController {
|
@Autowired
|
private DiplomaService diplomaService;
|
@GetMapping("/getDiplomaList")
|
@Operation(summary = "获取学历列表" , description = "获取学历列表")
|
public ServerResponseEntity<List<Diploma>> list() {
|
return ServerResponseEntity.success(diplomaService.list());
|
}
|
}
|