Finish half translation work.
This commit is contained in:
@ -1,33 +1,27 @@
|
||||
package core
|
||||
|
||||
const (
|
||||
//用户身份的cookie字段名
|
||||
//authentication key of cookie
|
||||
COOKIE_AUTH_KEY = "_ak"
|
||||
|
||||
//使用用户名密码给接口授权key
|
||||
USERNAME_KEY = "_username"
|
||||
PASSWORD_KEY = "_password"
|
||||
|
||||
//默认端口号
|
||||
DEFAULT_SERVER_PORT = 6010
|
||||
|
||||
//数据库表前缀 tank30_表示当前应用版本是tank:3.0.x版,数据库结构发生变化必然是中型升级
|
||||
//db table's prefix. tank30_ means current version is tank:3.0.x
|
||||
TABLE_PREFIX = "tank30_"
|
||||
|
||||
//当前版本
|
||||
VERSION = "3.0.0.beta1"
|
||||
)
|
||||
|
||||
type Config interface {
|
||||
//是否已经安装
|
||||
Installed() bool
|
||||
//启动端口
|
||||
ServerPort() int
|
||||
//获取mysql链接
|
||||
//get the mysql url. eg. tank:tank123@tcp(127.0.0.1:3306)/tank?charset=utf8&parseTime=True&loc=Local
|
||||
MysqlUrl() string
|
||||
|
||||
//文件存放路径
|
||||
//files storage location.
|
||||
MatterPath() string
|
||||
//完成安装过程,主要是要将配置写入到文件中
|
||||
//when installed by user. Write configs to tank.json
|
||||
FinishInstall(mysqlPort int, mysqlHost string, mysqlSchema string, mysqlUsername string, mysqlPassword string)
|
||||
}
|
||||
|
Reference in New Issue
Block a user