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> options() { return ActionResult.success(placeService.listOptions()); } }