diff --git a/server/source/system/api.go b/server/source/system/api.go index 000d182484df6dcd555b548f895af2aa99387af6..603f9a1beee33b9cdef1aa2a8c89493233c0642a 100644 --- a/server/source/system/api.go +++ b/server/source/system/api.go @@ -59,6 +59,10 @@ func (a *api) Initialize() error { {ApiGroup: "菜单", Method: "POST", Path: "/menu/getMenuAuthority", Description: "获取指定角色menu"}, {ApiGroup: "菜单", Method: "POST", Path: "/menu/addMenuAuthority", Description: "增加menu和角色关联关系"}, + {ApiGroup: "分片上传", Method: "POST", Path: "/fileUploadAndDownload/findFile", Description: "寻找目标文件(秒传)"}, + {ApiGroup: "分片上传", Method: "POST", Path: "/fileUploadAndDownload/breakpointContinueFinish", Description: "断点续传"}, + {ApiGroup: "分片上传", Method: "POST", Path: "/fileUploadAndDownload/removeChunk", Description: "上传完成"}, + {ApiGroup: "文件上传与下载", Method: "POST", Path: "/fileUploadAndDownload/upload", Description: "文件上传示例"}, {ApiGroup: "文件上传与下载", Method: "POST", Path: "/fileUploadAndDownload/deleteFile", Description: "删除文件"}, {ApiGroup: "文件上传与下载", Method: "POST", Path: "/fileUploadAndDownload/getFileList", Description: "获取上传文件列表"}, diff --git a/server/source/system/casbin.go b/server/source/system/casbin.go index a1fc438eebfdcb3c0ee80d8ceda98d7a6f567957..b8edaae723e165495578bf82cac2160e6c3db629 100644 --- a/server/source/system/casbin.go +++ b/server/source/system/casbin.go @@ -54,6 +54,10 @@ func (c *casbin) Initialize() error { {PType: "p", V0: "888", V1: "/user/setUserAuthority", V2: "POST"}, {PType: "p", V0: "888", V1: "/user/setUserAuthorities", V2: "POST"}, + {PType: "p", V0: "888", V1: "/fileUploadAndDownload/findFile", V2: "GET"}, + {PType: "p", V0: "888", V1: "/fileUploadAndDownload/breakpointContinueFinish", V2: "POST"}, + {PType: "p", V0: "888", V1: "/fileUploadAndDownload/removeChunk", V2: "POST"}, + {PType: "p", V0: "888", V1: "/fileUploadAndDownload/upload", V2: "POST"}, {PType: "p", V0: "888", V1: "/fileUploadAndDownload/deleteFile", V2: "POST"}, {PType: "p", V0: "888", V1: "/fileUploadAndDownload/getFileList", V2: "POST"},