| | |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import jakarta.annotation.Resource; |
| | | |
| | | /** |
| | | * App认证控制器 |
| | |
| | | public class AuthController { |
| | | |
| | | // 开启模拟数据 |
| | | @Value("${foreign.api.data.simulated}") |
| | | public static String SIMULATED_DATA_ENABLE = "0"; |
| | | |
| | | @Value("${foreign.api.data.simulated:0}") |
| | | public void setSimulatedDataEnable(String simulatedDataEnable) { |
| | | SIMULATED_DATA_ENABLE = simulatedDataEnable; |
| | | } |
| | | |
| | | @Resource |
| | | private AppAuthService appAuthService; |
| | | |