@@ -15,6 +15,7 @@ import (
1515// @Param request body request.AppInstalledSearch true "request"
1616// @Success 200
1717// @Security ApiKeyAuth
18+ // @Security Timestamp
1819// @Router /apps/installed/search [post]
1920func (b * BaseApi ) SearchAppInstalled (c * gin.Context ) {
2021 var req request.AppInstalledSearch
@@ -46,6 +47,7 @@ func (b *BaseApi) SearchAppInstalled(c *gin.Context) {
4647// @Accept json
4748// @Success 200 array dto.AppInstallInfo
4849// @Security ApiKeyAuth
50+ // @Security Timestamp
4951// @Router /apps/installed/list [get]
5052func (b * BaseApi ) ListAppInstalled (c * gin.Context ) {
5153 list , err := appInstallService .GetInstallList ()
@@ -62,6 +64,7 @@ func (b *BaseApi) ListAppInstalled(c *gin.Context) {
6264// @Param request body request.AppInstalledInfo true "request"
6365// @Success 200 {object} response.AppInstalledCheck
6466// @Security ApiKeyAuth
67+ // @Security Timestamp
6568// @Router /apps/installed/check [post]
6669func (b * BaseApi ) CheckAppInstalled (c * gin.Context ) {
6770 var req request.AppInstalledInfo
@@ -82,6 +85,7 @@ func (b *BaseApi) CheckAppInstalled(c *gin.Context) {
8285// @Param request body dto.OperationWithNameAndType true "request"
8386// @Success 200 {integer} port
8487// @Security ApiKeyAuth
88+ // @Security Timestamp
8589// @Router /apps/installed/loadport [post]
8690func (b * BaseApi ) LoadPort (c * gin.Context ) {
8791 var req dto.OperationWithNameAndType
@@ -102,6 +106,7 @@ func (b *BaseApi) LoadPort(c *gin.Context) {
102106// @Param request body dto.OperationWithNameAndType true "request"
103107// @Success 200 {string} response.DatabaseConn
104108// @Security ApiKeyAuth
109+ // @Security Timestamp
105110// @Router /apps/installed/conninfo/:key [get]
106111func (b * BaseApi ) LoadConnInfo (c * gin.Context ) {
107112 var req dto.OperationWithNameAndType
@@ -122,6 +127,7 @@ func (b *BaseApi) LoadConnInfo(c *gin.Context) {
122127// @Param appInstallId path integer true "App install id"
123128// @Success 200 {array} dto.AppResource
124129// @Security ApiKeyAuth
130+ // @Security Timestamp
125131// @Router /apps/installed/delete/check/:appInstallId [get]
126132func (b * BaseApi ) DeleteCheck (c * gin.Context ) {
127133 appInstallId , err := helper .GetIntParamByKey (c , "appInstallId" )
@@ -142,6 +148,7 @@ func (b *BaseApi) DeleteCheck(c *gin.Context) {
142148// @Summary Sync app installed
143149// @Success 200
144150// @Security ApiKeyAuth
151+ // @Security Timestamp
145152// @Router /apps/installed/sync [post]
146153// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFunctions":[],"formatZH":"同步已安装应用列表","formatEN":"Sync the list of installed apps"}
147154func (b * BaseApi ) SyncInstalled (c * gin.Context ) {
@@ -158,6 +165,7 @@ func (b *BaseApi) SyncInstalled(c *gin.Context) {
158165// @Param request body request.AppInstalledOperate true "request"
159166// @Success 200
160167// @Security ApiKeyAuth
168+ // @Security Timestamp
161169// @Router /apps/installed/op [post]
162170// @x-panel-log {"bodyKeys":["installId","operate"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"installId","isList":false,"db":"app_installs","output_column":"app_id","output_value":"appId"},{"input_column":"id","input_value":"installId","isList":false,"db":"app_installs","output_column":"name","output_value":"appName"},{"input_column":"id","input_value":"appId","isList":false,"db":"apps","output_column":"key","output_value":"appKey"}],"formatZH":"[operate] 应用 [appKey][appName]","formatEN":"[operate] App [appKey][appName]"}
163171func (b * BaseApi ) OperateInstalled (c * gin.Context ) {
@@ -178,6 +186,7 @@ func (b *BaseApi) OperateInstalled(c *gin.Context) {
178186// @Param key path string true "request"
179187// @Success 200 {array} response.AppService
180188// @Security ApiKeyAuth
189+ // @Security Timestamp
181190// @Router /apps/services/:key [get]
182191func (b * BaseApi ) GetServices (c * gin.Context ) {
183192 key := c .Param ("key" )
@@ -195,6 +204,7 @@ func (b *BaseApi) GetServices(c *gin.Context) {
195204// @Param appInstallId path integer true "request"
196205// @Success 200 {array} dto.AppVersion
197206// @Security ApiKeyAuth
207+ // @Security Timestamp
198208// @Router /apps/installed/update/versions [post]
199209func (b * BaseApi ) GetUpdateVersions (c * gin.Context ) {
200210 var req request.AppUpdateVersion
@@ -215,6 +225,7 @@ func (b *BaseApi) GetUpdateVersions(c *gin.Context) {
215225// @Param request body request.PortUpdate true "request"
216226// @Success 200
217227// @Security ApiKeyAuth
228+ // @Security Timestamp
218229// @Router /apps/installed/port/change [post]
219230// @x-panel-log {"bodyKeys":["key","name","port"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"应用端口修改 [key]-[name] => [port]","formatEN":"Application port update [key]-[name] => [port]"}
220231func (b * BaseApi ) ChangeAppPort (c * gin.Context ) {
@@ -235,6 +246,7 @@ func (b *BaseApi) ChangeAppPort(c *gin.Context) {
235246// @Param request body dto.OperationWithNameAndType true "request"
236247// @Success 200 {string} content
237248// @Security ApiKeyAuth
249+ // @Security Timestamp
238250// @Router /apps/installed/conf [post]
239251func (b * BaseApi ) GetDefaultConfig (c * gin.Context ) {
240252 var req dto.OperationWithNameAndType
@@ -256,6 +268,7 @@ func (b *BaseApi) GetDefaultConfig(c *gin.Context) {
256268// @Param appInstallId path string true "request"
257269// @Success 200 {object} response.AppParam
258270// @Security ApiKeyAuth
271+ // @Security Timestamp
259272// @Router /apps/installed/params/:appInstallId [get]
260273func (b * BaseApi ) GetParams (c * gin.Context ) {
261274 appInstallId , err := helper .GetIntParamByKey (c , "appInstallId" )
@@ -277,6 +290,7 @@ func (b *BaseApi) GetParams(c *gin.Context) {
277290// @Param request body request.AppInstalledUpdate true "request"
278291// @Success 200
279292// @Security ApiKeyAuth
293+ // @Security Timestamp
280294// @Router /apps/installed/params/update [post]
281295// @x-panel-log {"bodyKeys":["installId"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"应用参数修改 [installId]","formatEN":"Application param update [installId]"}
282296func (b * BaseApi ) UpdateInstalled (c * gin.Context ) {
@@ -297,6 +311,7 @@ func (b *BaseApi) UpdateInstalled(c *gin.Context) {
297311// @Param request body request.AppInstalledIgnoreUpgrade true "request"
298312// @Success 200
299313// @Security ApiKeyAuth
314+ // @Security Timestamp
300315// @Router /apps/installed/ignore [post]
301316// @x-panel-log {"bodyKeys":["installId"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"忽略应用 [installId] 版本升级","formatEN":"Application param update [installId]"}
302317func (b * BaseApi ) IgnoreUpgrade (c * gin.Context ) {
0 commit comments