@@ -54,7 +54,7 @@ func (b *BaseApi) GetTerminalSettingInfo(c *gin.Context) {
5454// @Security Timestamp
5555// @Router /core/settings/search/available [get]
5656func (b * BaseApi ) GetSystemAvailable (c * gin.Context ) {
57- helper .SuccessWithOutData (c )
57+ helper .Success (c )
5858}
5959
6060// @Tags System Setting
@@ -86,7 +86,7 @@ func (b *BaseApi) UpdateSetting(c *gin.Context) {
8686 entranceValue := base64 .StdEncoding .EncodeToString ([]byte (req .Value ))
8787 c .SetCookie ("SecurityEntrance" , entranceValue , 0 , "" , "" , false , true )
8888 }
89- helper .SuccessWithOutData (c )
89+ helper .Success (c )
9090}
9191
9292// @Tags System Setting
@@ -108,7 +108,7 @@ func (b *BaseApi) UpdateTerminalSetting(c *gin.Context) {
108108 helper .InternalServer (c , err )
109109 return
110110 }
111- helper .SuccessWithOutData (c )
111+ helper .Success (c )
112112}
113113
114114// @Tags System Setting
@@ -139,7 +139,7 @@ func (b *BaseApi) UpdateProxy(c *gin.Context) {
139139 helper .InternalServer (c , err )
140140 return
141141 }
142- helper .SuccessWithOutData (c )
142+ helper .Success (c )
143143}
144144
145145// @Tags System Setting
@@ -161,7 +161,7 @@ func (b *BaseApi) UpdateMenu(c *gin.Context) {
161161 helper .InternalServer (c , err )
162162 return
163163 }
164- helper .SuccessWithOutData (c )
164+ helper .Success (c )
165165}
166166
167167// @Tags System Setting
@@ -183,7 +183,7 @@ func (b *BaseApi) UpdatePassword(c *gin.Context) {
183183 helper .InternalServer (c , err )
184184 return
185185 }
186- helper .SuccessWithOutData (c )
186+ helper .Success (c )
187187}
188188
189189// @Tags System Setting
@@ -205,7 +205,7 @@ func (b *BaseApi) UpdateSSL(c *gin.Context) {
205205 helper .InternalServer (c , err )
206206 return
207207 }
208- helper .SuccessWithOutData (c )
208+ helper .Success (c )
209209}
210210
211211// @Tags System Setting
@@ -274,7 +274,7 @@ func (b *BaseApi) UpdateBindInfo(c *gin.Context) {
274274 helper .InternalServer (c , err )
275275 return
276276 }
277- helper .SuccessWithOutData (c )
277+ helper .Success (c )
278278}
279279
280280// @Tags System Setting
@@ -296,7 +296,7 @@ func (b *BaseApi) UpdatePort(c *gin.Context) {
296296 helper .InternalServer (c , err )
297297 return
298298 }
299- helper .SuccessWithOutData (c )
299+ helper .Success (c )
300300}
301301
302302// @Tags System Setting
@@ -318,7 +318,7 @@ func (b *BaseApi) HandlePasswordExpired(c *gin.Context) {
318318 helper .InternalServer (c , err )
319319 return
320320 }
321- helper .SuccessWithOutData (c )
321+ helper .Success (c )
322322}
323323
324324// @Tags System Setting
@@ -380,7 +380,7 @@ func (b *BaseApi) MFABind(c *gin.Context) {
380380 return
381381 }
382382
383- helper .SuccessWithOutData (c )
383+ helper .Success (c )
384384}
385385
386386func (b * BaseApi ) ReloadSSL (c * gin.Context ) {
@@ -393,7 +393,7 @@ func (b *BaseApi) ReloadSSL(c *gin.Context) {
393393 helper .InternalServer (c , err )
394394 return
395395 }
396- helper .SuccessWithOutData (c )
396+ helper .Success (c )
397397}
398398
399399// @Tags System Setting
@@ -442,7 +442,7 @@ func (b *BaseApi) UpdateApiConfig(c *gin.Context) {
442442 helper .InternalServer (c , err )
443443 return
444444 }
445- helper .SuccessWithOutData (c )
445+ helper .Success (c )
446446}
447447
448448func checkEntrancePattern (val string ) bool {
0 commit comments