工具基本实现write功能
This commit is contained in:
@@ -1,25 +1,14 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"e.coding.net/rta/public/saasapi/pkg/saashttp"
|
||||
"github.com/BurntSushi/toml"
|
||||
)
|
||||
|
||||
// Config 配置
|
||||
type Config struct {
|
||||
Auth Auth
|
||||
ApiUrls ApiUrls
|
||||
}
|
||||
|
||||
// DB 配置
|
||||
type Auth struct {
|
||||
Account string
|
||||
Token string
|
||||
}
|
||||
|
||||
type ApiUrls struct {
|
||||
UrlBase string
|
||||
Write string
|
||||
Read string
|
||||
Auth saashttp.Auth
|
||||
ApiUrls saashttp.ApiUrls
|
||||
}
|
||||
|
||||
// LoadConfigFile 加载配置文件
|
||||
|
||||
Reference in New Issue
Block a user