mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-17 04:58:29 +08:00
61 lines
1.5 KiB
Go
61 lines
1.5 KiB
Go
|
package client
|
||
|
|
||
|
type DBInfo struct {
|
||
|
Type string `json:"type"` // local remote
|
||
|
Address string `json:"address"`
|
||
|
Port uint `json:"port"`
|
||
|
UserName string `json:"userName"`
|
||
|
Password string `json:"password"`
|
||
|
Format string `json:"format"`
|
||
|
|
||
|
Timeout uint `json:"timeout"` // second
|
||
|
}
|
||
|
|
||
|
type CreateInfo struct {
|
||
|
Name string `json:"name"`
|
||
|
Format string `json:"format"`
|
||
|
Version string `json:"version"`
|
||
|
UserName string `json:"userName"`
|
||
|
Password string `json:"password"`
|
||
|
Permission string `json:"permission"`
|
||
|
|
||
|
Timeout uint `json:"timeout"` // second
|
||
|
}
|
||
|
|
||
|
type DeleteInfo struct {
|
||
|
Name string `json:"name"`
|
||
|
Version string `json:"version"`
|
||
|
UserName string `json:"userName"`
|
||
|
Permission string `json:"permission"`
|
||
|
|
||
|
ForceDelete bool `json:"forceDelete"`
|
||
|
Timeout uint `json:"timeout"` // second
|
||
|
}
|
||
|
|
||
|
type PasswordChangeInfo struct {
|
||
|
Name string `json:"name"`
|
||
|
Version string `json:"version"`
|
||
|
UserName string `json:"userName"`
|
||
|
Password string `json:"password"`
|
||
|
Permission string `json:"permission"`
|
||
|
|
||
|
Timeout uint `json:"timeout"` // second
|
||
|
}
|
||
|
|
||
|
type AccessChangeInfo struct {
|
||
|
Name string `json:"name"`
|
||
|
Version string `json:"version"`
|
||
|
UserName string `json:"userName"`
|
||
|
OldPermission string `json:"oldPermission"`
|
||
|
Permission string `json:"permission"`
|
||
|
|
||
|
Timeout uint `json:"timeout"` // second
|
||
|
}
|
||
|
|
||
|
var formatMap = map[string]string{
|
||
|
"utf8": "utf8_general_ci",
|
||
|
"utf8mb4": "utf8mb4_general_ci",
|
||
|
"gbk": "gbk_chinese_ci",
|
||
|
"big5": "big5_chinese_ci",
|
||
|
}
|