2 Star 5 Fork 7

联犀/中台模块

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
doc/assets
service
apisvr
datasvr
syssvr
client
domain
etc
internal
config
logic
accessmanage
appmanage
appInfoCreateLogic.go
appInfoDeleteLogic.go
appInfoIndexLogic.go
appInfoReadLogic.go
appInfoUpdateLogic.go
appModuleIndexLogic.go
appModuleMultiUpdateLogic.go
assemble.go
areamanage
common
datamanage
departmentmanage
dictmanage
log
modulemanage
notifymanage
ops
projectmanage
rolemanage
tenantmanage
usermanage
assemble.go
assembleModule.go
assembleTenant.go
auth.go
menu.go
repo
server
startup
svc
pb/sys
proto
sysExport
sysdirect
sys.go
系统管理模块-syssvr.md
timed
viewsvr
README.md
shell
tools
.gitignore
.gitmodules
Dockerfile
LICENSE
Makefile
README.md
go.mod
go.sum
克隆/下载
appModuleMultiUpdateLogic.go 927 Bytes
一键复制 编辑 原始数据 按行查看 历史
杨磊 提交于 4个月前 . feat: 更新mod
package appmanagelogic
import (
"context"
"gitee.com/unitedrhino/core/service/syssvr/internal/repo/relationDB"
"gitee.com/unitedrhino/share/ctxs"
"gitee.com/unitedrhino/core/service/syssvr/internal/svc"
"gitee.com/unitedrhino/core/service/syssvr/pb/sys"
"github.com/zeromicro/go-zero/core/logx"
)
type AppModuleMultiUpdateLogic struct {
ctx context.Context
svcCtx *svc.ServiceContext
logx.Logger
}
func NewAppModuleMultiUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AppModuleMultiUpdateLogic {
return &AppModuleMultiUpdateLogic{
ctx: ctx,
svcCtx: svcCtx,
Logger: logx.WithContext(ctx),
}
}
func (l *AppModuleMultiUpdateLogic) AppModuleMultiUpdate(in *sys.AppModuleMultiUpdateReq) (*sys.Empty, error) {
if err := ctxs.IsRoot(l.ctx); err != nil {
return nil, err
}
err := relationDB.NewAppModuleRepo(l.ctx).MultiUpdate(l.ctx, in.Code, in.ModuleCodes)
return &sys.Empty{}, err
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/unitedrhino/core.git
git@gitee.com:unitedrhino/core.git
unitedrhino
core
中台模块
v1.1.2

搜索帮助