Browse Source

中台新增

WH01243 2 years ago
parent
commit
582ceae39f
1 changed files with 4 additions and 0 deletions
  1. 4 0
      middleground/middleground.go

+ 4 - 0
middleground/middleground.go

@@ -35,6 +35,10 @@ func (m *Middleground) RegActivity(key string) *Middleground {
 	m.ActivityCenter = newActivity(m.hosts, key)
 	m.ActivityCenter = newActivity(m.hosts, key)
 	return m
 	return m
 }
 }
+func (m *Middleground) RegPublicservice(key string) *Middleground {
+	m.Publicservice = newPublicservice(m.hosts, key)
+	return m
+}
 func main() {
 func main() {
 	//userId: 63d498bb6ae0e1ea2170e03d -baseUserId: 366251 -accountId: 13485 -entId: 15419 -positionType: 0 -baseUserId: 366251 -accountId: 13485 -entId: 15419 -positionType: 0 -positionId: 932
 	//userId: 63d498bb6ae0e1ea2170e03d -baseUserId: 366251 -accountId: 13485 -entId: 15419 -positionType: 0 -baseUserId: 366251 -accountId: 13485 -entId: 15419 -positionType: 0 -positionId: 932
 	NewMiddleground([]string{"192.168.3.206:2379"}).RegPowerCheckCenter("powercheck.rpc")
 	NewMiddleground([]string{"192.168.3.206:2379"}).RegPowerCheckCenter("powercheck.rpc")