@Component public class SysUserListDirective extends AbstractTemplateDirective
参数列表
advanced
:开启高级选项, 默认为false
disabled
:高级选项:已禁用,【true,false】, 默认为false
deptId
:部门id
startRegisteredDate
:起始注册日期,【2020-01-01
23:59:59】,【2020-01-01】
endRegisteredDate
:终止注册日期,【2020-01-01 23:59:59】,【2020-01-01】
startLastLoginDate
:起始上次登录日期,【2020-01-01
23:59:59】,【2020-01-01】
endLastLoginDate
:终止上次登录日期,【2020-01-01 23:59:59】,【2020-01-01】
superuser
:管理员,【true,false】
emailChecked
:邮箱已验证,【true,false】
name
:昵称、用户名、邮箱
orderField
排序字段,【lastLoginDate:上次登录日期,loginCount:登录次数,registeredDate:注册日期,followers:粉丝数】,默认创建日期按orderType排序
orderType
:排序类型,【asc:正序,desc:倒序】,默认为倒序
pageIndex
:页码
pageSize
:每页条数
返回结果
page
:PageHandler
page.list
:List类型 查询结果实体列表
SysUser
<@sys.userList deptId=1 pageSize=10><#list page.list as a>${a.nickname}<#sep>,</#list></@sys.userList>
<script> $.getJSON('${site.dynamicPath}api/directive/sys/userList?deptId=1&pageSize=10&appToken=接口访问授权Token', function(data){ console.log(data.page.totalCount); }); </script>
限定符和类型 | 字段和说明 |
---|---|
protected FileUploadComponent |
fileUploadComponent |
private SysUserService |
service |
ADVANCED, AUTH_TOKEN, AUTH_USER_ID, siteComponent
log
构造器和说明 |
---|
SysUserListDirective() |
限定符和类型 | 方法和说明 |
---|---|
void |
execute(RenderHandler handler) |
boolean |
needAppToken() |
boolean |
supportAdvanced() |
execute, expose, getAdvanced, getApp, getSite, getUserId, needUserToken
execute, getName, getNamespace, getShortName, httpEnabled, setName, setNamespace, setShortName
private SysUserService service
protected FileUploadComponent fileUploadComponent
public void execute(RenderHandler handler) throws java.io.IOException, freemarker.template.TemplateException
java.io.IOException
freemarker.template.TemplateException
public boolean supportAdvanced()
supportAdvanced
在类中 AbstractTemplateDirective
public boolean needAppToken()
needAppToken
在类中 AbstractTemplateDirective