Documentation ¶
Index ¶
- func RegisterService(s giraffe_micro.Server, srv Service)
- type Client
- type CreateOrgRequest
- func (*CreateOrgRequest) Descriptor() ([]byte, []int)
- func (m *CreateOrgRequest) GetEdition() string
- func (m *CreateOrgRequest) GetExpiredDays() int32
- func (m *CreateOrgRequest) GetId() int32
- func (m *CreateOrgRequest) GetMemo() string
- func (m *CreateOrgRequest) GetName() string
- func (*CreateOrgRequest) ProtoMessage()
- func (m *CreateOrgRequest) Reset()
- func (m *CreateOrgRequest) String() string
- func (this *CreateOrgRequest) Validate() error
- func (m *CreateOrgRequest) XXX_DiscardUnknown()
- func (m *CreateOrgRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateOrgRequest) XXX_Merge(src proto.Message)
- func (m *CreateOrgRequest) XXX_Size() int
- func (m *CreateOrgRequest) XXX_Unmarshal(b []byte) error
- type CreateOrgResponse
- func (*CreateOrgResponse) Descriptor() ([]byte, []int)
- func (m *CreateOrgResponse) GetCreateAt() string
- func (m *CreateOrgResponse) GetExpires() int32
- func (m *CreateOrgResponse) GetId() int32
- func (m *CreateOrgResponse) GetMemo() string
- func (m *CreateOrgResponse) GetName() string
- func (m *CreateOrgResponse) GetTs() int32
- func (m *CreateOrgResponse) GetValid() bool
- func (*CreateOrgResponse) ProtoMessage()
- func (m *CreateOrgResponse) Reset()
- func (m *CreateOrgResponse) String() string
- func (this *CreateOrgResponse) Validate() error
- func (m *CreateOrgResponse) XXX_DiscardUnknown()
- func (m *CreateOrgResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateOrgResponse) XXX_Merge(src proto.Message)
- func (m *CreateOrgResponse) XXX_Size() int
- func (m *CreateOrgResponse) XXX_Unmarshal(b []byte) error
- type CreateOrgResponseWrapper
- func (*CreateOrgResponseWrapper) Descriptor() ([]byte, []int)
- func (m *CreateOrgResponseWrapper) GetCode() int32
- func (m *CreateOrgResponseWrapper) GetCodeExplain() string
- func (m *CreateOrgResponseWrapper) GetData() *CreateOrgResponse
- func (m *CreateOrgResponseWrapper) GetError() string
- func (*CreateOrgResponseWrapper) ProtoMessage()
- func (m *CreateOrgResponseWrapper) Reset()
- func (m *CreateOrgResponseWrapper) String() string
- func (this *CreateOrgResponseWrapper) Validate() error
- func (m *CreateOrgResponseWrapper) XXX_DiscardUnknown()
- func (m *CreateOrgResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateOrgResponseWrapper) XXX_Merge(src proto.Message)
- func (m *CreateOrgResponseWrapper) XXX_Size() int
- func (m *CreateOrgResponseWrapper) XXX_Unmarshal(b []byte) error
- type DisableOrgRequest
- func (*DisableOrgRequest) Descriptor() ([]byte, []int)
- func (m *DisableOrgRequest) GetId() string
- func (*DisableOrgRequest) ProtoMessage()
- func (m *DisableOrgRequest) Reset()
- func (m *DisableOrgRequest) String() string
- func (this *DisableOrgRequest) Validate() error
- func (m *DisableOrgRequest) XXX_DiscardUnknown()
- func (m *DisableOrgRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DisableOrgRequest) XXX_Merge(src proto.Message)
- func (m *DisableOrgRequest) XXX_Size() int
- func (m *DisableOrgRequest) XXX_Unmarshal(b []byte) error
- type DisableOrgResponseWrapper
- func (*DisableOrgResponseWrapper) Descriptor() ([]byte, []int)
- func (m *DisableOrgResponseWrapper) GetCode() int32
- func (m *DisableOrgResponseWrapper) GetCodeExplain() string
- func (m *DisableOrgResponseWrapper) GetData() *types.Empty
- func (m *DisableOrgResponseWrapper) GetError() string
- func (*DisableOrgResponseWrapper) ProtoMessage()
- func (m *DisableOrgResponseWrapper) Reset()
- func (m *DisableOrgResponseWrapper) String() string
- func (this *DisableOrgResponseWrapper) Validate() error
- func (m *DisableOrgResponseWrapper) XXX_DiscardUnknown()
- func (m *DisableOrgResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DisableOrgResponseWrapper) XXX_Merge(src proto.Message)
- func (m *DisableOrgResponseWrapper) XXX_Size() int
- func (m *DisableOrgResponseWrapper) XXX_Unmarshal(b []byte) error
- type EnableOrgRequest
- func (*EnableOrgRequest) Descriptor() ([]byte, []int)
- func (m *EnableOrgRequest) GetId() string
- func (*EnableOrgRequest) ProtoMessage()
- func (m *EnableOrgRequest) Reset()
- func (m *EnableOrgRequest) String() string
- func (this *EnableOrgRequest) Validate() error
- func (m *EnableOrgRequest) XXX_DiscardUnknown()
- func (m *EnableOrgRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EnableOrgRequest) XXX_Merge(src proto.Message)
- func (m *EnableOrgRequest) XXX_Size() int
- func (m *EnableOrgRequest) XXX_Unmarshal(b []byte) error
- type EnableOrgResponseWrapper
- func (*EnableOrgResponseWrapper) Descriptor() ([]byte, []int)
- func (m *EnableOrgResponseWrapper) GetCode() int32
- func (m *EnableOrgResponseWrapper) GetCodeExplain() string
- func (m *EnableOrgResponseWrapper) GetData() *types.Empty
- func (m *EnableOrgResponseWrapper) GetError() string
- func (*EnableOrgResponseWrapper) ProtoMessage()
- func (m *EnableOrgResponseWrapper) Reset()
- func (m *EnableOrgResponseWrapper) String() string
- func (this *EnableOrgResponseWrapper) Validate() error
- func (m *EnableOrgResponseWrapper) XXX_DiscardUnknown()
- func (m *EnableOrgResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EnableOrgResponseWrapper) XXX_Merge(src proto.Message)
- func (m *EnableOrgResponseWrapper) XXX_Size() int
- func (m *EnableOrgResponseWrapper) XXX_Unmarshal(b []byte) error
- type ListOrgResponse
- func (*ListOrgResponse) Descriptor() ([]byte, []int)
- func (m *ListOrgResponse) GetCode() int32
- func (m *ListOrgResponse) GetData() []*ListOrgResponse_Data
- func (m *ListOrgResponse) GetError() string
- func (m *ListOrgResponse) GetMessage() string
- func (*ListOrgResponse) ProtoMessage()
- func (m *ListOrgResponse) Reset()
- func (m *ListOrgResponse) String() string
- func (this *ListOrgResponse) Validate() error
- func (m *ListOrgResponse) XXX_DiscardUnknown()
- func (m *ListOrgResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListOrgResponse) XXX_Merge(src proto.Message)
- func (m *ListOrgResponse) XXX_Size() int
- func (m *ListOrgResponse) XXX_Unmarshal(b []byte) error
- type ListOrgResponseWrapper
- func (*ListOrgResponseWrapper) Descriptor() ([]byte, []int)
- func (m *ListOrgResponseWrapper) GetCode() int32
- func (m *ListOrgResponseWrapper) GetCodeExplain() string
- func (m *ListOrgResponseWrapper) GetData() *ListOrgResponse
- func (m *ListOrgResponseWrapper) GetError() string
- func (*ListOrgResponseWrapper) ProtoMessage()
- func (m *ListOrgResponseWrapper) Reset()
- func (m *ListOrgResponseWrapper) String() string
- func (this *ListOrgResponseWrapper) Validate() error
- func (m *ListOrgResponseWrapper) XXX_DiscardUnknown()
- func (m *ListOrgResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListOrgResponseWrapper) XXX_Merge(src proto.Message)
- func (m *ListOrgResponseWrapper) XXX_Size() int
- func (m *ListOrgResponseWrapper) XXX_Unmarshal(b []byte) error
- type ListOrgResponse_Data
- func (*ListOrgResponse_Data) Descriptor() ([]byte, []int)
- func (m *ListOrgResponse_Data) GetCreateAt() string
- func (m *ListOrgResponse_Data) GetExpires() int32
- func (m *ListOrgResponse_Data) GetId() int32
- func (m *ListOrgResponse_Data) GetMemo() string
- func (m *ListOrgResponse_Data) GetName() string
- func (m *ListOrgResponse_Data) GetTs() int32
- func (m *ListOrgResponse_Data) GetValid() bool
- func (*ListOrgResponse_Data) ProtoMessage()
- func (m *ListOrgResponse_Data) Reset()
- func (m *ListOrgResponse_Data) String() string
- func (this *ListOrgResponse_Data) Validate() error
- func (m *ListOrgResponse_Data) XXX_DiscardUnknown()
- func (m *ListOrgResponse_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListOrgResponse_Data) XXX_Merge(src proto.Message)
- func (m *ListOrgResponse_Data) XXX_Size() int
- func (m *ListOrgResponse_Data) XXX_Unmarshal(b []byte) error
- type Service
- type SetOrgExpiredDateRequest
- func (*SetOrgExpiredDateRequest) Descriptor() ([]byte, []int)
- func (m *SetOrgExpiredDateRequest) GetExpiredDate() string
- func (m *SetOrgExpiredDateRequest) GetId() string
- func (*SetOrgExpiredDateRequest) ProtoMessage()
- func (m *SetOrgExpiredDateRequest) Reset()
- func (m *SetOrgExpiredDateRequest) String() string
- func (this *SetOrgExpiredDateRequest) Validate() error
- func (m *SetOrgExpiredDateRequest) XXX_DiscardUnknown()
- func (m *SetOrgExpiredDateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SetOrgExpiredDateRequest) XXX_Merge(src proto.Message)
- func (m *SetOrgExpiredDateRequest) XXX_Size() int
- func (m *SetOrgExpiredDateRequest) XXX_Unmarshal(b []byte) error
- type SetOrgExpiredDateResponseWrapper
- func (*SetOrgExpiredDateResponseWrapper) Descriptor() ([]byte, []int)
- func (m *SetOrgExpiredDateResponseWrapper) GetCode() int32
- func (m *SetOrgExpiredDateResponseWrapper) GetCodeExplain() string
- func (m *SetOrgExpiredDateResponseWrapper) GetData() *types.Empty
- func (m *SetOrgExpiredDateResponseWrapper) GetError() string
- func (*SetOrgExpiredDateResponseWrapper) ProtoMessage()
- func (m *SetOrgExpiredDateResponseWrapper) Reset()
- func (m *SetOrgExpiredDateResponseWrapper) String() string
- func (this *SetOrgExpiredDateResponseWrapper) Validate() error
- func (m *SetOrgExpiredDateResponseWrapper) XXX_DiscardUnknown()
- func (m *SetOrgExpiredDateResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SetOrgExpiredDateResponseWrapper) XXX_Merge(src proto.Message)
- func (m *SetOrgExpiredDateResponseWrapper) XXX_Size() int
- func (m *SetOrgExpiredDateResponseWrapper) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterService ¶
func RegisterService(s giraffe_micro.Server, srv Service)
Types ¶
type Client ¶
type Client interface { CreateOrg(ctx context.Context, in *CreateOrgRequest) (*CreateOrgResponse, error) DisableOrg(ctx context.Context, in *DisableOrgRequest) (*types.Empty, error) EnableOrg(ctx context.Context, in *EnableOrgRequest) (*types.Empty, error) ListOrg(ctx context.Context, in *types.Empty) (*ListOrgResponse, error) SetOrgExpiredDate(ctx context.Context, in *SetOrgExpiredDateRequest) (*types.Empty, error) }
Client is the client API for organization service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewClient ¶
func NewClient(c giraffe_micro.Client) Client
type CreateOrgRequest ¶
type CreateOrgRequest struct { // //org Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id" form:"id"` // //过期日期 ExpiredDays int32 `protobuf:"varint,2,opt,name=expired_days,json=expiredDays,proto3" json:"expired_days" form:"expired_days"` // //名称 Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name" form:"name"` // //备注 Memo string `protobuf:"bytes,4,opt,name=memo,proto3" json:"memo" form:"memo"` // //版本类型 Edition string `protobuf:"bytes,5,opt,name=edition,proto3" json:"edition" form:"edition"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CreateOrg请求
func (*CreateOrgRequest) Descriptor ¶
func (*CreateOrgRequest) Descriptor() ([]byte, []int)
func (*CreateOrgRequest) GetEdition ¶
func (m *CreateOrgRequest) GetEdition() string
func (*CreateOrgRequest) GetExpiredDays ¶
func (m *CreateOrgRequest) GetExpiredDays() int32
func (*CreateOrgRequest) GetId ¶
func (m *CreateOrgRequest) GetId() int32
func (*CreateOrgRequest) GetMemo ¶
func (m *CreateOrgRequest) GetMemo() string
func (*CreateOrgRequest) GetName ¶
func (m *CreateOrgRequest) GetName() string
func (*CreateOrgRequest) ProtoMessage ¶
func (*CreateOrgRequest) ProtoMessage()
func (*CreateOrgRequest) Reset ¶
func (m *CreateOrgRequest) Reset()
func (*CreateOrgRequest) String ¶
func (m *CreateOrgRequest) String() string
func (*CreateOrgRequest) Validate ¶
func (this *CreateOrgRequest) Validate() error
func (*CreateOrgRequest) XXX_DiscardUnknown ¶
func (m *CreateOrgRequest) XXX_DiscardUnknown()
func (*CreateOrgRequest) XXX_Marshal ¶
func (m *CreateOrgRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateOrgRequest) XXX_Merge ¶
func (m *CreateOrgRequest) XXX_Merge(src proto.Message)
func (*CreateOrgRequest) XXX_Size ¶
func (m *CreateOrgRequest) XXX_Size() int
func (*CreateOrgRequest) XXX_Unmarshal ¶
func (m *CreateOrgRequest) XXX_Unmarshal(b []byte) error
type CreateOrgResponse ¶
type CreateOrgResponse struct { // //org Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id" form:"id"` // //过期时间戳 Expires int32 `protobuf:"varint,2,opt,name=expires,proto3" json:"expires" form:"expires"` // //创建日期 CreateAt string `protobuf:"bytes,3,opt,name=createAt,proto3" json:"createAt" form:"createAt"` // //是否可用 Valid bool `protobuf:"varint,4,opt,name=valid,proto3" json:"valid" form:"valid"` // //更新事件戳 Ts int32 `protobuf:"varint,5,opt,name=ts,proto3" json:"ts" form:"ts"` // //名称 Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name" form:"name"` // //备注 Memo string `protobuf:"bytes,7,opt,name=memo,proto3" json:"memo" form:"memo"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CreateOrg返回
func (*CreateOrgResponse) Descriptor ¶
func (*CreateOrgResponse) Descriptor() ([]byte, []int)
func (*CreateOrgResponse) GetCreateAt ¶
func (m *CreateOrgResponse) GetCreateAt() string
func (*CreateOrgResponse) GetExpires ¶
func (m *CreateOrgResponse) GetExpires() int32
func (*CreateOrgResponse) GetId ¶
func (m *CreateOrgResponse) GetId() int32
func (*CreateOrgResponse) GetMemo ¶
func (m *CreateOrgResponse) GetMemo() string
func (*CreateOrgResponse) GetName ¶
func (m *CreateOrgResponse) GetName() string
func (*CreateOrgResponse) GetTs ¶
func (m *CreateOrgResponse) GetTs() int32
func (*CreateOrgResponse) GetValid ¶
func (m *CreateOrgResponse) GetValid() bool
func (*CreateOrgResponse) ProtoMessage ¶
func (*CreateOrgResponse) ProtoMessage()
func (*CreateOrgResponse) Reset ¶
func (m *CreateOrgResponse) Reset()
func (*CreateOrgResponse) String ¶
func (m *CreateOrgResponse) String() string
func (*CreateOrgResponse) Validate ¶
func (this *CreateOrgResponse) Validate() error
func (*CreateOrgResponse) XXX_DiscardUnknown ¶
func (m *CreateOrgResponse) XXX_DiscardUnknown()
func (*CreateOrgResponse) XXX_Marshal ¶
func (m *CreateOrgResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateOrgResponse) XXX_Merge ¶
func (m *CreateOrgResponse) XXX_Merge(src proto.Message)
func (*CreateOrgResponse) XXX_Size ¶
func (m *CreateOrgResponse) XXX_Size() int
func (*CreateOrgResponse) XXX_Unmarshal ¶
func (m *CreateOrgResponse) XXX_Unmarshal(b []byte) error
type CreateOrgResponseWrapper ¶
type CreateOrgResponseWrapper struct { // //返回码 Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"` // //返回码解释 CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"` // //错误详情 Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"` // //返回数据 Data *CreateOrgResponse `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CreateOrgApi返回
func (*CreateOrgResponseWrapper) Descriptor ¶
func (*CreateOrgResponseWrapper) Descriptor() ([]byte, []int)
func (*CreateOrgResponseWrapper) GetCode ¶
func (m *CreateOrgResponseWrapper) GetCode() int32
func (*CreateOrgResponseWrapper) GetCodeExplain ¶
func (m *CreateOrgResponseWrapper) GetCodeExplain() string
func (*CreateOrgResponseWrapper) GetData ¶
func (m *CreateOrgResponseWrapper) GetData() *CreateOrgResponse
func (*CreateOrgResponseWrapper) GetError ¶
func (m *CreateOrgResponseWrapper) GetError() string
func (*CreateOrgResponseWrapper) ProtoMessage ¶
func (*CreateOrgResponseWrapper) ProtoMessage()
func (*CreateOrgResponseWrapper) Reset ¶
func (m *CreateOrgResponseWrapper) Reset()
func (*CreateOrgResponseWrapper) String ¶
func (m *CreateOrgResponseWrapper) String() string
func (*CreateOrgResponseWrapper) Validate ¶
func (this *CreateOrgResponseWrapper) Validate() error
func (*CreateOrgResponseWrapper) XXX_DiscardUnknown ¶
func (m *CreateOrgResponseWrapper) XXX_DiscardUnknown()
func (*CreateOrgResponseWrapper) XXX_Marshal ¶
func (m *CreateOrgResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateOrgResponseWrapper) XXX_Merge ¶
func (m *CreateOrgResponseWrapper) XXX_Merge(src proto.Message)
func (*CreateOrgResponseWrapper) XXX_Size ¶
func (m *CreateOrgResponseWrapper) XXX_Size() int
func (*CreateOrgResponseWrapper) XXX_Unmarshal ¶
func (m *CreateOrgResponseWrapper) XXX_Unmarshal(b []byte) error
type DisableOrgRequest ¶
type DisableOrgRequest struct { // //org Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" form:"id"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
DisableOrg请求
func (*DisableOrgRequest) Descriptor ¶
func (*DisableOrgRequest) Descriptor() ([]byte, []int)
func (*DisableOrgRequest) GetId ¶
func (m *DisableOrgRequest) GetId() string
func (*DisableOrgRequest) ProtoMessage ¶
func (*DisableOrgRequest) ProtoMessage()
func (*DisableOrgRequest) Reset ¶
func (m *DisableOrgRequest) Reset()
func (*DisableOrgRequest) String ¶
func (m *DisableOrgRequest) String() string
func (*DisableOrgRequest) Validate ¶
func (this *DisableOrgRequest) Validate() error
func (*DisableOrgRequest) XXX_DiscardUnknown ¶
func (m *DisableOrgRequest) XXX_DiscardUnknown()
func (*DisableOrgRequest) XXX_Marshal ¶
func (m *DisableOrgRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DisableOrgRequest) XXX_Merge ¶
func (m *DisableOrgRequest) XXX_Merge(src proto.Message)
func (*DisableOrgRequest) XXX_Size ¶
func (m *DisableOrgRequest) XXX_Size() int
func (*DisableOrgRequest) XXX_Unmarshal ¶
func (m *DisableOrgRequest) XXX_Unmarshal(b []byte) error
type DisableOrgResponseWrapper ¶
type DisableOrgResponseWrapper struct { // //返回码 Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"` // //返回码解释 CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"` // //错误详情 Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"` // //返回数据 Data *types.Empty `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
DisableOrgApi返回
func (*DisableOrgResponseWrapper) Descriptor ¶
func (*DisableOrgResponseWrapper) Descriptor() ([]byte, []int)
func (*DisableOrgResponseWrapper) GetCode ¶
func (m *DisableOrgResponseWrapper) GetCode() int32
func (*DisableOrgResponseWrapper) GetCodeExplain ¶
func (m *DisableOrgResponseWrapper) GetCodeExplain() string
func (*DisableOrgResponseWrapper) GetData ¶
func (m *DisableOrgResponseWrapper) GetData() *types.Empty
func (*DisableOrgResponseWrapper) GetError ¶
func (m *DisableOrgResponseWrapper) GetError() string
func (*DisableOrgResponseWrapper) ProtoMessage ¶
func (*DisableOrgResponseWrapper) ProtoMessage()
func (*DisableOrgResponseWrapper) Reset ¶
func (m *DisableOrgResponseWrapper) Reset()
func (*DisableOrgResponseWrapper) String ¶
func (m *DisableOrgResponseWrapper) String() string
func (*DisableOrgResponseWrapper) Validate ¶
func (this *DisableOrgResponseWrapper) Validate() error
func (*DisableOrgResponseWrapper) XXX_DiscardUnknown ¶
func (m *DisableOrgResponseWrapper) XXX_DiscardUnknown()
func (*DisableOrgResponseWrapper) XXX_Marshal ¶
func (m *DisableOrgResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DisableOrgResponseWrapper) XXX_Merge ¶
func (m *DisableOrgResponseWrapper) XXX_Merge(src proto.Message)
func (*DisableOrgResponseWrapper) XXX_Size ¶
func (m *DisableOrgResponseWrapper) XXX_Size() int
func (*DisableOrgResponseWrapper) XXX_Unmarshal ¶
func (m *DisableOrgResponseWrapper) XXX_Unmarshal(b []byte) error
type EnableOrgRequest ¶
type EnableOrgRequest struct { // //org Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" form:"id"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
EnableOrg请求
func (*EnableOrgRequest) Descriptor ¶
func (*EnableOrgRequest) Descriptor() ([]byte, []int)
func (*EnableOrgRequest) GetId ¶
func (m *EnableOrgRequest) GetId() string
func (*EnableOrgRequest) ProtoMessage ¶
func (*EnableOrgRequest) ProtoMessage()
func (*EnableOrgRequest) Reset ¶
func (m *EnableOrgRequest) Reset()
func (*EnableOrgRequest) String ¶
func (m *EnableOrgRequest) String() string
func (*EnableOrgRequest) Validate ¶
func (this *EnableOrgRequest) Validate() error
func (*EnableOrgRequest) XXX_DiscardUnknown ¶
func (m *EnableOrgRequest) XXX_DiscardUnknown()
func (*EnableOrgRequest) XXX_Marshal ¶
func (m *EnableOrgRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EnableOrgRequest) XXX_Merge ¶
func (m *EnableOrgRequest) XXX_Merge(src proto.Message)
func (*EnableOrgRequest) XXX_Size ¶
func (m *EnableOrgRequest) XXX_Size() int
func (*EnableOrgRequest) XXX_Unmarshal ¶
func (m *EnableOrgRequest) XXX_Unmarshal(b []byte) error
type EnableOrgResponseWrapper ¶
type EnableOrgResponseWrapper struct { // //返回码 Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"` // //返回码解释 CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"` // //错误详情 Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"` // //返回数据 Data *types.Empty `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
EnableOrgApi返回
func (*EnableOrgResponseWrapper) Descriptor ¶
func (*EnableOrgResponseWrapper) Descriptor() ([]byte, []int)
func (*EnableOrgResponseWrapper) GetCode ¶
func (m *EnableOrgResponseWrapper) GetCode() int32
func (*EnableOrgResponseWrapper) GetCodeExplain ¶
func (m *EnableOrgResponseWrapper) GetCodeExplain() string
func (*EnableOrgResponseWrapper) GetData ¶
func (m *EnableOrgResponseWrapper) GetData() *types.Empty
func (*EnableOrgResponseWrapper) GetError ¶
func (m *EnableOrgResponseWrapper) GetError() string
func (*EnableOrgResponseWrapper) ProtoMessage ¶
func (*EnableOrgResponseWrapper) ProtoMessage()
func (*EnableOrgResponseWrapper) Reset ¶
func (m *EnableOrgResponseWrapper) Reset()
func (*EnableOrgResponseWrapper) String ¶
func (m *EnableOrgResponseWrapper) String() string
func (*EnableOrgResponseWrapper) Validate ¶
func (this *EnableOrgResponseWrapper) Validate() error
func (*EnableOrgResponseWrapper) XXX_DiscardUnknown ¶
func (m *EnableOrgResponseWrapper) XXX_DiscardUnknown()
func (*EnableOrgResponseWrapper) XXX_Marshal ¶
func (m *EnableOrgResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EnableOrgResponseWrapper) XXX_Merge ¶
func (m *EnableOrgResponseWrapper) XXX_Merge(src proto.Message)
func (*EnableOrgResponseWrapper) XXX_Size ¶
func (m *EnableOrgResponseWrapper) XXX_Size() int
func (*EnableOrgResponseWrapper) XXX_Unmarshal ¶
func (m *EnableOrgResponseWrapper) XXX_Unmarshal(b []byte) error
type ListOrgResponse ¶
type ListOrgResponse struct { // //返回码 Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"` // //错误信息 Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error" form:"error"` // //返回消息 Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message" form:"message"` // //org列表 Data []*ListOrgResponse_Data `protobuf:"bytes,4,rep,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ListOrg返回
func (*ListOrgResponse) Descriptor ¶
func (*ListOrgResponse) Descriptor() ([]byte, []int)
func (*ListOrgResponse) GetCode ¶
func (m *ListOrgResponse) GetCode() int32
func (*ListOrgResponse) GetData ¶
func (m *ListOrgResponse) GetData() []*ListOrgResponse_Data
func (*ListOrgResponse) GetError ¶
func (m *ListOrgResponse) GetError() string
func (*ListOrgResponse) GetMessage ¶
func (m *ListOrgResponse) GetMessage() string
func (*ListOrgResponse) ProtoMessage ¶
func (*ListOrgResponse) ProtoMessage()
func (*ListOrgResponse) Reset ¶
func (m *ListOrgResponse) Reset()
func (*ListOrgResponse) String ¶
func (m *ListOrgResponse) String() string
func (*ListOrgResponse) Validate ¶
func (this *ListOrgResponse) Validate() error
func (*ListOrgResponse) XXX_DiscardUnknown ¶
func (m *ListOrgResponse) XXX_DiscardUnknown()
func (*ListOrgResponse) XXX_Marshal ¶
func (m *ListOrgResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListOrgResponse) XXX_Merge ¶
func (m *ListOrgResponse) XXX_Merge(src proto.Message)
func (*ListOrgResponse) XXX_Size ¶
func (m *ListOrgResponse) XXX_Size() int
func (*ListOrgResponse) XXX_Unmarshal ¶
func (m *ListOrgResponse) XXX_Unmarshal(b []byte) error
type ListOrgResponseWrapper ¶
type ListOrgResponseWrapper struct { // //返回码 Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"` // //返回码解释 CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"` // //错误详情 Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"` // //返回数据 Data *ListOrgResponse `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ListOrgApi返回
func (*ListOrgResponseWrapper) Descriptor ¶
func (*ListOrgResponseWrapper) Descriptor() ([]byte, []int)
func (*ListOrgResponseWrapper) GetCode ¶
func (m *ListOrgResponseWrapper) GetCode() int32
func (*ListOrgResponseWrapper) GetCodeExplain ¶
func (m *ListOrgResponseWrapper) GetCodeExplain() string
func (*ListOrgResponseWrapper) GetData ¶
func (m *ListOrgResponseWrapper) GetData() *ListOrgResponse
func (*ListOrgResponseWrapper) GetError ¶
func (m *ListOrgResponseWrapper) GetError() string
func (*ListOrgResponseWrapper) ProtoMessage ¶
func (*ListOrgResponseWrapper) ProtoMessage()
func (*ListOrgResponseWrapper) Reset ¶
func (m *ListOrgResponseWrapper) Reset()
func (*ListOrgResponseWrapper) String ¶
func (m *ListOrgResponseWrapper) String() string
func (*ListOrgResponseWrapper) Validate ¶
func (this *ListOrgResponseWrapper) Validate() error
func (*ListOrgResponseWrapper) XXX_DiscardUnknown ¶
func (m *ListOrgResponseWrapper) XXX_DiscardUnknown()
func (*ListOrgResponseWrapper) XXX_Marshal ¶
func (m *ListOrgResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListOrgResponseWrapper) XXX_Merge ¶
func (m *ListOrgResponseWrapper) XXX_Merge(src proto.Message)
func (*ListOrgResponseWrapper) XXX_Size ¶
func (m *ListOrgResponseWrapper) XXX_Size() int
func (*ListOrgResponseWrapper) XXX_Unmarshal ¶
func (m *ListOrgResponseWrapper) XXX_Unmarshal(b []byte) error
type ListOrgResponse_Data ¶
type ListOrgResponse_Data struct { // //创建时间 CreateAt string `protobuf:"bytes,1,opt,name=createAt,proto3" json:"createAt" form:"createAt"` // //orgid Id int32 `protobuf:"varint,2,opt,name=id,proto3" json:"id" form:"id"` // //memo Memo string `protobuf:"bytes,3,opt,name=memo,proto3" json:"memo" form:"memo"` // //name Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name" form:"name"` // //ts Ts int32 `protobuf:"varint,5,opt,name=ts,proto3" json:"ts" form:"ts"` // //是否合法 Valid bool `protobuf:"varint,6,opt,name=valid,proto3" json:"valid" form:"valid"` // //expires Expires int32 `protobuf:"varint,7,opt,name=expires,proto3" json:"expires" form:"expires"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListOrgResponse_Data) Descriptor ¶
func (*ListOrgResponse_Data) Descriptor() ([]byte, []int)
func (*ListOrgResponse_Data) GetCreateAt ¶
func (m *ListOrgResponse_Data) GetCreateAt() string
func (*ListOrgResponse_Data) GetExpires ¶
func (m *ListOrgResponse_Data) GetExpires() int32
func (*ListOrgResponse_Data) GetId ¶
func (m *ListOrgResponse_Data) GetId() int32
func (*ListOrgResponse_Data) GetMemo ¶
func (m *ListOrgResponse_Data) GetMemo() string
func (*ListOrgResponse_Data) GetName ¶
func (m *ListOrgResponse_Data) GetName() string
func (*ListOrgResponse_Data) GetTs ¶
func (m *ListOrgResponse_Data) GetTs() int32
func (*ListOrgResponse_Data) GetValid ¶
func (m *ListOrgResponse_Data) GetValid() bool
func (*ListOrgResponse_Data) ProtoMessage ¶
func (*ListOrgResponse_Data) ProtoMessage()
func (*ListOrgResponse_Data) Reset ¶
func (m *ListOrgResponse_Data) Reset()
func (*ListOrgResponse_Data) String ¶
func (m *ListOrgResponse_Data) String() string
func (*ListOrgResponse_Data) Validate ¶
func (this *ListOrgResponse_Data) Validate() error
func (*ListOrgResponse_Data) XXX_DiscardUnknown ¶
func (m *ListOrgResponse_Data) XXX_DiscardUnknown()
func (*ListOrgResponse_Data) XXX_Marshal ¶
func (m *ListOrgResponse_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListOrgResponse_Data) XXX_Merge ¶
func (m *ListOrgResponse_Data) XXX_Merge(src proto.Message)
func (*ListOrgResponse_Data) XXX_Size ¶
func (m *ListOrgResponse_Data) XXX_Size() int
func (*ListOrgResponse_Data) XXX_Unmarshal ¶
func (m *ListOrgResponse_Data) XXX_Unmarshal(b []byte) error
type Service ¶
type Service interface { CreateOrg(context.Context, *CreateOrgRequest) (*CreateOrgResponse, error) DisableOrg(context.Context, *DisableOrgRequest) (*types.Empty, error) EnableOrg(context.Context, *EnableOrgRequest) (*types.Empty, error) ListOrg(context.Context, *types.Empty) (*ListOrgResponse, error) SetOrgExpiredDate(context.Context, *SetOrgExpiredDateRequest) (*types.Empty, error) }
Service is the server API for organization service.
type SetOrgExpiredDateRequest ¶
type SetOrgExpiredDateRequest struct { // //org Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" form:"id"` // //过期日期 ExpiredDate string `protobuf:"bytes,2,opt,name=expired_date,json=expiredDate,proto3" json:"expired_date" form:"expired_date"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
SetOrgExpiredDate请求
func (*SetOrgExpiredDateRequest) Descriptor ¶
func (*SetOrgExpiredDateRequest) Descriptor() ([]byte, []int)
func (*SetOrgExpiredDateRequest) GetExpiredDate ¶
func (m *SetOrgExpiredDateRequest) GetExpiredDate() string
func (*SetOrgExpiredDateRequest) GetId ¶
func (m *SetOrgExpiredDateRequest) GetId() string
func (*SetOrgExpiredDateRequest) ProtoMessage ¶
func (*SetOrgExpiredDateRequest) ProtoMessage()
func (*SetOrgExpiredDateRequest) Reset ¶
func (m *SetOrgExpiredDateRequest) Reset()
func (*SetOrgExpiredDateRequest) String ¶
func (m *SetOrgExpiredDateRequest) String() string
func (*SetOrgExpiredDateRequest) Validate ¶
func (this *SetOrgExpiredDateRequest) Validate() error
func (*SetOrgExpiredDateRequest) XXX_DiscardUnknown ¶
func (m *SetOrgExpiredDateRequest) XXX_DiscardUnknown()
func (*SetOrgExpiredDateRequest) XXX_Marshal ¶
func (m *SetOrgExpiredDateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SetOrgExpiredDateRequest) XXX_Merge ¶
func (m *SetOrgExpiredDateRequest) XXX_Merge(src proto.Message)
func (*SetOrgExpiredDateRequest) XXX_Size ¶
func (m *SetOrgExpiredDateRequest) XXX_Size() int
func (*SetOrgExpiredDateRequest) XXX_Unmarshal ¶
func (m *SetOrgExpiredDateRequest) XXX_Unmarshal(b []byte) error
type SetOrgExpiredDateResponseWrapper ¶
type SetOrgExpiredDateResponseWrapper struct { // //返回码 Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"` // //返回码解释 CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"` // //错误详情 Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"` // //返回数据 Data *types.Empty `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
SetOrgExpiredDateApi返回
func (*SetOrgExpiredDateResponseWrapper) Descriptor ¶
func (*SetOrgExpiredDateResponseWrapper) Descriptor() ([]byte, []int)
func (*SetOrgExpiredDateResponseWrapper) GetCode ¶
func (m *SetOrgExpiredDateResponseWrapper) GetCode() int32
func (*SetOrgExpiredDateResponseWrapper) GetCodeExplain ¶
func (m *SetOrgExpiredDateResponseWrapper) GetCodeExplain() string
func (*SetOrgExpiredDateResponseWrapper) GetData ¶
func (m *SetOrgExpiredDateResponseWrapper) GetData() *types.Empty
func (*SetOrgExpiredDateResponseWrapper) GetError ¶
func (m *SetOrgExpiredDateResponseWrapper) GetError() string
func (*SetOrgExpiredDateResponseWrapper) ProtoMessage ¶
func (*SetOrgExpiredDateResponseWrapper) ProtoMessage()
func (*SetOrgExpiredDateResponseWrapper) Reset ¶
func (m *SetOrgExpiredDateResponseWrapper) Reset()
func (*SetOrgExpiredDateResponseWrapper) String ¶
func (m *SetOrgExpiredDateResponseWrapper) String() string
func (*SetOrgExpiredDateResponseWrapper) Validate ¶
func (this *SetOrgExpiredDateResponseWrapper) Validate() error
func (*SetOrgExpiredDateResponseWrapper) XXX_DiscardUnknown ¶
func (m *SetOrgExpiredDateResponseWrapper) XXX_DiscardUnknown()
func (*SetOrgExpiredDateResponseWrapper) XXX_Marshal ¶
func (m *SetOrgExpiredDateResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SetOrgExpiredDateResponseWrapper) XXX_Merge ¶
func (m *SetOrgExpiredDateResponseWrapper) XXX_Merge(src proto.Message)
func (*SetOrgExpiredDateResponseWrapper) XXX_Size ¶
func (m *SetOrgExpiredDateResponseWrapper) XXX_Size() int
func (*SetOrgExpiredDateResponseWrapper) XXX_Unmarshal ¶
func (m *SetOrgExpiredDateResponseWrapper) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.