新增支付配置备份导入
This commit is contained in:
@@ -7,6 +7,8 @@ var (
|
||||
ErrDuplicateDefault = errors.New("duplicate default config for provider")
|
||||
ErrInvalidProvider = errors.New("invalid payment provider")
|
||||
ErrInvalidStatus = errors.New("invalid status")
|
||||
ErrInvalidBackup = errors.New("invalid payment config backup")
|
||||
ErrEmptyBackup = errors.New("payment config backup is empty")
|
||||
ErrCannotDeleteInUse = errors.New("cannot delete config in use")
|
||||
ErrEncryptionFailed = errors.New("encryption failed")
|
||||
ErrDecryptionFailed = errors.New("decryption failed")
|
||||
@@ -116,3 +118,10 @@ type ExportBackup struct {
|
||||
Total int `json:"total"`
|
||||
Configs []ConfigDTO `json:"configs"`
|
||||
}
|
||||
|
||||
// ImportBackupResult 支付配置备份导入结果。
|
||||
type ImportBackupResult struct {
|
||||
Total int `json:"total"`
|
||||
Created int `json:"created"`
|
||||
Updated int `json:"updated"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user