|
@@ -1,13 +1,13 @@
|
|
|
package com.flyer.foster.controller.app;
|
|
|
|
|
|
import cn.dev33.satoken.annotation.SaCheckLogin;
|
|
|
+import cn.dev33.satoken.annotation.SaIgnore;
|
|
|
import com.flyer.foster.dto.AppUserQueryDTO;
|
|
|
import com.flyer.foster.pojo.StpAppUtil;
|
|
|
import com.flyer.foster.service.IAppUserService;
|
|
|
import com.flyer.util.R;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestHeader;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
@@ -17,15 +17,14 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
* @author flyer
|
|
|
* @since 2024-05-09
|
|
|
*/
|
|
|
-@SaCheckLogin(type = StpAppUtil.TYPE)
|
|
|
@RestController
|
|
|
-@RequestMapping("/app-user")
|
|
|
+@RequestMapping("/app/user")
|
|
|
public class AppUserController {
|
|
|
@Autowired
|
|
|
private IAppUserService iAppUserService;
|
|
|
|
|
|
@RequestMapping("/login")
|
|
|
- public R login(@RequestBody AppUserQueryDTO dto, @RequestHeader("appId") String appId) {
|
|
|
- return R.ok().result(iAppUserService.login(dto, appId));
|
|
|
+ public R login(@RequestBody AppUserQueryDTO dto) {
|
|
|
+ return R.ok().result(iAppUserService.login(dto));
|
|
|
}
|
|
|
}
|