Skip to content

Commit

Permalink
init commit
Browse files Browse the repository at this point in the history
  • Loading branch information
language970 committed Mar 13, 2024
1 parent 5f29749 commit 5629c33
Show file tree
Hide file tree
Showing 112 changed files with 553 additions and 23,860 deletions.
76 changes: 0 additions & 76 deletions CODE_OF_CONDUCT.md

This file was deleted.

19 changes: 0 additions & 19 deletions CONTRIBUTING.md

This file was deleted.

24 changes: 0 additions & 24 deletions Dockerfile

This file was deleted.

20 changes: 8 additions & 12 deletions api/v1/slot/slot.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
package slot

import (
"context"
"fmt"
"github.com/gin-gonic/gin"
"oplian/global"
"oplian/model/common/response"
"oplian/model/slot/request"
"oplian/service/pb"
)

type SlotApi struct{}
Expand All @@ -30,14 +26,14 @@ func (slot *SlotApi) InstallSlot(c *gin.Context) {
var errMsg string
switch param.Name {
case "unsealed":
for _, gclient := range global.GateWayClinets.Gets() {
//新增存储
_, err = gclient.InstallUnsealed(context.Background(), &pb.String{})
if err != nil {
errMsg += fmt.Sprintf("%s\n", err.Error())
continue
}
}
//for _, gclient := range global.GateWayClinets.Gets() {
// //新增存储
// //_, err = gclient.InstallUnsealed(context.Background(), &pb.String{})
// //if err != nil {
// // errMsg += fmt.Sprintf("%s\n", err.Error())
// // continue
// //}
//}
}
response.OkWithMessage(errMsg, c)
}
4 changes: 0 additions & 4 deletions api/v1/system/enter.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@ type ApiGroup struct {
BaseApi
SystemApi
CasbinApi
AutoCodeApi
SystemApiApi
AuthorityApi
DictionaryApi
AuthorityMenuApi
OperationRecordApi
AutoCodeHistoryApi
DictionaryDetailApi
AuthorityBtnApi
MachineRoomRecordApi
Expand All @@ -39,13 +37,11 @@ var (
userService = service.ServiceGroupApp.SystemServiceGroup.UserService
initDBService = service.ServiceGroupApp.SystemServiceGroup.InitDBService
casbinService = service.ServiceGroupApp.SystemServiceGroup.CasbinService
autoCodeService = service.ServiceGroupApp.SystemServiceGroup.AutoCodeService
baseMenuService = service.ServiceGroupApp.SystemServiceGroup.BaseMenuService
authorityService = service.ServiceGroupApp.SystemServiceGroup.AuthorityService
dictionaryService = service.ServiceGroupApp.SystemServiceGroup.DictionaryService
systemConfigService = service.ServiceGroupApp.SystemServiceGroup.SystemConfigService
operationRecordService = service.ServiceGroupApp.SystemServiceGroup.OperationRecordService
autoCodeHistoryService = service.ServiceGroupApp.SystemServiceGroup.AutoCodeHistoryService
dictionaryDetailService = service.ServiceGroupApp.SystemServiceGroup.DictionaryDetailService
authorityBtnService = service.ServiceGroupApp.SystemServiceGroup.AuthorityBtnService
machineRoomRecordService = service.ServiceGroupApp.SystemServiceGroup.MachineRoomRecordService
Expand Down
Loading

0 comments on commit 5629c33

Please sign in to comment.