|
@@ -35,15 +35,17 @@ func (p *powerCheckCenter) newClient() zrpc.Client {
|
|
|
return client
|
|
|
}
|
|
|
|
|
|
-func (p *powerCheckCenter) Check(appid, userId string, baseUserId, accountId, entId int64) *pb.CheckResp {
|
|
|
+func (p *powerCheckCenter) Check(appid, userId string, baseUserId, accountId, entId, positionType, positionId int64) *pb.CheckResp {
|
|
|
client := p.newClient()
|
|
|
defer client.Conn().Close()
|
|
|
resp, err := powercheck.NewPowerCheck(client).Check(context.Background(), &pb.CheckReq{
|
|
|
- Appid: appid,
|
|
|
- Userid: userId,
|
|
|
- BaseUserId: baseUserId,
|
|
|
- AccountId: accountId,
|
|
|
- EntId: entId,
|
|
|
+ Appid: appid,
|
|
|
+ Userid: userId,
|
|
|
+ BaseUserId: baseUserId,
|
|
|
+ AccountId: accountId,
|
|
|
+ EntId: entId,
|
|
|
+ PositionType: positionType,
|
|
|
+ PositionId: positionId,
|
|
|
})
|
|
|
if err != nil {
|
|
|
log.Println(err)
|