package com.gkhy.safePlatform.accountController;
|
|
import com.gkhy.safePlatform.account.rpc.apimodel.AccountMenuService;
|
import com.gkhy.safePlatform.account.rpc.apimodel.AccountUserService;
|
import com.gkhy.safePlatform.account.rpc.apimodel.model.req.query.AccountRPCQuery;
|
import com.gkhy.safePlatform.commons.query.PageQuery;
|
import org.apache.dubbo.config.annotation.DubboReference;
|
import org.apache.dubbo.config.annotation.DubboService;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import java.security.Principal;
|
|
@RestController
|
@RequestMapping("/account")
|
public class UserController {
|
|
@DubboReference(check = false)
|
private AccountUserService accountUserService;
|
|
|
@RequestMapping("/page/list")
|
public Object getUserPage(Principal principal, PageQuery<AccountRPCQuery> rpcQueryPageQuery) {
|
return accountUserService.getAccountPage(Long.valueOf(principal.getName()), rpcQueryPageQuery);
|
}
|
}
|