remove unused codes and add site'url configuration on admin
This commit is contained in:
1 parent
a007b89ebb
commit
a07bb25128
21 files changed
+117
-1047
No files matched your search
@@ -79,6 +79,12 @@ func (c AdminSetting) ExportPdf(path string) revel.Result {
|
||||
return c.RenderJson(re)
|
||||
}
|
||||
|
||||
func (c AdminSetting) DoSiteUrl(siteUrl string) revel.Result {
|
||||
re := info.NewRe()
|
||||
re.Ok = configService.UpdateGlobalStringConfig(c.GetUserId(), "siteUrl", siteUrl)
|
||||
return c.RenderJson(re)
|
||||
}
|
||||
|
||||
// SubDomain
|
||||
func (c AdminSetting) SubDomain() revel.Result {
|
||||
c.RenderArgs["str"] = configService.GlobalStringConfigs
|
||||
|
||||
Reference in new issue
Block a user