com.github.houbb.privilege.test.own.PrivilegeOwnOne 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.own;
import com.github.houbb.privilege.api.api.IPrivilegeInfo;
import com.github.houbb.privilege.api.api.IPrivilegeOwn;
import com.github.houbb.privilege.core.support.info.PrivilegeInfo;
import java.util.Collections;
import java.util.List;
/**
* @author binbin.hou
* @since 0.0.2
*/
public class PrivilegeOwnOne implements IPrivilegeOwn {
@Override
public List ownPrivilege() {
IPrivilegeInfo info = PrivilegeInfo.newInstance().code("001");
return Collections.singletonList(info);
}
}