支持ds重置(当前限geo)
This commit is contained in:
@@ -6,6 +6,7 @@ const (
|
||||
writePath = "/saas/write"
|
||||
readPath = "/saas/read"
|
||||
columnWritePath = "/saas/column_write"
|
||||
resetDSPath = "/saas/resetds"
|
||||
taskCreatePath = "/saas/task/create"
|
||||
taskListPath = "/saas/task/list"
|
||||
taskInfoPath = "/saas/task/info"
|
||||
@@ -45,6 +46,7 @@ type ApiUrls struct {
|
||||
WritePath string
|
||||
ReadPath string
|
||||
ColumnWritePath string
|
||||
ResetDSPath string
|
||||
TaskCreatePath string
|
||||
TaskListPath string
|
||||
TaskInfoPath string
|
||||
@@ -100,6 +102,11 @@ func InitAPIUrl(c *ApiUrls) *ApiUrls {
|
||||
} else {
|
||||
r.ColumnWritePath = columnWritePath
|
||||
}
|
||||
if c.ResetDSPath != "" {
|
||||
r.ResetDSPath = c.ResetDSPath
|
||||
} else {
|
||||
r.ResetDSPath = resetDSPath
|
||||
}
|
||||
if c.TaskCreatePath != "" {
|
||||
r.TaskCreatePath = c.TaskCreatePath
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user