Finish refine the config things.

This commit is contained in:
zicla
2019-04-28 01:51:08 +08:00
parent 8aa0d11cbb
commit a4f28cca30
8 changed files with 44 additions and 44 deletions

View File

@ -14,14 +14,14 @@ const (
type Config interface {
//是否已经安装
IsInstalled() bool
Installed() bool
//启动端口
GetServerPort() int
ServerPort() int
//获取mysql链接
GetMysqlUrl() string
MysqlUrl() string
//文件存放路径
GetMatterPath() string
MatterPath() string
//完成安装过程,主要是要将配置写入到文件中
FinishInstall(mysqlPort int, mysqlHost string, mysqlSchema string, mysqlUsername string, mysqlPassword string)
}