【8.0.3】【file】更新文件详情的信息渲染

pull/60/head
fengshuonan 2023-11-13 17:53:50 +08:00
parent bf109a0014
commit 4b6c5fb69e
1 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,27 @@
package cn.stylefeng.roses.kernel.file.api.format;
import cn.hutool.core.convert.Convert;
import cn.hutool.extra.spring.SpringUtil;
import cn.stylefeng.roses.kernel.file.api.FileInfoApi;
import cn.stylefeng.roses.kernel.rule.format.BaseSimpleFieldFormatProcess;
/**
* id访
*
* @author fengshuonan
* @since 2023/11/13 17:49
*/
public class FileInfoFormatProcess extends BaseSimpleFieldFormatProcess {
@Override
public Class<?> getItemClass() {
return Long.class;
}
@Override
public Object simpleItemFormat(Object businessId) {
FileInfoApi fileInfoApi = SpringUtil.getBean(FileInfoApi.class);
return fileInfoApi.buildAntdvFileInfo(Convert.toLong(businessId));
}
}