fix: 还是需要携带token认证
This commit is contained in:
parent
2f90f9a50a
commit
a836222fbc
@ -7,6 +7,7 @@ import io.swagger.annotations.Api;
|
|||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import io.swagger.annotations.ApiParam;
|
import io.swagger.annotations.ApiParam;
|
||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.PathVariable;
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
@ -31,7 +32,7 @@ public class KeyValueEntityController {
|
|||||||
|
|
||||||
|
|
||||||
@ApiOperation(value = "获取用户名称下拉-根据不同类型获取")
|
@ApiOperation(value = "获取用户名称下拉-根据不同类型获取")
|
||||||
@AnonymousPostMapping("/obtainUserListByType/{userType}")
|
@GetMapping("/obtainUserListByType/{userType}")
|
||||||
public ResponseEntity<List<KeyValueEntity>> obtainUserListByType(
|
public ResponseEntity<List<KeyValueEntity>> obtainUserListByType(
|
||||||
@ApiParam(value = "用户类型(后台用户=0,飞行端用户=1,客户端用户=2)", required = true, example = "0")
|
@ApiParam(value = "用户类型(后台用户=0,飞行端用户=1,客户端用户=2)", required = true, example = "0")
|
||||||
@PathVariable Integer userType) {
|
@PathVariable Integer userType) {
|
||||||
@ -43,7 +44,7 @@ public class KeyValueEntityController {
|
|||||||
* 获取景区下拉值
|
* 获取景区下拉值
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "获取景区下拉值")
|
@ApiOperation(value = "获取景区下拉值")
|
||||||
@AnonymousPostMapping("/obtainScenicList")
|
@GetMapping("/obtainScenicList")
|
||||||
public ResponseEntity<List<KeyValueEntity>> obtainScenicList() {
|
public ResponseEntity<List<KeyValueEntity>> obtainScenicList() {
|
||||||
List<KeyValueEntity> keyValueEntityList = keyValueEntityService.obtainScenicList();
|
List<KeyValueEntity> keyValueEntityList = keyValueEntityService.obtainScenicList();
|
||||||
return ResponseEntity.ok(keyValueEntityList);
|
return ResponseEntity.ok(keyValueEntityList);
|
||||||
@ -53,7 +54,7 @@ public class KeyValueEntityController {
|
|||||||
* 获取设备下拉列表
|
* 获取设备下拉列表
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "获取设备下拉列表")
|
@ApiOperation(value = "获取设备下拉列表")
|
||||||
@AnonymousPostMapping("/obtainDeviceList")
|
@GetMapping("/obtainDeviceList")
|
||||||
public ResponseEntity<List<KeyValueEntity>> obtainDeviceList() {
|
public ResponseEntity<List<KeyValueEntity>> obtainDeviceList() {
|
||||||
List<KeyValueEntity> keyValueEntityList = keyValueEntityService.obtainDeviceList();
|
List<KeyValueEntity> keyValueEntityList = keyValueEntityService.obtainDeviceList();
|
||||||
return ResponseEntity.ok(keyValueEntityList);
|
return ResponseEntity.ok(keyValueEntityList);
|
||||||
|
Loading…
Reference in New Issue
Block a user