liuyu
21 小时以前 6eef0b6730d940ef44e0f66dd8e7d178f1cd2d1f
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
30
31
package jnpf.tmsController;
 
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jnpf.base.ActionResult;
import jnpf.tmsEntity.place.TmsPlaceOption;
import jnpf.tmsService.TmsPlaceService;
import lombok.RequiredArgsConstructor;
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;
 
/**
 * 培训地点。网关 /api/tms/place/** → /place/**
 */
@Tag(name = "TMS培训地点", description = "Place")
@RestController
@RequestMapping("/place")
@RequiredArgsConstructor
public class TmsPlaceController {
 
    private final TmsPlaceService placeService;
 
    @Operation(summary = "启用地点下拉")
    @GetMapping("/options")
    public ActionResult<List<TmsPlaceOption>> options() {
        return ActionResult.success(placeService.listOptions());
    }
}