增加气站合同附件受控上传与预览

This commit is contained in:
czl231
2026-08-18 21:52:00 +08:00
parent 06b6f0ee62
commit 61a61f916b
9 changed files with 262 additions and 9 deletions

View File

@@ -65,8 +65,11 @@ func registerGasBusinessRoutes(group *gin.RouterGroup) {
contract := group.Group("/gasorder_contract")
contract.GET("", gaslogic.ListGasorderContract)
contract.POST("", gaslogic.CreateGasorderContract)
contract.POST("/attachment/upload", gaslogic.UploadGasorderContractAttachment)
contract.POST("/attachment/cleanup", gaslogic.CleanupGasorderContractAttachment)
contract.GET("/:identity", gaslogic.GetGasorderContract)
contract.PUT("/:identity", gaslogic.UpdateGasorderContract)
contract.GET("/:identity/attachment", gaslogic.ServeGasorderContractAttachment)
contract.POST("/:identity/activate", gaslogic.ActivateGasorderContract)
contract.POST("/:identity/renew", gaslogic.RenewGasorderContract)
contract.POST("/:identity/terminate", gaslogic.TerminateGasorderContract)