Skip to content

Commit

Permalink
perf: code make formate
Browse files Browse the repository at this point in the history
  • Loading branch information
张启航 committed Nov 20, 2023
1 parent 71ac789 commit 83061d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/controller/service_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ func (t *TenantStruct) BuildService(w http.ResponseWriter, r *http.Request) {
httputil.ReturnSuccess(r, w, res)
}

// PauseService virtual machine paused
func (t *TenantStruct) PauseService(w http.ResponseWriter, r *http.Request) {
serviceID := r.Context().Value(ctxutil.ContextKey("service_id")).(string)
sEvent := r.Context().Value(ctxutil.ContextKey("event")).(*dbmodel.ServiceEvent)
Expand All @@ -377,6 +378,7 @@ func (t *TenantStruct) PauseService(w http.ResponseWriter, r *http.Request) {
httputil.ReturnSuccess(r, w, sEvent)
}

// UNPauseService virtual machine unpaused
func (t *TenantStruct) UNPauseService(w http.ResponseWriter, r *http.Request) {
serviceID := r.Context().Value(ctxutil.ContextKey("service_id")).(string)
sEvent := r.Context().Value(ctxutil.ContextKey("event")).(*dbmodel.ServiceEvent)
Expand Down

0 comments on commit 83061d6

Please sign in to comment.