Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HttpOutput func(continueRun bool, text string)
package-level 全局变量 TODO 只支持单线执行,同时请求两个地方会出问题
Functions ¶
func RunExportArtrans ¶
func RunExportArtrans(dao *dao.Dao, params *ExportParams) (string, error)
func RunImportArtrans ¶
func RunImportArtrans(dao *dao.Dao, params *ImportParams)
Types ¶
type ExportParams ¶
type ExportParams struct {
SiteNameScope []string `json:"site_name_scope"`
}
type ImportParams ¶
type ImportParams struct { TargetSiteName string `json:"target_site_name" form:"target_site_name" validate:"optional"` // The target site name TargetSiteUrl string `json:"target_site_url" form:"target_site_url" validate:"optional"` // The target site url UrlResolver bool `json:"url_resolver" form:"url_resolver" validate:"optional"` // Enable URL resolver JsonFile string `json:"json_file,omitempty" form:"json_file" validate:"optional"` // The JSON file path JsonData string `json:"json_data,omitempty" form:"json_data" validate:"optional"` // The JSON data Assumeyes bool `json:"assumeyes" form:"assumeyes" validate:"optional"` // Automatically answer yes for all questions. }
func ArrToImportParams ¶
func ArrToImportParams(arr []string) *ImportParams
Click to show internal directories.
Click to hide internal directories.