|
@@ -8,6 +8,7 @@ type Middleground struct {
|
|
|
EntManageApplication *entManageApplication
|
|
|
ActivityCenter *activity
|
|
|
Publicservice *publicService
|
|
|
+ JyPoints *jyPoints
|
|
|
}
|
|
|
|
|
|
func NewMiddleground(hosts []string) *Middleground {
|
|
@@ -39,6 +40,10 @@ func (m *Middleground) RegPublicservice(key string) *Middleground {
|
|
|
m.Publicservice = newPublicservice(m.hosts, key)
|
|
|
return m
|
|
|
}
|
|
|
+func (m *Middleground) RegJyPoints(key string) *Middleground {
|
|
|
+ m.JyPoints = newJyPoints(m.hosts, key)
|
|
|
+ return m
|
|
|
+}
|
|
|
func main() {
|
|
|
//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")
|