package routers import ( "git.qianqiusoft.com/qianqiusoft/light-apiengine/controllers/gen" "git.qianqiusoft.com/qianqiusoft/light-apiengine/engine" ) func init(){ addRegisterHandler(registerSysAttachmentRouter) } func registerSysAttachmentRouter(e *engine.ApiEngine){ api:=e.GinEngine.Group("/api") system:=api.Group("/v1/system") ctrler := gen.NewSysAttachmentController(e.OrmEngine) system.POST("/upload", ctrler.Upload) system.GET("/download/:attrId", ctrler.Download) system.GET("/delete/:attrId", ctrler.Delete) }