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

@ -56,6 +56,17 @@ func (this *PreferenceService) Reset() {
}
//清空单例配置。
func (this *PreferenceService) Save(preference *Preference) *Preference {
preference = this.preferenceDao.Save(preference)
//clean cache.
this.Reset()
return preference
}
//System cleanup.
func (this *PreferenceService) Cleanup() {