基于mall4j产品的二开项目后端
lee
2024-12-18 921461a3f906d74403aeb6a27051deb77eca10fc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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());
    }
}