1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.27.1
- // protoc v3.20.0--rc2
- // source: resource.proto
- package pb
- import (
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
- )
- const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
- )
- type Empower struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- EntUserId int64 `protobuf:"varint,1,opt,name=ent_user_id,json=entUserId,proto3" json:"ent_user_id,omitempty"` //企业用户id
- }
- func (x *Empower) Reset() {
- *x = Empower{}
- if protoimpl.UnsafeEnabled {
- mi := &file_resource_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Empower) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Empower) ProtoMessage() {}
- func (x *Empower) ProtoReflect() protoreflect.Message {
- mi := &file_resource_proto_msgTypes[0]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Empower.ProtoReflect.Descriptor instead.
- func (*Empower) Descriptor() ([]byte, []int) {
- return file_resource_proto_rawDescGZIP(), []int{0}
- }
- func (x *Empower) GetEntUserId() int64 {
- if x != nil {
- return x.EntUserId
- }
- return 0
- }
- type PowerReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Appid string `protobuf:"bytes,1,opt,name=appid,proto3" json:"appid,omitempty"`
- GoodsCode string `protobuf:"bytes,2,opt,name=goods_code,json=goodsCode,proto3" json:"goods_code,omitempty"` //商品代码
- GoodsSpecId int64 `protobuf:"varint,3,opt,name=goods_spec_id,json=goodsSpecId,proto3" json:"goods_spec_id,omitempty"` //商品规格id
- EntId int64 `protobuf:"varint,4,opt,name=ent_id,json=entId,proto3" json:"ent_id,omitempty"` //企业id
- AccountId int64 `protobuf:"varint,5,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` //账户id
- BuyNum int64 `protobuf:"varint,6,opt,name=buy_num,json=buyNum,proto3" json:"buy_num,omitempty"` //购买的数量或者购买的份数
- Type int64 `protobuf:"varint,7,opt,name=type,proto3" json:"type,omitempty"` //操作类型 1:开通权益 -1:取消权益
- StartTime string `protobuf:"bytes,8,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` //权益开始时间 格式:2006-01-02 15:04:05
- EndTime string `protobuf:"bytes,9,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` //权益到期时间 格式:2006-01-02 15:04:05
- }
- func (x *PowerReq) Reset() {
- *x = PowerReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_resource_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *PowerReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*PowerReq) ProtoMessage() {}
- func (x *PowerReq) ProtoReflect() protoreflect.Message {
- mi := &file_resource_proto_msgTypes[1]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use PowerReq.ProtoReflect.Descriptor instead.
- func (*PowerReq) Descriptor() ([]byte, []int) {
- return file_resource_proto_rawDescGZIP(), []int{1}
- }
- func (x *PowerReq) GetAppid() string {
- if x != nil {
- return x.Appid
- }
- return ""
- }
- func (x *PowerReq) GetGoodsCode() string {
- if x != nil {
- return x.GoodsCode
- }
- return ""
- }
- func (x *PowerReq) GetGoodsSpecId() int64 {
- if x != nil {
- return x.GoodsSpecId
- }
- return 0
- }
- func (x *PowerReq) GetEntId() int64 {
- if x != nil {
- return x.EntId
- }
- return 0
- }
- func (x *PowerReq) GetAccountId() int64 {
- if x != nil {
- return x.AccountId
- }
- return 0
- }
- func (x *PowerReq) GetBuyNum() int64 {
- if x != nil {
- return x.BuyNum
- }
- return 0
- }
- func (x *PowerReq) GetType() int64 {
- if x != nil {
- return x.Type
- }
- return 0
- }
- func (x *PowerReq) GetStartTime() string {
- if x != nil {
- return x.StartTime
- }
- return ""
- }
- func (x *PowerReq) GetEndTime() string {
- if x != nil {
- return x.EndTime
- }
- return ""
- }
- type CheckPowerReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Appid string `protobuf:"bytes,1,opt,name=appid,proto3" json:"appid,omitempty"`
- FunctionCode string `protobuf:"bytes,2,opt,name=function_code,json=functionCode,proto3" json:"function_code,omitempty"` //功能代码
- AccountId int64 `protobuf:"varint,3,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` //账户id
- EntAccountId int64 `protobuf:"varint,4,opt,name=ent_account_id,json=entAccountId,proto3" json:"ent_account_id,omitempty"` //企业账户id
- EntId int64 `protobuf:"varint,5,opt,name=ent_id,json=entId,proto3" json:"ent_id,omitempty"` //企业id
- EntUserId int64 `protobuf:"varint,6,opt,name=ent_user_id,json=entUserId,proto3" json:"ent_user_id,omitempty"` //企业用户id
- }
- func (x *CheckPowerReq) Reset() {
- *x = CheckPowerReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_resource_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *CheckPowerReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*CheckPowerReq) ProtoMessage() {}
- func (x *CheckPowerReq) ProtoReflect() protoreflect.Message {
- mi := &file_resource_proto_msgTypes[2]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use CheckPowerReq.ProtoReflect.Descriptor instead.
- func (*CheckPowerReq) Descriptor() ([]byte, []int) {
- return file_resource_proto_rawDescGZIP(), []int{2}
- }
- func (x *CheckPowerReq) GetAppid() string {
- if x != nil {
- return x.Appid
- }
- return ""
- }
- func (x *CheckPowerReq) GetFunctionCode() string {
- if x != nil {
- return x.FunctionCode
- }
- return ""
- }
- func (x *CheckPowerReq) GetAccountId() int64 {
- if x != nil {
- return x.AccountId
- }
- return 0
- }
- func (x *CheckPowerReq) GetEntAccountId() int64 {
- if x != nil {
- return x.EntAccountId
- }
- return 0
- }
- func (x *CheckPowerReq) GetEntId() int64 {
- if x != nil {
- return x.EntId
- }
- return 0
- }
- func (x *CheckPowerReq) GetEntUserId() int64 {
- if x != nil {
- return x.EntUserId
- }
- return 0
- }
- type DeductionReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Appid string `protobuf:"bytes,1,opt,name=appid,proto3" json:"appid,omitempty"`
- FunctionCode string `protobuf:"bytes,2,opt,name=function_code,json=functionCode,proto3" json:"function_code,omitempty"` //功能代码
- EntId int64 `protobuf:"varint,3,opt,name=ent_id,json=entId,proto3" json:"ent_id,omitempty"` //企业id
- AccountId int64 `protobuf:"varint,4,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` //账户id
- EntAccountId int64 `protobuf:"varint,5,opt,name=ent_account_id,json=entAccountId,proto3" json:"ent_account_id,omitempty"` //企业账户id
- Count int64 `protobuf:"varint,6,opt,name=count,proto3" json:"count,omitempty"` //扣除数量
- Ids []string `protobuf:"bytes,7,rep,name=ids,proto3" json:"ids,omitempty"` //id列表
- }
- func (x *DeductionReq) Reset() {
- *x = DeductionReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_resource_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *DeductionReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*DeductionReq) ProtoMessage() {}
- func (x *DeductionReq) ProtoReflect() protoreflect.Message {
- mi := &file_resource_proto_msgTypes[3]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use DeductionReq.ProtoReflect.Descriptor instead.
- func (*DeductionReq) Descriptor() ([]byte, []int) {
- return file_resource_proto_rawDescGZIP(), []int{3}
- }
- func (x *DeductionReq) GetAppid() string {
- if x != nil {
- return x.Appid
- }
- return ""
- }
- func (x *DeductionReq) GetFunctionCode() string {
- if x != nil {
- return x.FunctionCode
- }
- return ""
- }
- func (x *DeductionReq) GetEntId() int64 {
- if x != nil {
- return x.EntId
- }
- return 0
- }
- func (x *DeductionReq) GetAccountId() int64 {
- if x != nil {
- return x.AccountId
- }
- return 0
- }
- func (x *DeductionReq) GetEntAccountId() int64 {
- if x != nil {
- return x.EntAccountId
- }
- return 0
- }
- func (x *DeductionReq) GetCount() int64 {
- if x != nil {
- return x.Count
- }
- return 0
- }
- func (x *DeductionReq) GetIds() []string {
- if x != nil {
- return x.Ids
- }
- return nil
- }
- type RechargeReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Appid string `protobuf:"bytes,1,opt,name=appid,proto3" json:"appid,omitempty"`
- FunctionCode string `protobuf:"bytes,2,opt,name=function_code,json=functionCode,proto3" json:"function_code,omitempty"` //功能代码
- EntId int64 `protobuf:"varint,3,opt,name=ent_id,json=entId,proto3" json:"ent_id,omitempty"` //企业id
- AccountId int64 `protobuf:"varint,4,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` //账户id
- EntAccountId int64 `protobuf:"varint,5,opt,name=ent_account_id,json=entAccountId,proto3" json:"ent_account_id,omitempty"` //企业账户id
- Count int64 `protobuf:"varint,6,opt,name=count,proto3" json:"count,omitempty"` //充值数量
- Ids []string `protobuf:"bytes,7,rep,name=ids,proto3" json:"ids,omitempty"` //id列表
- }
- func (x *RechargeReq) Reset() {
- *x = RechargeReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_resource_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *RechargeReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*RechargeReq) ProtoMessage() {}
- func (x *RechargeReq) ProtoReflect() protoreflect.Message {
- mi := &file_resource_proto_msgTypes[4]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use RechargeReq.ProtoReflect.Descriptor instead.
- func (*RechargeReq) Descriptor() ([]byte, []int) {
- return file_resource_proto_rawDescGZIP(), []int{4}
- }
- func (x *RechargeReq) GetAppid() string {
- if x != nil {
- return x.Appid
- }
- return ""
- }
- func (x *RechargeReq) GetFunctionCode() string {
- if x != nil {
- return x.FunctionCode
- }
- return ""
- }
- func (x *RechargeReq) GetEntId() int64 {
- if x != nil {
- return x.EntId
- }
- return 0
- }
- func (x *RechargeReq) GetAccountId() int64 {
- if x != nil {
- return x.AccountId
- }
- return 0
- }
- func (x *RechargeReq) GetEntAccountId() int64 {
- if x != nil {
- return x.EntAccountId
- }
- return 0
- }
- func (x *RechargeReq) GetCount() int64 {
- if x != nil {
- return x.Count
- }
- return 0
- }
- func (x *RechargeReq) GetIds() []string {
- if x != nil {
- return x.Ids
- }
- return nil
- }
- type EmpowerReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Appid string `protobuf:"bytes,1,opt,name=appid,proto3" json:"appid,omitempty"`
- FunctionCode string `protobuf:"bytes,2,opt,name=function_code,json=functionCode,proto3" json:"function_code,omitempty"` //功能代码
- EntId int64 `protobuf:"varint,3,opt,name=ent_id,json=entId,proto3" json:"ent_id,omitempty"` //企业id
- EntUserId []int64 `protobuf:"varint,4,rep,packed,name=ent_user_id,json=entUserId,proto3" json:"ent_user_id,omitempty"` //企业用户id
- }
- func (x *EmpowerReq) Reset() {
- *x = EmpowerReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_resource_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *EmpowerReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*EmpowerReq) ProtoMessage() {}
- func (x *EmpowerReq) ProtoReflect() protoreflect.Message {
- mi := &file_resource_proto_msgTypes[5]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use EmpowerReq.ProtoReflect.Descriptor instead.
- func (*EmpowerReq) Descriptor() ([]byte, []int) {
- return file_resource_proto_rawDescGZIP(), []int{5}
- }
- func (x *EmpowerReq) GetAppid() string {
- if x != nil {
- return x.Appid
- }
- return ""
- }
- func (x *EmpowerReq) GetFunctionCode() string {
- if x != nil {
- return x.FunctionCode
- }
- return ""
- }
- func (x *EmpowerReq) GetEntId() int64 {
- if x != nil {
- return x.EntId
- }
- return 0
- }
- func (x *EmpowerReq) GetEntUserId() []int64 {
- if x != nil {
- return x.EntUserId
- }
- return nil
- }
- type EmpowerListReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Appid string `protobuf:"bytes,1,opt,name=appid,proto3" json:"appid,omitempty"`
- FunctionCode string `protobuf:"bytes,2,opt,name=function_code,json=functionCode,proto3" json:"function_code,omitempty"` //功能代码
- EntId int64 `protobuf:"varint,3,opt,name=ent_id,json=entId,proto3" json:"ent_id,omitempty"` //企业id
- PageNum int64 `protobuf:"varint,4,opt,name=page_num,json=pageNum,proto3" json:"page_num,omitempty"` //开始页码,小于1的话,返回所有数据,不进行分页
- PageSize int64 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` //每页大小
- }
- func (x *EmpowerListReq) Reset() {
- *x = EmpowerListReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_resource_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *EmpowerListReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*EmpowerListReq) ProtoMessage() {}
- func (x *EmpowerListReq) ProtoReflect() protoreflect.Message {
- mi := &file_resource_proto_msgTypes[6]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use EmpowerListReq.ProtoReflect.Descriptor instead.
- func (*EmpowerListReq) Descriptor() ([]byte, []int) {
- return file_resource_proto_rawDescGZIP(), []int{6}
- }
- func (x *EmpowerListReq) GetAppid() string {
- if x != nil {
- return x.Appid
- }
- return ""
- }
- func (x *EmpowerListReq) GetFunctionCode() string {
- if x != nil {
- return x.FunctionCode
- }
- return ""
- }
- func (x *EmpowerListReq) GetEntId() int64 {
- if x != nil {
- return x.EntId
- }
- return 0
- }
- func (x *EmpowerListReq) GetPageNum() int64 {
- if x != nil {
- return x.PageNum
- }
- return 0
- }
- func (x *EmpowerListReq) GetPageSize() int64 {
- if x != nil {
- return x.PageSize
- }
- return 0
- }
- type EmpowerListResp struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` //总条数,只有第一页的时候才返回, 如果企业下所有人都有权限返回-1
- List []*Empower `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` //列表,如果企业下所有人都有权限,返回空数组
- }
- func (x *EmpowerListResp) Reset() {
- *x = EmpowerListResp{}
- if protoimpl.UnsafeEnabled {
- mi := &file_resource_proto_msgTypes[7]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *EmpowerListResp) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*EmpowerListResp) ProtoMessage() {}
- func (x *EmpowerListResp) ProtoReflect() protoreflect.Message {
- mi := &file_resource_proto_msgTypes[7]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use EmpowerListResp.ProtoReflect.Descriptor instead.
- func (*EmpowerListResp) Descriptor() ([]byte, []int) {
- return file_resource_proto_rawDescGZIP(), []int{7}
- }
- func (x *EmpowerListResp) GetCount() int64 {
- if x != nil {
- return x.Count
- }
- return 0
- }
- func (x *EmpowerListResp) GetList() []*Empower {
- if x != nil {
- return x.List
- }
- return nil
- }
- type Resp struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Status int64 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` //0:失败 1:成功 -1:不在有效期内 -2:数量不足 -3:没有授权 -4:超额
- UseCount int64 `protobuf:"varint,2,opt,name=use_count,json=useCount,proto3" json:"use_count,omitempty"` //使用数量
- SurplusCount int64 `protobuf:"varint,3,opt,name=surplus_count,json=surplusCount,proto3" json:"surplus_count,omitempty"` //剩余数量
- }
- func (x *Resp) Reset() {
- *x = Resp{}
- if protoimpl.UnsafeEnabled {
- mi := &file_resource_proto_msgTypes[8]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Resp) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Resp) ProtoMessage() {}
- func (x *Resp) ProtoReflect() protoreflect.Message {
- mi := &file_resource_proto_msgTypes[8]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Resp.ProtoReflect.Descriptor instead.
- func (*Resp) Descriptor() ([]byte, []int) {
- return file_resource_proto_rawDescGZIP(), []int{8}
- }
- func (x *Resp) GetStatus() int64 {
- if x != nil {
- return x.Status
- }
- return 0
- }
- func (x *Resp) GetUseCount() int64 {
- if x != nil {
- return x.UseCount
- }
- return 0
- }
- func (x *Resp) GetSurplusCount() int64 {
- if x != nil {
- return x.SurplusCount
- }
- return 0
- }
- type HaspowersReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Appid string `protobuf:"bytes,1,opt,name=appid,proto3" json:"appid,omitempty"`
- AccountId int64 `protobuf:"varint,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` //账户id
- EntAccountId int64 `protobuf:"varint,3,opt,name=ent_account_id,json=entAccountId,proto3" json:"ent_account_id,omitempty"` //企业账户id
- EntId int64 `protobuf:"varint,4,opt,name=ent_id,json=entId,proto3" json:"ent_id,omitempty"` //企业id
- EntUserId int64 `protobuf:"varint,5,opt,name=ent_user_id,json=entUserId,proto3" json:"ent_user_id,omitempty"` //企业用户id
- }
- func (x *HaspowersReq) Reset() {
- *x = HaspowersReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_resource_proto_msgTypes[9]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *HaspowersReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*HaspowersReq) ProtoMessage() {}
- func (x *HaspowersReq) ProtoReflect() protoreflect.Message {
- mi := &file_resource_proto_msgTypes[9]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use HaspowersReq.ProtoReflect.Descriptor instead.
- func (*HaspowersReq) Descriptor() ([]byte, []int) {
- return file_resource_proto_rawDescGZIP(), []int{9}
- }
- func (x *HaspowersReq) GetAppid() string {
- if x != nil {
- return x.Appid
- }
- return ""
- }
- func (x *HaspowersReq) GetAccountId() int64 {
- if x != nil {
- return x.AccountId
- }
- return 0
- }
- func (x *HaspowersReq) GetEntAccountId() int64 {
- if x != nil {
- return x.EntAccountId
- }
- return 0
- }
- func (x *HaspowersReq) GetEntId() int64 {
- if x != nil {
- return x.EntId
- }
- return 0
- }
- func (x *HaspowersReq) GetEntUserId() int64 {
- if x != nil {
- return x.EntUserId
- }
- return 0
- }
- type HaspowersResp struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Powers []string `protobuf:"bytes,1,rep,name=powers,proto3" json:"powers,omitempty"` //所有权益
- }
- func (x *HaspowersResp) Reset() {
- *x = HaspowersResp{}
- if protoimpl.UnsafeEnabled {
- mi := &file_resource_proto_msgTypes[10]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *HaspowersResp) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*HaspowersResp) ProtoMessage() {}
- func (x *HaspowersResp) ProtoReflect() protoreflect.Message {
- mi := &file_resource_proto_msgTypes[10]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use HaspowersResp.ProtoReflect.Descriptor instead.
- func (*HaspowersResp) Descriptor() ([]byte, []int) {
- return file_resource_proto_rawDescGZIP(), []int{10}
- }
- func (x *HaspowersResp) GetPowers() []string {
- if x != nil {
- return x.Powers
- }
- return nil
- }
- var File_resource_proto protoreflect.FileDescriptor
- var file_resource_proto_rawDesc = []byte{
- 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
- 0x22, 0x29, 0x0a, 0x07, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0b, 0x65,
- 0x6e, 0x74, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
- 0x52, 0x09, 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x80, 0x02, 0x0a, 0x08,
- 0x50, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69,
- 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x1d,
- 0x0a, 0x0a, 0x67, 0x6f, 0x6f, 0x64, 0x73, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x09, 0x67, 0x6f, 0x6f, 0x64, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x22, 0x0a,
- 0x0d, 0x67, 0x6f, 0x6f, 0x64, 0x73, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x03,
- 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x67, 0x6f, 0x6f, 0x64, 0x73, 0x53, 0x70, 0x65, 0x63, 0x49,
- 0x64, 0x12, 0x15, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28,
- 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x6f,
- 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x61, 0x63,
- 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x62, 0x75, 0x79, 0x5f, 0x6e,
- 0x75, 0x6d, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x62, 0x75, 0x79, 0x4e, 0x75, 0x6d,
- 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04,
- 0x74, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69,
- 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54,
- 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18,
- 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xc6,
- 0x01, 0x0a, 0x0d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71,
- 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69,
- 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x66,
- 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x61,
- 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52,
- 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x65, 0x6e,
- 0x74, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01,
- 0x28, 0x03, 0x52, 0x0c, 0x65, 0x6e, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64,
- 0x12, 0x15, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03,
- 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0b, 0x65, 0x6e, 0x74, 0x5f, 0x75,
- 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x6e,
- 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0xcd, 0x01, 0x0a, 0x0c, 0x44, 0x65, 0x64, 0x75,
- 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69,
- 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x23,
- 0x0a, 0x0d, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18,
- 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43,
- 0x6f, 0x64, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20,
- 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x63,
- 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09,
- 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x65, 0x6e, 0x74,
- 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28,
- 0x03, 0x52, 0x0c, 0x65, 0x6e, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12,
- 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05,
- 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x07, 0x20, 0x03,
- 0x28, 0x09, 0x52, 0x03, 0x69, 0x64, 0x73, 0x22, 0xcc, 0x01, 0x0a, 0x0b, 0x52, 0x65, 0x63, 0x68,
- 0x61, 0x72, 0x67, 0x65, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64,
- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x23, 0x0a,
- 0x0d, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f,
- 0x64, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01,
- 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x63, 0x63,
- 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x61,
- 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x65, 0x6e, 0x74, 0x5f,
- 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03,
- 0x52, 0x0c, 0x65, 0x6e, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x14,
- 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63,
- 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28,
- 0x09, 0x52, 0x03, 0x69, 0x64, 0x73, 0x22, 0x7e, 0x0a, 0x0a, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65,
- 0x72, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x01, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x75,
- 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x0c, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x12,
- 0x15, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52,
- 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0b, 0x65, 0x6e, 0x74, 0x5f, 0x75, 0x73,
- 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x03, 0x52, 0x09, 0x65, 0x6e, 0x74,
- 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x9a, 0x01, 0x0a, 0x0e, 0x45, 0x6d, 0x70, 0x6f, 0x77,
- 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70,
- 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12,
- 0x23, 0x0a, 0x0d, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65,
- 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e,
- 0x43, 0x6f, 0x64, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03,
- 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x70,
- 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x70,
- 0x61, 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73,
- 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53,
- 0x69, 0x7a, 0x65, 0x22, 0x45, 0x0a, 0x0f, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x4c, 0x69,
- 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18,
- 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x04,
- 0x6c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x45, 0x6d, 0x70,
- 0x6f, 0x77, 0x65, 0x72, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x22, 0x60, 0x0a, 0x04, 0x52, 0x65,
- 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01,
- 0x28, 0x03, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x73,
- 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x75,
- 0x73, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x75, 0x72, 0x70, 0x6c,
- 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c,
- 0x73, 0x75, 0x72, 0x70, 0x6c, 0x75, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xa0, 0x01, 0x0a,
- 0x0c, 0x48, 0x61, 0x73, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a,
- 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70,
- 0x70, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69,
- 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
- 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
- 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x65, 0x6e, 0x74, 0x41,
- 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x5f,
- 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12,
- 0x1e, 0x0a, 0x0b, 0x65, 0x6e, 0x74, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x05,
- 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22,
- 0x27, 0x0a, 0x0d, 0x48, 0x61, 0x73, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70,
- 0x12, 0x16, 0x0a, 0x06, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09,
- 0x52, 0x06, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x73, 0x32, 0xb8, 0x02, 0x0a, 0x08, 0x52, 0x65, 0x73,
- 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x48, 0x61,
- 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x09, 0x2e, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a,
- 0x05, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x23, 0x0a, 0x0a, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50,
- 0x6f, 0x77, 0x65, 0x72, 0x12, 0x0e, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x6f, 0x77, 0x65,
- 0x72, 0x52, 0x65, 0x71, 0x1a, 0x05, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x21, 0x0a, 0x09, 0x44,
- 0x65, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0d, 0x2e, 0x44, 0x65, 0x64, 0x75, 0x63,
- 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x05, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1f,
- 0x0a, 0x08, 0x52, 0x65, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x12, 0x0c, 0x2e, 0x52, 0x65, 0x63,
- 0x68, 0x61, 0x72, 0x67, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x05, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x12,
- 0x1f, 0x0a, 0x09, 0x52, 0x65, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x12, 0x0b, 0x2e, 0x45,
- 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x05, 0x2e, 0x52, 0x65, 0x73, 0x70,
- 0x12, 0x23, 0x0a, 0x0d, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65,
- 0x72, 0x12, 0x0b, 0x2e, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x05,
- 0x2e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x30, 0x0a, 0x0b, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72,
- 0x4c, 0x69, 0x73, 0x74, 0x12, 0x0f, 0x2e, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x4c, 0x69,
- 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x10, 0x2e, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x4c,
- 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2a, 0x0a, 0x09, 0x48, 0x61, 0x73, 0x70, 0x6f,
- 0x77, 0x65, 0x72, 0x73, 0x12, 0x0d, 0x2e, 0x48, 0x61, 0x73, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x73,
- 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x48, 0x61, 0x73, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x73, 0x52,
- 0x65, 0x73, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f,
- 0x74, 0x6f, 0x33,
- }
- var (
- file_resource_proto_rawDescOnce sync.Once
- file_resource_proto_rawDescData = file_resource_proto_rawDesc
- )
- func file_resource_proto_rawDescGZIP() []byte {
- file_resource_proto_rawDescOnce.Do(func() {
- file_resource_proto_rawDescData = protoimpl.X.CompressGZIP(file_resource_proto_rawDescData)
- })
- return file_resource_proto_rawDescData
- }
- var file_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
- var file_resource_proto_goTypes = []interface{}{
- (*Empower)(nil), // 0: Empower
- (*PowerReq)(nil), // 1: PowerReq
- (*CheckPowerReq)(nil), // 2: CheckPowerReq
- (*DeductionReq)(nil), // 3: DeductionReq
- (*RechargeReq)(nil), // 4: RechargeReq
- (*EmpowerReq)(nil), // 5: EmpowerReq
- (*EmpowerListReq)(nil), // 6: EmpowerListReq
- (*EmpowerListResp)(nil), // 7: EmpowerListResp
- (*Resp)(nil), // 8: Resp
- (*HaspowersReq)(nil), // 9: HaspowersReq
- (*HaspowersResp)(nil), // 10: HaspowersResp
- }
- var file_resource_proto_depIdxs = []int32{
- 0, // 0: EmpowerListResp.list:type_name -> Empower
- 1, // 1: Resource.PowerHandle:input_type -> PowerReq
- 2, // 2: Resource.CheckPower:input_type -> CheckPowerReq
- 3, // 3: Resource.Deduction:input_type -> DeductionReq
- 4, // 4: Resource.Recharge:input_type -> RechargeReq
- 5, // 5: Resource.ReEmpower:input_type -> EmpowerReq
- 5, // 6: Resource.CancelEmpower:input_type -> EmpowerReq
- 6, // 7: Resource.EmpowerList:input_type -> EmpowerListReq
- 9, // 8: Resource.Haspowers:input_type -> HaspowersReq
- 8, // 9: Resource.PowerHandle:output_type -> Resp
- 8, // 10: Resource.CheckPower:output_type -> Resp
- 8, // 11: Resource.Deduction:output_type -> Resp
- 8, // 12: Resource.Recharge:output_type -> Resp
- 8, // 13: Resource.ReEmpower:output_type -> Resp
- 8, // 14: Resource.CancelEmpower:output_type -> Resp
- 7, // 15: Resource.EmpowerList:output_type -> EmpowerListResp
- 10, // 16: Resource.Haspowers:output_type -> HaspowersResp
- 9, // [9:17] is the sub-list for method output_type
- 1, // [1:9] is the sub-list for method input_type
- 1, // [1:1] is the sub-list for extension type_name
- 1, // [1:1] is the sub-list for extension extendee
- 0, // [0:1] is the sub-list for field type_name
- }
- func init() { file_resource_proto_init() }
- func file_resource_proto_init() {
- if File_resource_proto != nil {
- return
- }
- if !protoimpl.UnsafeEnabled {
- file_resource_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Empower); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_resource_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*PowerReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_resource_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*CheckPowerReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_resource_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*DeductionReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_resource_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*RechargeReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_resource_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*EmpowerReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_resource_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*EmpowerListReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_resource_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*EmpowerListResp); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_resource_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Resp); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_resource_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*HaspowersReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_resource_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*HaspowersResp); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: file_resource_proto_rawDesc,
- NumEnums: 0,
- NumMessages: 11,
- NumExtensions: 0,
- NumServices: 1,
- },
- GoTypes: file_resource_proto_goTypes,
- DependencyIndexes: file_resource_proto_depIdxs,
- MessageInfos: file_resource_proto_msgTypes,
- }.Build()
- File_resource_proto = out.File
- file_resource_proto_rawDesc = nil
- file_resource_proto_goTypes = nil
- file_resource_proto_depIdxs = nil
- }
|