34 lines
692 B
Go
34 lines
692 B
Go
//go:build !plus
|
|
|
|
package db
|
|
|
|
import (
|
|
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/actionutils"
|
|
)
|
|
|
|
type ClickHouseAction struct {
|
|
actionutils.ParentAction
|
|
}
|
|
|
|
func (this *ClickHouseAction) Init() {
|
|
this.Nav("db", "db", "clickhouse")
|
|
}
|
|
|
|
func (this *ClickHouseAction) RunGet(params struct{}) {
|
|
this.Data["mainTab"] = "clickhouse"
|
|
this.Data["config"] = map[string]interface{}{
|
|
"host": "", "port": 8123, "user": "", "password": "", "database": "default",
|
|
}
|
|
this.Show()
|
|
}
|
|
|
|
func (this *ClickHouseAction) RunPost(params struct {
|
|
Host string
|
|
Port int
|
|
User string
|
|
Password string
|
|
Database string
|
|
}) {
|
|
this.Fail("请使用商业版以在页面上配置 ClickHouse")
|
|
}
|