mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-25 03:48:35 +08:00
【新增】资源管理模块
This commit is contained in:
@@ -43,4 +43,14 @@ func InitResOssRouter(router *gin.RouterGroup) {
|
||||
routerGroup.DELETE(":ossId", func(c *gin.Context) {
|
||||
ctx.NewReqCtxWithGin(c).WithLog(deleteResOssesLog).Handle(s.DeleteResOsses)
|
||||
})
|
||||
|
||||
uplaodResOssesLog := ctx.NewLogInfo("测试文件上传")
|
||||
routerGroup.POST("uploadFile", func(c *gin.Context) {
|
||||
ctx.NewReqCtxWithGin(c).WithLog(uplaodResOssesLog).Handle(s.UplaodResOsses)
|
||||
})
|
||||
|
||||
updateStatusOssLog := ctx.NewLogInfo("修改状态")
|
||||
routerGroup.PUT("/changeStatus", func(c *gin.Context) {
|
||||
ctx.NewReqCtxWithGin(c).WithLog(updateStatusOssLog).Handle(s.UpdateOssStatus)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user