@Controller @Mapping(value="easypoi/wps/v1/3rd/file") public class EasyPoiFileController extends Object
| Constructor and Description |
|---|
EasyPoiFileController() |
| Modifier and Type | Method and Description |
|---|---|
String |
decode(String filePath) |
WpsFileHistoryResponse |
fileHistory(WpsFileHistoryRequest req)
获取所有历史版本文件信息
|
WpsResponse |
fileNew(org.noear.solon.core.handle.UploadedFile file,
String userId)
新建文件
|
WpsResponse |
fileOnline(org.noear.solon.core.handle.Context ctx,
WpsUserRequest list)
通知此文件目前有哪些人正在协作
|
WpsResponse |
fileRename(org.noear.solon.core.handle.Context ctx,
WpsRenameRequest req,
String userId)
文件重命名
|
WpsFileSaveResponse |
fileSave(org.noear.solon.core.handle.Context ctx,
String userId,
org.noear.solon.core.handle.UploadedFile file)
上传文件新版本
|
WpsFileSaveResponse |
fileVersion(org.noear.solon.core.handle.Context ctx,
Integer version,
String filePath)
获取特定版本的文件信息
|
WpsFileResponse |
getFileInfo(org.noear.solon.core.handle.Context ctx,
String userId,
String filePath)
获取文件元数据
|
WpsToken |
getViewUrl(String filePath)
获取网络文件预览URL
|
WpsResponse |
onNotify(Map obj)
回调通知
|
@Get @Mapping(value="getViewUrl") public WpsToken getViewUrl(String filePath)
filePath - @Get @Mapping(value="info") public WpsFileResponse getFileInfo(org.noear.solon.core.handle.Context ctx, @Param(value="_w_userid") String userId, @Param(value="_w_filepath") String filePath)
@Post @Mapping(value="online") public WpsResponse fileOnline(org.noear.solon.core.handle.Context ctx, @Body WpsUserRequest list)
@Post @Mapping(value="save") public WpsFileSaveResponse fileSave(org.noear.solon.core.handle.Context ctx, @Param(value="_w_userid") String userId, @Body org.noear.solon.core.handle.UploadedFile file)
@Get
@Mapping(value="version/{version}")
public WpsFileSaveResponse fileVersion(org.noear.solon.core.handle.Context ctx,
Integer version,
@Param(value="_w_filepath")
String filePath)
@Put @Mapping(value="rename") public WpsResponse fileRename(org.noear.solon.core.handle.Context ctx, @Body WpsRenameRequest req, @Param(value="_w_userid") String userId)
@Post @Mapping(value="history") public WpsFileHistoryResponse fileHistory(@Body WpsFileHistoryRequest req)
@Post @Mapping(value="new") public WpsResponse fileNew(@Body org.noear.solon.core.handle.UploadedFile file, @Param(value="_w_userid") String userId)
@Post @Mapping(value="onnotify") public WpsResponse onNotify(@Body Map obj)
Copyright © 2025. All rights reserved.