|
|
@ -12,6 +12,7 @@ import awesome.group.game.service.common.response.R; |
|
|
|
import awesome.group.game.web.RequestContext; |
|
|
|
import awesome.group.game.web.aop.RestApi; |
|
|
|
import io.swagger.v3.oas.annotations.Hidden; |
|
|
|
import io.swagger.v3.oas.models.security.SecurityScheme; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
@ -77,4 +78,11 @@ public class UserController { |
|
|
|
public R<TeamBo> myTeam() { |
|
|
|
return new R<>(userService.myTeam(RequestContext.getCitrusUid())); |
|
|
|
} |
|
|
|
|
|
|
|
@PostMapping("/updateEnv") |
|
|
|
@RestApi |
|
|
|
public R<Void> updateEnv(@RequestParam Integer env) { |
|
|
|
userService.updateEnv(RequestContext.getCitrusUid(), env); |
|
|
|
return new R<>(null); |
|
|
|
} |
|
|
|
} |
|
|
|