package com.xunhong.erp.turbo.rbac.app.service;

import com.xunhong.erp.turbo.api.rbac.api.UserPermissionServiceI;
import com.xunhong.erp.turbo.api.rbac.dto.qry.UserPermissionQry;
import com.xunhong.erp.turbo.api.rbac.dto.vo.PermissionVO;
import com.xunhong.erp.turbo.rbac.app.executor.query.UserPermissionQryExe;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
@DubboService(interfaceClass = UserPermissionServiceI.class, version = "1.0.0")
@RequiredArgsConstructor
public class UserPermissionServiceImpl implements UserPermissionServiceI {
	private final UserPermissionQryExe userPermissionQryExe;

	@Override
	public List<PermissionVO> list(UserPermissionQry userPermissionQry) {
		return userPermissionQryExe.execute(userPermissionQry);
	}
}
