mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-01-06 22:55:46 +08:00
refactor: 机器计划任务与流程定义关联至标签
This commit is contained in:
@@ -96,7 +96,7 @@ func (m *Mongo) Collections(rc *req.Ctx) {
|
||||
conn, err := m.MongoApp.GetMongoConn(m.GetMongoId(rc))
|
||||
biz.ErrIsNil(err)
|
||||
|
||||
global.EventBus.Publish(rc.MetaCtx, event.EventTopicResourceOp, conn.Info.TagPath[0])
|
||||
global.EventBus.Publish(rc.MetaCtx, event.EventTopicResourceOp, conn.Info.CodePath[0])
|
||||
|
||||
db := rc.Query("database")
|
||||
biz.NotEmpty(db, "database不能为空")
|
||||
|
||||
@@ -19,6 +19,6 @@ type Mongo struct {
|
||||
func (me *Mongo) ToMongoInfo(tagPath ...string) *mgm.MongoInfo {
|
||||
mongoInfo := new(mgm.MongoInfo)
|
||||
structx.Copy(mongoInfo, me)
|
||||
mongoInfo.TagPath = tagPath
|
||||
mongoInfo.CodePath = tagPath
|
||||
return mongoInfo
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ type MongoInfo struct {
|
||||
|
||||
Uri string `json:"-"`
|
||||
|
||||
TagPath []string `json:"tagPath"`
|
||||
CodePath []string `json:"codePath"`
|
||||
SshTunnelMachineId int `json:"-"` // ssh隧道机器id
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user