Răsfoiți Sursa

wip:新增企业套餐id

wangkaiyue 1 an în urmă
părinte
comite
ab5392f6a6

+ 3 - 1
api/integral.api

@@ -115,6 +115,7 @@ type EntSourceNumAdd {
 	AccountId    string `form:"accountId,optional"`    //账户标识
 	CompanyId    int64  `form:"companyId,optional"`    //企业标识
 	DepartmentId string `form:"departmentId,optional"` //组织标识
+	EmpowerId    int64  `form:"empowerId,optional"`    //套餐id
 	UserId       string `form:"userId,optional"`       //用户标识
 	Name         string `form:"name,optional"`         //资源名称
 	ResourceType string `form:"resourceType,optional"` //资源类型
@@ -132,6 +133,7 @@ type EntAccountAdd {
 
 type EntOperateReq {
 	CompanyId        int64  `form:"companyId,optional"`        //企业标识
+	EmpowerId        int64  `form:"empowerId,optional"`        //套餐id
 	ResourceType     string `form:"resourceType,optional"`     //资源类型
 	OperateAccountId string `form:"operateAccountId,optional"` //操作账户
 }
@@ -170,4 +172,4 @@ service integral-api {
 	post /resources/entAccountGiven (EntOperateReq) returns (resourcesRes)
 	@handler EntAccountRecovery // TODO: set handler name and delete this comment
 	post /resources/entAccountRecovery (EntOperateReq) returns (resourcesRes)
-}
+}

+ 1 - 0
api/internal/logic/entaccountaddlogic.go

@@ -31,6 +31,7 @@ func (l *EntAccountAddLogic) EntAccountAdd(req *types.EntAccountAdd) (resp *type
 	resData, err = lsi.EntAccountAdd(l.ctx, &resourcesCenterclient.EntAccountAddReq{
 		AccountId:    req.AccountId,
 		CompanyId:    req.CompanyId,
+		EmpowerId:    req.EmpowerId,
 		UserId:       req.UserId,
 		Name:         req.Name,
 		ResourceType: req.ResourceType,

+ 1 - 0
api/internal/logic/entaccountgivenlogic.go

@@ -31,6 +31,7 @@ func (l *EntAccountGivenLogic) EntAccountGiven(req *types.EntOperateReq) (resp *
 	)
 	resData, err = lsi.EntAccountGiven(l.ctx, &resourcesCenterclient.EntOperateReq{
 		CompanyId:        req.CompanyId,
+		EmpowerId:        req.EmpowerId,
 		ResourceType:     req.ResourceType,
 		OperateAccountId: req.OperateAccountId,
 	})

+ 1 - 0
api/internal/logic/entaccountrecoverylogic.go

@@ -31,6 +31,7 @@ func (l *EntAccountRecoveryLogic) EntAccountRecovery(req *types.EntOperateReq) (
 	)
 	resData, err = lsi.EntAccountRecovery(l.ctx, &resourcesCenterclient.EntOperateReq{
 		CompanyId:        req.CompanyId,
+		EmpowerId:        req.EmpowerId,
 		ResourceType:     req.ResourceType,
 		OperateAccountId: req.OperateAccountId,
 	})

+ 1 - 0
api/internal/logic/entsourcenumaddlogic.go

@@ -32,6 +32,7 @@ func (l *EntSourceNumAddLogic) EntSourceNumAdd(req *types.EntSourceNumAdd) (resp
 	resData, err = lsi.EntSourceNumAdd(l.ctx, &resourcesCenterclient.EntSourceNumAddReq{
 		AccountId:    req.AccountId,
 		CompanyId:    req.CompanyId,
+		EmpowerId:    req.EmpowerId,
 		UserId:       req.UserId,
 		Name:         req.Name,
 		ResourceType: req.ResourceType,

+ 2 - 0
api/internal/types/types.go

@@ -114,6 +114,7 @@ type EntSourceNumAdd struct {
 	AccountId    string `form:"accountId,optional"`    //账户标识
 	CompanyId    int64  `form:"companyId,optional"`    //企业标识
 	DepartmentId string `form:"departmentId,optional"` //组织标识
+	EmpowerId    int64  `form:"empowerId,optional"`    //套餐id
 	UserId       string `form:"userId,optional"`       //用户标识
 	Name         string `form:"name,optional"`         //资源名称
 	ResourceType string `form:"resourceType,optional"` //资源类型
@@ -131,6 +132,7 @@ type EntAccountAdd struct {
 
 type EntOperateReq struct {
 	CompanyId        int64  `form:"companyId,optional"`        //企业标识
+	EmpowerId        int64  `form:"empowerId,optional"`        //套餐id
 	ResourceType     string `form:"resourceType,optional"`     //资源类型
 	OperateAccountId string `form:"operateAccountId,optional"` //操作账户
 }

+ 1 - 0
entity/accountResources.go

@@ -4,6 +4,7 @@ type Balance struct {
 	Id           int64  `xorm:"pk autoincr id" form:"id" json:"id"`
 	AccountId    string `xorm:"accountId" form:"accountId" json:"accountId"`          //账户标识
 	CompanyId    int64  `xorm:"companyId" form:"companyId" json:"companyId"`          //企业标识
+	EmpowerId    int64  `xorm:"empowerId" form:"empowerId" json:"empowerId"`          //企业分配权益
 	DepartmentId int64  `xorm:"departmentId" form:"departmentId" json:"departmentId"` //组织标识
 	Name         string `xorm:"name" form:"name" json:"name"`                         //资源名称
 	ResourceType string `xorm:"resourceType" form:"resourceType" json:"resourceType"` //资源代码

+ 1 - 0
entity/detailed.go

@@ -6,6 +6,7 @@ type Detailed struct {
 	Id            int64     `xorm:"pk autoincr id" form:"id" json:"id"`
 	AccountId     string    `xorm:"accountId" form:"accountId" json:"accountId"`             //账户标识
 	CompanyId     int64     `xorm:"companyId" form:"companyId" json:"companyId"`             //企业标识
+	EmpowerId     int64     `xorm:"empowerId" form:"empowerId" json:"empowerId"`             //企业分配权益
 	DepartmentId  int64     `xorm:"departmentId" form:"departmentId" json:"departmentId"`    //组织标识
 	ResourceType  string    `xorm:"resourceType" form:"resourceType" json:"resourceType"`    //资源类型
 	Number        int64     `xorm:"number" form:"number" json:"number"`                      //数量

+ 3 - 1
rpc/internal/logic/entaccountaddlogic.go

@@ -37,7 +37,7 @@ func NewEntAccountAddLogic(ctx context.Context, svcCtx *svc.ServiceContext) *Ent
 // EntAccountAdd 新增权益账号
 func (l *EntAccountAddLogic) EntAccountAdd(in *resourcesCenter.EntAccountAddReq) (*resourcesCenter.Response, error) {
 	eCode, msg := func() (int64, string) {
-		if config.ConfigJson.ProductMap[in.ResourceType] == nil || in.CompanyId == 0 {
+		if config.ConfigJson.ProductMap[in.ResourceType] == nil || in.CompanyId == 0 || in.EmpowerId == 0 {
 			return entity.ErrorCode, "参数异常"
 		}
 		orm := entity.Engine.NewSession()
@@ -62,6 +62,7 @@ func (l *EntAccountAddLogic) EntAccountAdd(in *resourcesCenter.EntAccountAddReq)
 					AccountId:    tUserId,
 					CompanyId:    in.CompanyId,
 					DepartmentId: in.DepartmentId,
+					EmpowerId:    in.EmpowerId,
 					Name:         in.Name,
 					ResourceType: in.ResourceType,
 					Number:       in.Number,
@@ -74,6 +75,7 @@ func (l *EntAccountAddLogic) EntAccountAdd(in *resourcesCenter.EntAccountAddReq)
 					AccountId:    tUserId,
 					CompanyId:    in.CompanyId,
 					DepartmentId: in.DepartmentId,
+					EmpowerId:    in.EmpowerId,
 					Name:         in.Name,
 					ResourceType: in.ResourceType,
 					Number:       in.Number,

+ 3 - 2
rpc/internal/logic/entaccountgivenlogic.go

@@ -30,12 +30,12 @@ func NewEntAccountGivenLogic(ctx context.Context, svcCtx *svc.ServiceContext) *E
 // EntAccountGiven 权益分配
 func (l *EntAccountGivenLogic) EntAccountGiven(in *resourcesCenter.EntOperateReq) (*resourcesCenter.Response, error) {
 	eCode, msg := func() (int64, string) {
-		if config.ConfigJson.ProductMap[in.ResourceType] == nil || in.CompanyId == 0 || in.OperateAccountId == "" {
+		if config.ConfigJson.ProductMap[in.ResourceType] == nil || in.CompanyId == 0 || in.OperateAccountId == "" || in.EmpowerId == 0 {
 			return entity.ErrorCode, "参数异常"
 		}
 		waitBalance := &entity.Balance{} //等待分配的数量
 		orm := entity.Engine.NewSession()
-		_, err := orm.Table(AccountResources).Where("companyId=? AND resourceType=? AND number>0 AND endTime>= ? AND accountId like 'wait_%'", in.CompanyId, in.ResourceType, time.Now().Format("2006-01-02")).OrderBy("id asc").Limit(1).Get(waitBalance)
+		_, err := orm.Table(AccountResources).Where("companyId=? AND resourceType=? AND empowerId=? AND number>0 AND endTime>= ? AND accountId like 'wait_%'", in.CompanyId, in.ResourceType, in.EmpowerId, time.Now().Format("2006-01-02")).OrderBy("id asc").Limit(1).Get(waitBalance)
 		if err != nil || waitBalance == nil {
 			return entity.ErrorCode, "账户查询异常"
 		}
@@ -56,6 +56,7 @@ func (l *EntAccountGivenLogic) EntAccountGiven(in *resourcesCenter.EntOperateReq
 		updateNumb, err = orm.Table(ConsumeRecord).Insert(entity.Detailed{
 			AccountId:    in.OperateAccountId,
 			CompanyId:    waitBalance.CompanyId,
+			EmpowerId:    in.EmpowerId,
 			ResourceType: waitBalance.ResourceType,
 			Number:       waitBalance.Number,
 			CreateTime:   time.Now().Local(),

+ 3 - 2
rpc/internal/logic/entaccountrecoverylogic.go

@@ -32,7 +32,7 @@ func NewEntAccountRecoveryLogic(ctx context.Context, svcCtx *svc.ServiceContext)
 // EntAccountRecovery 权益收回
 func (l *EntAccountRecoveryLogic) EntAccountRecovery(in *resourcesCenter.EntOperateReq) (*resourcesCenter.Response, error) {
 	eCode, msg := func() (int64, string) {
-		if config.ConfigJson.ProductMap[in.ResourceType] == nil || in.CompanyId == 0 || in.OperateAccountId == "" {
+		if config.ConfigJson.ProductMap[in.ResourceType] == nil || in.CompanyId == 0 || in.OperateAccountId == "" || in.EmpowerId == 0 {
 			return entity.ErrorCode, "参数异常"
 		}
 		var (
@@ -42,7 +42,7 @@ func (l *EntAccountRecoveryLogic) EntAccountRecovery(in *resourcesCenter.EntOper
 		)
 
 		_, err = orm.Table(AccountResources).
-			Where("companyId=? AND resourceType=? AND number>0 AND endTime>= ? AND accountId = ?", in.CompanyId, in.ResourceType, time.Now().Format("2006-01-02"), in.OperateAccountId).Get(balance)
+			Where("companyId=? AND resourceType=? AND empowerId=? AND number>0 AND endTime>= ? AND accountId = ?", in.CompanyId, in.ResourceType, in.EmpowerId, time.Now().Format("2006-01-02"), in.OperateAccountId).Get(balance)
 		if err != nil || balance == nil {
 			return entity.ErrorCode, "账户查询异常"
 		}
@@ -62,6 +62,7 @@ func (l *EntAccountRecoveryLogic) EntAccountRecovery(in *resourcesCenter.EntOper
 		updateNumb, err = orm.Table(ConsumeRecord).Insert(entity.Detailed{
 			AccountId:    balance.AccountId,
 			CompanyId:    balance.CompanyId,
+			EmpowerId:    balance.EmpowerId,
 			ResourceType: balance.ResourceType,
 			Number:       balance.Number,
 			CreateTime:   time.Now().Local(),

+ 3 - 2
rpc/internal/logic/entsourcenumaddlogic.go

@@ -30,13 +30,13 @@ func NewEntSourceNumAddLogic(ctx context.Context, svcCtx *svc.ServiceContext) *E
 // EntSourceNumAdd 新增资源数量
 func (l *EntSourceNumAddLogic) EntSourceNumAdd(in *resourcesCenter.EntSourceNumAddReq) (*resourcesCenter.Response, error) {
 	eCode, msg := func() (int64, string) {
-		if config.ConfigJson.ProductMap[in.ResourceType] == nil || in.CompanyId == 0 {
+		if config.ConfigJson.ProductMap[in.ResourceType] == nil || in.CompanyId == 0 || in.EmpowerId == 0 {
 			return entity.ErrorCode, "参数异常"
 		}
 		var accountBalanceArr []*entity.Balance
 		orm := entity.Engine.NewSession()
 		err := orm.Table(AccountResources).
-			Where("companyId=? AND resourceType=? AND endTime>= ?", in.CompanyId, in.ResourceType, time.Now().Format("2006-01-02")).Find(&accountBalanceArr)
+			Where("companyId=? AND resourceType=? AND empowerId=? AND endTime>= ?", in.CompanyId, in.ResourceType, in.EmpowerId, time.Now().Format("2006-01-02")).Find(&accountBalanceArr)
 		if err != nil {
 			return entity.ErrorCode, "查询数据异常"
 		}
@@ -48,6 +48,7 @@ func (l *EntSourceNumAddLogic) EntSourceNumAdd(in *resourcesCenter.EntSourceNumA
 				detailed = entity.Detailed{
 					AccountId:    balance.AccountId,
 					CompanyId:    in.CompanyId,
+					EmpowerId:    in.EmpowerId,
 					DepartmentId: in.DepartmentId,
 					Name:         in.Name,
 					ResourceType: in.ResourceType,

+ 22 - 19
rpc/resourcesCenter.proto

@@ -163,35 +163,38 @@ message EntAccountAddReq {
   string accountId = 1; //账户标识
   int64 companyId = 2; //企业标识
   int64 departmentId = 3; //组织标识
-  string userId = 4; //用户标识
-  string name = 5; //资源名称
-  string resourceType = 6; //资源类型
-  int64 number = 7; //资源数量
-  string spec = 8; //规格
-  string appId = 9; //标识
-  string endTime = 10; //资源有效时间
-  string Remarks = 11; //备注
-  int64 AccountNum = 12; //新增账号数量,-1操作现有所有账户
+  int64 empowerId = 4; //权益分配id
+  string userId = 5; //用户标识
+  string name = 6; //资源名称
+  string resourceType = 7; //资源类型
+  int64 number = 8; //资源数量
+  string spec = 9; //规格
+  string appId = 10; //标识
+  string endTime = 11; //资源有效时间
+  string Remarks = 12; //备注
+  int64 AccountNum = 13; //新增账号数量,-1操作现有所有账户
 }
 
 message EntSourceNumAddReq {
   string accountId = 1; //账户标识
   int64 companyId = 2; //企业标识
   int64 departmentId = 3; //组织标识
-  string userId = 4; //用户标识
-  string name = 5; //资源名称
-  string resourceType = 6; //资源类型
-  int64 number = 7; //资源数量
-  string spec = 8; //规格
-  string appId = 9; //标识
-  string endTime = 10; //资源有效时间
-  string Remarks = 11; //备注
+  int64 empowerId = 4; //权益分配id
+  string userId = 5; //用户标识
+  string name = 6; //资源名称
+  string resourceType = 7; //资源类型
+  int64 number = 8; //资源数量
+  string spec = 9; //规格
+  string appId = 10; //标识
+  string endTime = 11; //资源有效时间
+  string Remarks = 12; //备注
 }
 
 message EntOperateReq {
   int64 companyId = 1; //企业标识
-  string resourceType = 2; //资源类型
-  string operateAccountId = 3; //操作账户
+  int64 empowerId = 2; //权益分配id
+  string resourceType = 3; //资源类型
+  string operateAccountId = 4; //操作账户
 }
 
 service ResourcesCenter {

+ 152 - 122
rpc/resourcesCenter/resourcesCenter.pb.go

@@ -1566,15 +1566,16 @@ type EntAccountAddReq struct {
 	AccountId    string `protobuf:"bytes,1,opt,name=accountId,proto3" json:"accountId,omitempty"`        //账户标识
 	CompanyId    int64  `protobuf:"varint,2,opt,name=companyId,proto3" json:"companyId,omitempty"`       //企业标识
 	DepartmentId int64  `protobuf:"varint,3,opt,name=departmentId,proto3" json:"departmentId,omitempty"` //组织标识
-	UserId       string `protobuf:"bytes,4,opt,name=userId,proto3" json:"userId,omitempty"`              //用户标识
-	Name         string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`                  //资源名称
-	ResourceType string `protobuf:"bytes,6,opt,name=resourceType,proto3" json:"resourceType,omitempty"`  //资源类型
-	Number       int64  `protobuf:"varint,7,opt,name=number,proto3" json:"number,omitempty"`             //资源数量
-	Spec         string `protobuf:"bytes,8,opt,name=spec,proto3" json:"spec,omitempty"`                  //规格
-	AppId        string `protobuf:"bytes,9,opt,name=appId,proto3" json:"appId,omitempty"`                //标识
-	EndTime      string `protobuf:"bytes,10,opt,name=endTime,proto3" json:"endTime,omitempty"`           //资源有效时间
-	Remarks      string `protobuf:"bytes,11,opt,name=Remarks,proto3" json:"Remarks,omitempty"`           //备注
-	AccountNum   int64  `protobuf:"varint,12,opt,name=AccountNum,proto3" json:"AccountNum,omitempty"`    //新增账号数量,-1操作现有所有账户
+	EmpowerId    int64  `protobuf:"varint,4,opt,name=empowerId,proto3" json:"empowerId,omitempty"`       //权益分配id
+	UserId       string `protobuf:"bytes,5,opt,name=userId,proto3" json:"userId,omitempty"`              //用户标识
+	Name         string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`                  //资源名称
+	ResourceType string `protobuf:"bytes,7,opt,name=resourceType,proto3" json:"resourceType,omitempty"`  //资源类型
+	Number       int64  `protobuf:"varint,8,opt,name=number,proto3" json:"number,omitempty"`             //资源数量
+	Spec         string `protobuf:"bytes,9,opt,name=spec,proto3" json:"spec,omitempty"`                  //规格
+	AppId        string `protobuf:"bytes,10,opt,name=appId,proto3" json:"appId,omitempty"`               //标识
+	EndTime      string `protobuf:"bytes,11,opt,name=endTime,proto3" json:"endTime,omitempty"`           //资源有效时间
+	Remarks      string `protobuf:"bytes,12,opt,name=Remarks,proto3" json:"Remarks,omitempty"`           //备注
+	AccountNum   int64  `protobuf:"varint,13,opt,name=AccountNum,proto3" json:"AccountNum,omitempty"`    //新增账号数量,-1操作现有所有账户
 }
 
 func (x *EntAccountAddReq) Reset() {
@@ -1630,6 +1631,13 @@ func (x *EntAccountAddReq) GetDepartmentId() int64 {
 	return 0
 }
 
+func (x *EntAccountAddReq) GetEmpowerId() int64 {
+	if x != nil {
+		return x.EmpowerId
+	}
+	return 0
+}
+
 func (x *EntAccountAddReq) GetUserId() string {
 	if x != nil {
 		return x.UserId
@@ -1701,14 +1709,15 @@ type EntSourceNumAddReq struct {
 	AccountId    string `protobuf:"bytes,1,opt,name=accountId,proto3" json:"accountId,omitempty"`        //账户标识
 	CompanyId    int64  `protobuf:"varint,2,opt,name=companyId,proto3" json:"companyId,omitempty"`       //企业标识
 	DepartmentId int64  `protobuf:"varint,3,opt,name=departmentId,proto3" json:"departmentId,omitempty"` //组织标识
-	UserId       string `protobuf:"bytes,4,opt,name=userId,proto3" json:"userId,omitempty"`              //用户标识
-	Name         string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`                  //资源名称
-	ResourceType string `protobuf:"bytes,6,opt,name=resourceType,proto3" json:"resourceType,omitempty"`  //资源类型
-	Number       int64  `protobuf:"varint,7,opt,name=number,proto3" json:"number,omitempty"`             //资源数量
-	Spec         string `protobuf:"bytes,8,opt,name=spec,proto3" json:"spec,omitempty"`                  //规格
-	AppId        string `protobuf:"bytes,9,opt,name=appId,proto3" json:"appId,omitempty"`                //标识
-	EndTime      string `protobuf:"bytes,10,opt,name=endTime,proto3" json:"endTime,omitempty"`           //资源有效时间
-	Remarks      string `protobuf:"bytes,11,opt,name=Remarks,proto3" json:"Remarks,omitempty"`           //备注
+	EmpowerId    int64  `protobuf:"varint,4,opt,name=empowerId,proto3" json:"empowerId,omitempty"`       //权益分配id
+	UserId       string `protobuf:"bytes,5,opt,name=userId,proto3" json:"userId,omitempty"`              //用户标识
+	Name         string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`                  //资源名称
+	ResourceType string `protobuf:"bytes,7,opt,name=resourceType,proto3" json:"resourceType,omitempty"`  //资源类型
+	Number       int64  `protobuf:"varint,8,opt,name=number,proto3" json:"number,omitempty"`             //资源数量
+	Spec         string `protobuf:"bytes,9,opt,name=spec,proto3" json:"spec,omitempty"`                  //规格
+	AppId        string `protobuf:"bytes,10,opt,name=appId,proto3" json:"appId,omitempty"`               //标识
+	EndTime      string `protobuf:"bytes,11,opt,name=endTime,proto3" json:"endTime,omitempty"`           //资源有效时间
+	Remarks      string `protobuf:"bytes,12,opt,name=Remarks,proto3" json:"Remarks,omitempty"`           //备注
 }
 
 func (x *EntSourceNumAddReq) Reset() {
@@ -1764,6 +1773,13 @@ func (x *EntSourceNumAddReq) GetDepartmentId() int64 {
 	return 0
 }
 
+func (x *EntSourceNumAddReq) GetEmpowerId() int64 {
+	if x != nil {
+		return x.EmpowerId
+	}
+	return 0
+}
+
 func (x *EntSourceNumAddReq) GetUserId() string {
 	if x != nil {
 		return x.UserId
@@ -1826,8 +1842,9 @@ type EntOperateReq struct {
 	unknownFields protoimpl.UnknownFields
 
 	CompanyId        int64  `protobuf:"varint,1,opt,name=companyId,proto3" json:"companyId,omitempty"`              //企业标识
-	ResourceType     string `protobuf:"bytes,2,opt,name=resourceType,proto3" json:"resourceType,omitempty"`         //资源类型
-	OperateAccountId string `protobuf:"bytes,3,opt,name=operateAccountId,proto3" json:"operateAccountId,omitempty"` //操作账户
+	EmpowerId        int64  `protobuf:"varint,2,opt,name=empowerId,proto3" json:"empowerId,omitempty"`              //权益分配id
+	ResourceType     string `protobuf:"bytes,3,opt,name=resourceType,proto3" json:"resourceType,omitempty"`         //资源类型
+	OperateAccountId string `protobuf:"bytes,4,opt,name=operateAccountId,proto3" json:"operateAccountId,omitempty"` //操作账户
 }
 
 func (x *EntOperateReq) Reset() {
@@ -1869,6 +1886,13 @@ func (x *EntOperateReq) GetCompanyId() int64 {
 	return 0
 }
 
+func (x *EntOperateReq) GetEmpowerId() int64 {
+	if x != nil {
+		return x.EmpowerId
+	}
+	return 0
+}
+
 func (x *EntOperateReq) GetResourceType() string {
 	if x != nil {
 		return x.ResourceType
@@ -2095,7 +2119,7 @@ var file_resourcesCenter_proto_rawDesc = []byte{
 	0x55, 0x73, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x6d, 0x65, 0x72, 0x67, 0x65, 0x64, 0x55, 0x73,
 	0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6d, 0x65, 0x72, 0x67, 0x65, 0x64,
 	0x55, 0x73, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x03, 0x20,
-	0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x22, 0xd8, 0x02, 0x0a, 0x10, 0x45,
+	0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x22, 0xf6, 0x02, 0x0a, 0x10, 0x45,
 	0x6e, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71, 0x12,
 	0x1c, 0x0a, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01,
 	0x28, 0x09, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1c, 0x0a,
@@ -2103,111 +2127,117 @@ var file_resourcesCenter_proto_rawDesc = []byte{
 	0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x64,
 	0x65, 0x70, 0x61, 0x72, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
 	0x03, 0x52, 0x0c, 0x64, 0x65, 0x70, 0x61, 0x72, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12,
-	0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
-	0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
-	0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x72,
-	0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28,
-	0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12,
-	0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52,
-	0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18,
-	0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x12, 0x14, 0x0a, 0x05, 0x61,
-	0x70, 0x70, 0x49, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49,
-	0x64, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x0a, 0x20, 0x01,
-	0x28, 0x09, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x52,
-	0x65, 0x6d, 0x61, 0x72, 0x6b, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x52, 0x65,
-	0x6d, 0x61, 0x72, 0x6b, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
-	0x4e, 0x75, 0x6d, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x41, 0x63, 0x63, 0x6f, 0x75,
-	0x6e, 0x74, 0x4e, 0x75, 0x6d, 0x22, 0xba, 0x02, 0x0a, 0x12, 0x45, 0x6e, 0x74, 0x53, 0x6f, 0x75,
-	0x72, 0x63, 0x65, 0x4e, 0x75, 0x6d, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71, 0x12, 0x1c, 0x0a, 0x09,
-	0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
-	0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f,
-	0x6d, 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63,
-	0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x64, 0x65, 0x70, 0x61,
-	0x72, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c,
-	0x64, 0x65, 0x70, 0x61, 0x72, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06,
-	0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73,
-	0x65, 0x72, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01,
-	0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f,
-	0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c,
-	0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06,
-	0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6e, 0x75,
-	0x6d, 0x62, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x08, 0x20, 0x01,
-	0x28, 0x09, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49,
-	0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x12, 0x18,
-	0x0a, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52,
-	0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x52, 0x65, 0x6d, 0x61,
-	0x72, 0x6b, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x52, 0x65, 0x6d, 0x61, 0x72,
-	0x6b, 0x73, 0x22, 0x7d, 0x0a, 0x0d, 0x45, 0x6e, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x65,
-	0x52, 0x65, 0x71, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64,
-	0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x49,
-	0x64, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70,
-	0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
-	0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a, 0x10, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x65,
-	0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
-	0x10, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49,
-	0x64, 0x32, 0xc8, 0x07, 0x0a, 0x0f, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43,
-	0x65, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x56, 0x0a, 0x11, 0x66, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x73,
-	0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x41, 0x75, 0x74, 0x68, 0x12, 0x1d, 0x2e, 0x72, 0x65, 0x73,
-	0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73,
-	0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x22, 0x2e, 0x72, 0x65, 0x73, 0x6f,
-	0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x41, 0x63, 0x63, 0x6f,
-	0x75, 0x6e, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x12, 0x57, 0x0a,
-	0x12, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x61, 0x6c, 0x61,
-	0x6e, 0x63, 0x65, 0x12, 0x1d, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43,
-	0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52,
-	0x65, 0x71, 0x1a, 0x22, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65,
-	0x6e, 0x74, 0x65, 0x72, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x61, 0x6c, 0x61,
-	0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x12, 0x52, 0x0a, 0x11, 0x66, 0x69, 0x6e, 0x64, 0x43, 0x6f,
-	0x6e, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x1a, 0x2e, 0x72, 0x65,
-	0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65,
-	0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x21, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
-	0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d,
-	0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x12, 0x4c, 0x0a, 0x13, 0x70, 0x75,
-	0x72, 0x63, 0x68, 0x61, 0x73, 0x65, 0x55, 0x73, 0x65, 0x72, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63,
-	0x65, 0x12, 0x1a, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e,
-	0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x1a, 0x19, 0x2e,
+	0x1c, 0x0a, 0x09, 0x65, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01,
+	0x28, 0x03, 0x52, 0x09, 0x65, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x49, 0x64, 0x12, 0x16, 0x0a,
+	0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75,
+	0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20,
+	0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x73,
+	0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52,
+	0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a,
+	0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6e,
+	0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x09, 0x20,
+	0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70,
+	0x49, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x12,
+	0x18, 0x0a, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09,
+	0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x52, 0x65, 0x6d,
+	0x61, 0x72, 0x6b, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x52, 0x65, 0x6d, 0x61,
+	0x72, 0x6b, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x75,
+	0x6d, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
+	0x4e, 0x75, 0x6d, 0x22, 0xd8, 0x02, 0x0a, 0x12, 0x45, 0x6e, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63,
+	0x65, 0x4e, 0x75, 0x6d, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x63,
+	0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61,
+	0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x70,
+	0x61, 0x6e, 0x79, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x6f, 0x6d,
+	0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x64, 0x65, 0x70, 0x61, 0x72, 0x74,
+	0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x64, 0x65,
+	0x70, 0x61, 0x72, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x6d,
+	0x70, 0x6f, 0x77, 0x65, 0x72, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65,
+	0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72,
+	0x49, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64,
+	0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
+	0x6e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
+	0x54, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f,
+	0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62,
+	0x65, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72,
+	0x12, 0x12, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
+	0x73, 0x70, 0x65, 0x63, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x0a, 0x20,
+	0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e,
+	0x64, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x65, 0x6e, 0x64,
+	0x54, 0x69, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x52, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x73, 0x18,
+	0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x52, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x73, 0x22, 0x9b,
+	0x01, 0x0a, 0x0d, 0x45, 0x6e, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71,
+	0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20,
+	0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, 0x12, 0x1c,
+	0x0a, 0x09, 0x65, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
+	0x03, 0x52, 0x09, 0x65, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0c,
+	0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01,
+	0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65,
+	0x12, 0x2a, 0x0a, 0x10, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75,
+	0x6e, 0x74, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x6f, 0x70, 0x65, 0x72,
+	0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x32, 0xc8, 0x07, 0x0a,
+	0x0f, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72,
+	0x12, 0x56, 0x0a, 0x11, 0x66, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
+	0x73, 0x41, 0x75, 0x74, 0x68, 0x12, 0x1d, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
+	0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
+	0x73, 0x52, 0x65, 0x71, 0x1a, 0x22, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73,
+	0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x61,
+	0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x12, 0x57, 0x0a, 0x12, 0x66, 0x69, 0x6e, 0x64,
+	0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1d,
+	0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72,
+	0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x22, 0x2e,
 	0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e,
-	0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x0f, 0x75, 0x73, 0x65, 0x55,
-	0x73, 0x65, 0x72, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x12, 0x1a, 0x2e, 0x72, 0x65,
-	0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65,
-	0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x1a, 0x20, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
-	0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x55, 0x73, 0x65, 0x55, 0x73, 0x65,
-	0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0b, 0x66, 0x69, 0x6e,
-	0x64, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x12, 0x1b, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75,
-	0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x50, 0x72, 0x65, 0x76, 0x69,
-	0x65, 0x77, 0x52, 0x65, 0x71, 0x1a, 0x1b, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
-	0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52,
-	0x65, 0x73, 0x12, 0x42, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x12,
-	0x1a, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65,
-	0x72, 0x2e, 0x6d, 0x65, 0x72, 0x67, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x1a, 0x19, 0x2e, 0x72, 0x65,
+	0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65,
+	0x73, 0x12, 0x52, 0x0a, 0x11, 0x66, 0x69, 0x6e, 0x64, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65,
+	0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x1a, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
+	0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52,
+	0x65, 0x71, 0x1a, 0x21, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65,
+	0x6e, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f,
+	0x72, 0x64, 0x52, 0x65, 0x73, 0x12, 0x4c, 0x0a, 0x13, 0x70, 0x75, 0x72, 0x63, 0x68, 0x61, 0x73,
+	0x65, 0x55, 0x73, 0x65, 0x72, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1a, 0x2e, 0x72,
+	0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52,
+	0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x1a, 0x19, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75,
+	0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f,
+	0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x0f, 0x75, 0x73, 0x65, 0x55, 0x73, 0x65, 0x72, 0x44, 0x65,
+	0x74, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x12, 0x1a, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
+	0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
+	0x65, 0x73, 0x1a, 0x20, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65,
+	0x6e, 0x74, 0x65, 0x72, 0x2e, 0x55, 0x73, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70,
+	0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0b, 0x66, 0x69, 0x6e, 0x64, 0x50, 0x72, 0x65, 0x76,
+	0x69, 0x65, 0x77, 0x12, 0x1b, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43,
+	0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x65, 0x71,
+	0x1a, 0x1b, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74,
+	0x65, 0x72, 0x2e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x65, 0x73, 0x12, 0x42, 0x0a,
+	0x09, 0x75, 0x73, 0x65, 0x72, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x12, 0x1a, 0x2e, 0x72, 0x65, 0x73,
+	0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x6d, 0x65, 0x72,
+	0x67, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x1a, 0x19, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
+	0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
+	0x65, 0x12, 0x43, 0x0a, 0x0d, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x56, 0x69, 0x70, 0x54, 0x69,
+	0x6d, 0x65, 0x12, 0x17, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65,
+	0x6e, 0x74, 0x65, 0x72, 0x2e, 0x56, 0x69, 0x70, 0x52, 0x65, 0x71, 0x1a, 0x19, 0x2e, 0x72, 0x65,
 	0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65,
-	0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x0d, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
-	0x56, 0x69, 0x70, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x17, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
-	0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x56, 0x69, 0x70, 0x52, 0x65, 0x71,
-	0x1a, 0x19, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74,
-	0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0f, 0x65,
-	0x6e, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x75, 0x6d, 0x41, 0x64, 0x64, 0x12, 0x23,
+	0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0f, 0x65, 0x6e, 0x74, 0x53, 0x6f, 0x75,
+	0x72, 0x63, 0x65, 0x4e, 0x75, 0x6d, 0x41, 0x64, 0x64, 0x12, 0x23, 0x2e, 0x72, 0x65, 0x73, 0x6f,
+	0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x45, 0x6e, 0x74, 0x53,
+	0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x75, 0x6d, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x19,
 	0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72,
-	0x2e, 0x45, 0x6e, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x75, 0x6d, 0x41, 0x64, 0x64,
-	0x52, 0x65, 0x71, 0x1a, 0x19, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43,
-	0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d,
-	0x0a, 0x0d, 0x65, 0x6e, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x12,
-	0x21, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65,
-	0x72, 0x2e, 0x45, 0x6e, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x52,
-	0x65, 0x71, 0x1a, 0x19, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65,
-	0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a,
-	0x0f, 0x65, 0x6e, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x47, 0x69, 0x76, 0x65, 0x6e,
-	0x12, 0x1e, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74,
-	0x65, 0x72, 0x2e, 0x45, 0x6e, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71,
-	0x1a, 0x19, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74,
-	0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x12, 0x65,
-	0x6e, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72,
-	0x79, 0x12, 0x1e, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e,
-	0x74, 0x65, 0x72, 0x2e, 0x45, 0x6e, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65,
-	0x71, 0x1a, 0x19, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e,
-	0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x12, 0x5a, 0x10,
-	0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f,
-	0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+	0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x0d, 0x65, 0x6e, 0x74,
+	0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x12, 0x21, 0x2e, 0x72, 0x65, 0x73,
+	0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x45, 0x6e, 0x74,
+	0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x19, 0x2e,
+	0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e,
+	0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x0f, 0x65, 0x6e, 0x74, 0x41,
+	0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x47, 0x69, 0x76, 0x65, 0x6e, 0x12, 0x1e, 0x2e, 0x72, 0x65,
+	0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x45, 0x6e,
+	0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x19, 0x2e, 0x72, 0x65,
+	0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65,
+	0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x12, 0x65, 0x6e, 0x74, 0x41, 0x63, 0x63,
+	0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x12, 0x1e, 0x2e, 0x72,
+	0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x45,
+	0x6e, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x19, 0x2e, 0x72,
+	0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52,
+	0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x12, 0x5a, 0x10, 0x72, 0x65, 0x73, 0x6f, 0x75,
+	0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x62, 0x06, 0x70, 0x72, 0x6f,
+	0x74, 0x6f, 0x33,
 }
 
 var (