com.github.houbb.privilege.test.acquire.PrivilegeAcquireOne Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of privilege-test Show documentation
Show all versions of privilege-test Show documentation
The test module for privilege
package com.github.houbb.privilege.test.acquire;
import com.github.houbb.privilege.api.api.IPrivilegeAcquire;
import com.github.houbb.privilege.api.api.IPrivilegeInfo;
import com.github.houbb.privilege.core.support.info.PrivilegeInfo;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
/**
* @author binbin.hou
* @since 0.0.2
*/
public class PrivilegeAcquireOne implements IPrivilegeAcquire {
@Override
public List acquirePrivilege() {
IPrivilegeInfo info = PrivilegeInfo.newInstance().code("001");
return Collections.singletonList(info);
}
}