|
|
|
@@ -5,6 +5,7 @@ import ( |
|
|
|
"github.com/pkg/errors" |
|
|
|
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc" |
|
|
|
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types" |
|
|
|
"gitlink.org.cn/jcce-pcm/pcm-coordinator/pkg/models" |
|
|
|
"gitlink.org.cn/jcce-pcm/pcm-participant-octopus/octopus" |
|
|
|
) |
|
|
|
|
|
|
|
@@ -33,9 +34,11 @@ type StoreLink struct { |
|
|
|
ILinkage Linkage |
|
|
|
} |
|
|
|
|
|
|
|
// todo 根据participantId 创建对应对象 |
|
|
|
func NewStoreLink(ctx context.Context, svcCtx *svc.ServiceContext, partId int64) *StoreLink { |
|
|
|
linkStruct := NewOctopusLink(ctx, svcCtx, "hanwuji") |
|
|
|
var participant models.ScParticipantPhyInfo |
|
|
|
svcCtx.DbEngin.Raw("select * from sc_participant_phy_info where id = ?", partId).Scan(&participant) |
|
|
|
|
|
|
|
linkStruct := NewOctopusLink(ctx, svcCtx, participant.Name) |
|
|
|
return &StoreLink{ILinkage: linkStruct} |
|
|
|
} |
|
|
|
|
|
|
|
|