Add two preference edit api.

This commit is contained in:
lishuang
2020-07-11 14:40:03 +08:00
parent 69820bfcb9
commit 096eb7c73e
9 changed files with 186 additions and 25 deletions

View File

@ -22,8 +22,8 @@ func (this *PreferenceDao) Fetch() *Preference {
if db.Error.Error() == result.DB_ERROR_NOT_FOUND {
preference.Name = "EyeblueTank"
preference.Version = core.VERSION
//Default Office preview url. https://view.officeapps.live.com/op/embed.aspx?src=
preference.PreviewConfig = "{}"
preference.ScanConfig = "{}"
this.Create(preference)
return preference
} else {