Automatic merge from release/2.0.0 -> release/2.1.0

* commit 'b93d949e9d9e0ebe985b60775655af5276728428':
  zhengjiajie add the post method of project_host
This commit is contained in:
邱剑
2018-09-20 19:33:48 +08:00
2 changed files with 61 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
package modules
import (
)
type ProjectNodeManager struct {
ResourceManager
}
var (
ProjectHosts ProjectNodeManager
)
func init() {
ProjectHosts = ProjectNodeManager{NewMonitorManager("project_host", "project_hosts",
[]string{"id", "host_id", "host_name", "ip", "vcpu_count", "vmem_size", "disk", "project", "status", "create_by", "update_by", "delete_by", "gmt_create", "gmt_modified", "gmt_delete", "project_id", "remark"},
[]string{})}
register(&ProjectHosts)
}