【新增】资源管理模块

This commit is contained in:
PandaGoAdmin
2022-01-14 17:37:01 +08:00
parent 9094780f40
commit 6b060d54aa
22 changed files with 619 additions and 36 deletions

View File

@@ -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)
})
}