小程序登录相关
This commit is contained in:
@@ -17,7 +17,7 @@ import java.util.Map;
|
||||
* @author Administrator
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("auth")
|
||||
@RequestMapping("/admin/auth")
|
||||
public class AuthorizationController {
|
||||
@Resource
|
||||
private AuthorizationService authorizationService;
|
||||
|
||||
@@ -12,7 +12,7 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
* @author zs
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/menus")
|
||||
@RequestMapping("/admin/menus")
|
||||
public class MenuController {
|
||||
|
||||
@Resource
|
||||
|
||||
@@ -19,7 +19,7 @@ import java.time.LocalDateTime;
|
||||
* @author Administrator
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/merchantRegister")
|
||||
@RequestMapping("/admin/merchantRegister")
|
||||
public class MerchantRegisterController {
|
||||
@Resource
|
||||
private MerchantRegisterService merchantRegisterService;
|
||||
|
||||
@@ -19,7 +19,7 @@ import org.springframework.web.bind.annotation.*;
|
||||
* @author Administrator
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/role")
|
||||
@RequestMapping("/admin/role")
|
||||
public class RoleController {
|
||||
|
||||
@Resource
|
||||
|
||||
@@ -17,7 +17,7 @@ import org.springframework.web.bind.annotation.*;
|
||||
* @author Administrator
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("shopInfo")
|
||||
@RequestMapping("/admin/shopInfo")
|
||||
public class ShopInfoController {
|
||||
private final ShopInfoService shopInfoService;
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ import org.springframework.web.bind.annotation.*;
|
||||
* @author Administrator
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/shopMerchant")
|
||||
@RequestMapping("/admin/shopMerchant")
|
||||
public class ShopMerchantController {
|
||||
@Resource
|
||||
private ShopMerchantService shopMerchantService;
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.czg.controller;
|
||||
|
||||
import com.czg.account.dto.auth.LoginTokenDTO;
|
||||
import com.czg.account.dto.auth.UserAuthorizationLoginDTO;
|
||||
import com.czg.account.service.UserAuthorizationService;
|
||||
import com.czg.resp.CzgResult;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* 用户登录相关
|
||||
* @author Administrator
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/user")
|
||||
public class UserAuthorizationController {
|
||||
@Resource
|
||||
private UserAuthorizationService userAuthorizationService;
|
||||
|
||||
/**
|
||||
* 小程序登录
|
||||
* @param userAuthorizationLoginDTO 登录信息
|
||||
* @return 登录信息
|
||||
*/
|
||||
@PostMapping("/login")
|
||||
public CzgResult<LoginTokenDTO> login(UserAuthorizationLoginDTO userAuthorizationLoginDTO) {
|
||||
return CzgResult.success(userAuthorizationService.login(userAuthorizationLoginDTO));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user