Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterToolServiceHTTPServer(s *http.Server, srv ToolServiceHTTPServer)
- type BatchCreateAccountsRequest
- type BatchCreateAccountsResponse
- type Metadata
- func (*Metadata) Descriptor() ([]byte, []int)deprecated
- func (x *Metadata) GetBizCode() int32
- func (x *Metadata) GetDomain() string
- func (x *Metadata) GetMessage() string
- func (x *Metadata) GetReason() []string
- func (*Metadata) ProtoMessage()
- func (x *Metadata) ProtoReflect() protoreflect.Message
- func (x *Metadata) Reset()
- func (x *Metadata) String() string
- type PaginationRequest
- func (*PaginationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PaginationRequest) GetPage() int32
- func (x *PaginationRequest) GetSize() int32
- func (x *PaginationRequest) GetSort() []*SortField
- func (*PaginationRequest) ProtoMessage()
- func (x *PaginationRequest) ProtoReflect() protoreflect.Message
- func (x *PaginationRequest) Reset()
- func (x *PaginationRequest) String() string
- type PaginationResponse
- func (*PaginationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PaginationResponse) GetCount() int32
- func (x *PaginationResponse) GetPage() int32
- func (x *PaginationResponse) GetTotal() int32
- func (*PaginationResponse) ProtoMessage()
- func (x *PaginationResponse) ProtoReflect() protoreflect.Message
- func (x *PaginationResponse) Reset()
- func (x *PaginationResponse) String() string
- type SearchField
- func (*SearchField) Descriptor() ([]byte, []int)deprecated
- func (x *SearchField) GetField() string
- func (x *SearchField) GetOperator() SearchOperator
- func (x *SearchField) GetValue() string
- func (x *SearchField) GetValueList() []string
- func (*SearchField) ProtoMessage()
- func (x *SearchField) ProtoReflect() protoreflect.Message
- func (x *SearchField) Reset()
- func (x *SearchField) String() string
- type SearchOperator
- func (SearchOperator) Descriptor() protoreflect.EnumDescriptor
- func (x SearchOperator) Enum() *SearchOperator
- func (SearchOperator) EnumDescriptor() ([]byte, []int)deprecated
- func (x SearchOperator) Number() protoreflect.EnumNumber
- func (x SearchOperator) String() string
- func (SearchOperator) Type() protoreflect.EnumType
- type SearchRequest
- type SortField
- type SortOrder
- type ToolServiceHTTPClient
- type ToolServiceHTTPClientImpl
- type ToolServiceHTTPServer
Constants ¶
View Source
const OperationToolServiceBatchCreateAccounts = "/api.ToolService/BatchCreateAccounts"
Variables ¶
View Source
var ( SortOrder_name = map[int32]string{ 0: "ASC", 1: "DESC", } SortOrder_value = map[string]int32{ "ASC": 0, "DESC": 1, } )
Enum value maps for SortOrder.
View Source
var ( SearchOperator_name = map[int32]string{ 0: "EQ", 1: "NE", 2: "GT", 3: "GE", 4: "LT", 5: "LE", 6: "LIKE", 7: "WILDCARD", 8: "IN", 9: "NOT_IN", 10: "BETWEEN", 11: "RE", } SearchOperator_value = map[string]int32{ "EQ": 0, "NE": 1, "GT": 2, "GE": 3, "LT": 4, "LE": 5, "LIKE": 6, "WILDCARD": 7, "IN": 8, "NOT_IN": 9, "BETWEEN": 10, "RE": 11, } )
Enum value maps for SearchOperator.
View Source
var File_msapi_base_proto protoreflect.FileDescriptor
View Source
var File_msapi_tool_proto protoreflect.FileDescriptor
Functions ¶
func RegisterToolServiceHTTPServer ¶
func RegisterToolServiceHTTPServer(s *http.Server, srv ToolServiceHTTPServer)
Types ¶
type BatchCreateAccountsRequest ¶
type BatchCreateAccountsRequest struct {
// contains filtered or unexported fields
}
func (*BatchCreateAccountsRequest) Descriptor
deprecated
func (*BatchCreateAccountsRequest) Descriptor() ([]byte, []int)
Deprecated: Use BatchCreateAccountsRequest.ProtoReflect.Descriptor instead.
func (*BatchCreateAccountsRequest) ProtoMessage ¶
func (*BatchCreateAccountsRequest) ProtoMessage()
func (*BatchCreateAccountsRequest) ProtoReflect ¶
func (x *BatchCreateAccountsRequest) ProtoReflect() protoreflect.Message
func (*BatchCreateAccountsRequest) Reset ¶
func (x *BatchCreateAccountsRequest) Reset()
func (*BatchCreateAccountsRequest) String ¶
func (x *BatchCreateAccountsRequest) String() string
type BatchCreateAccountsResponse ¶
type BatchCreateAccountsResponse struct {
// contains filtered or unexported fields
}
func (*BatchCreateAccountsResponse) Descriptor
deprecated
func (*BatchCreateAccountsResponse) Descriptor() ([]byte, []int)
Deprecated: Use BatchCreateAccountsResponse.ProtoReflect.Descriptor instead.
func (*BatchCreateAccountsResponse) ProtoMessage ¶
func (*BatchCreateAccountsResponse) ProtoMessage()
func (*BatchCreateAccountsResponse) ProtoReflect ¶
func (x *BatchCreateAccountsResponse) ProtoReflect() protoreflect.Message
func (*BatchCreateAccountsResponse) Reset ¶
func (x *BatchCreateAccountsResponse) Reset()
func (*BatchCreateAccountsResponse) String ¶
func (x *BatchCreateAccountsResponse) String() string
type Metadata ¶
type Metadata struct {
BizCode int32 `protobuf:"varint,1,opt,name=biz_code,json=bizCode,proto3" json:"biz_code,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"`
Reason []string `protobuf:"bytes,4,rep,name=reason,proto3" json:"reason,omitempty"`
// contains filtered or unexported fields
}
func (*Metadata) Descriptor
deprecated
func (*Metadata) GetBizCode ¶
func (*Metadata) GetMessage ¶
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶
func (x *Metadata) ProtoReflect() protoreflect.Message
type PaginationRequest ¶
type PaginationRequest struct {
Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` // 页码 [1, +∞)
Size int32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` // 页面大小
Sort []*SortField `protobuf:"bytes,3,rep,name=sort,proto3" json:"sort,omitempty"` // 根据字段进行排序
// contains filtered or unexported fields
}
func (*PaginationRequest) Descriptor
deprecated
func (*PaginationRequest) Descriptor() ([]byte, []int)
Deprecated: Use PaginationRequest.ProtoReflect.Descriptor instead.
func (*PaginationRequest) GetPage ¶
func (x *PaginationRequest) GetPage() int32
func (*PaginationRequest) GetSize ¶
func (x *PaginationRequest) GetSize() int32
func (*PaginationRequest) GetSort ¶
func (x *PaginationRequest) GetSort() []*SortField
func (*PaginationRequest) ProtoMessage ¶
func (*PaginationRequest) ProtoMessage()
func (*PaginationRequest) ProtoReflect ¶
func (x *PaginationRequest) ProtoReflect() protoreflect.Message
func (*PaginationRequest) Reset ¶
func (x *PaginationRequest) Reset()
func (*PaginationRequest) String ¶
func (x *PaginationRequest) String() string
type PaginationResponse ¶
type PaginationResponse struct {
Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` // 当前数据的所属页码
Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // 总页数
Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` // 总条目数
// contains filtered or unexported fields
}
func (*PaginationResponse) Descriptor
deprecated
func (*PaginationResponse) Descriptor() ([]byte, []int)
Deprecated: Use PaginationResponse.ProtoReflect.Descriptor instead.
func (*PaginationResponse) GetCount ¶
func (x *PaginationResponse) GetCount() int32
func (*PaginationResponse) GetPage ¶
func (x *PaginationResponse) GetPage() int32
func (*PaginationResponse) GetTotal ¶
func (x *PaginationResponse) GetTotal() int32
func (*PaginationResponse) ProtoMessage ¶
func (*PaginationResponse) ProtoMessage()
func (*PaginationResponse) ProtoReflect ¶
func (x *PaginationResponse) ProtoReflect() protoreflect.Message
func (*PaginationResponse) Reset ¶
func (x *PaginationResponse) Reset()
func (*PaginationResponse) String ¶
func (x *PaginationResponse) String() string
type SearchField ¶
type SearchField struct {
Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"` // 用于搜索的字段名称
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // 搜索的值
ValueList []string `protobuf:"bytes,3,rep,name=value_list,json=valueList,proto3" json:"value_list,omitempty"` // 搜索的值列表
Operator SearchOperator `protobuf:"varint,4,opt,name=operator,proto3,enum=api.SearchOperator" json:"operator,omitempty"` // 操作符
// contains filtered or unexported fields
}
func (*SearchField) Descriptor
deprecated
func (*SearchField) Descriptor() ([]byte, []int)
Deprecated: Use SearchField.ProtoReflect.Descriptor instead.
func (*SearchField) GetField ¶
func (x *SearchField) GetField() string
func (*SearchField) GetOperator ¶
func (x *SearchField) GetOperator() SearchOperator
func (*SearchField) GetValue ¶
func (x *SearchField) GetValue() string
func (*SearchField) GetValueList ¶
func (x *SearchField) GetValueList() []string
func (*SearchField) ProtoMessage ¶
func (*SearchField) ProtoMessage()
func (*SearchField) ProtoReflect ¶
func (x *SearchField) ProtoReflect() protoreflect.Message
func (*SearchField) Reset ¶
func (x *SearchField) Reset()
func (*SearchField) String ¶
func (x *SearchField) String() string
type SearchOperator ¶
type SearchOperator int32
const ( SearchOperator_EQ SearchOperator = 0 // 等于 SearchOperator_NE SearchOperator = 1 // 不等于 SearchOperator_GT SearchOperator = 2 // 大于 SearchOperator_GE SearchOperator = 3 // 大于等于 SearchOperator_LT SearchOperator = 4 // 小于 SearchOperator_LE SearchOperator = 5 // 小于等于 SearchOperator_LIKE SearchOperator = 6 // 使用like的模糊匹配 SearchOperator_WILDCARD SearchOperator = 7 // 使用通配符的模糊匹配 SearchOperator_IN SearchOperator = 8 // 在指定的集合中 SearchOperator_NOT_IN SearchOperator = 9 // 不在指定的集合中 SearchOperator_BETWEEN SearchOperator = 10 // 在指定的范围内 SearchOperator_RE SearchOperator = 11 // 正则匹配 )
func (SearchOperator) Descriptor ¶
func (SearchOperator) Descriptor() protoreflect.EnumDescriptor
func (SearchOperator) Enum ¶
func (x SearchOperator) Enum() *SearchOperator
func (SearchOperator) EnumDescriptor
deprecated
func (SearchOperator) EnumDescriptor() ([]byte, []int)
Deprecated: Use SearchOperator.Descriptor instead.
func (SearchOperator) Number ¶
func (x SearchOperator) Number() protoreflect.EnumNumber
func (SearchOperator) String ¶
func (x SearchOperator) String() string
func (SearchOperator) Type ¶
func (SearchOperator) Type() protoreflect.EnumType
type SearchRequest ¶
type SearchRequest struct {
Search []*SearchField `protobuf:"bytes,1,rep,name=search,proto3" json:"search,omitempty"` // 搜索条件
// contains filtered or unexported fields
}
func (*SearchRequest) Descriptor
deprecated
func (*SearchRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.
func (*SearchRequest) GetSearch ¶
func (x *SearchRequest) GetSearch() []*SearchField
func (*SearchRequest) ProtoMessage ¶
func (*SearchRequest) ProtoMessage()
func (*SearchRequest) ProtoReflect ¶
func (x *SearchRequest) ProtoReflect() protoreflect.Message
func (*SearchRequest) Reset ¶
func (x *SearchRequest) Reset()
func (*SearchRequest) String ¶
func (x *SearchRequest) String() string
type SortField ¶
type SortField struct {
Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"` // 用于排序的字段名称
Order SortOrder `protobuf:"varint,2,opt,name=order,proto3,enum=api.SortOrder" json:"order,omitempty"` // 排序方式
// contains filtered or unexported fields
}
func (*SortField) Descriptor
deprecated
func (*SortField) ProtoMessage ¶
func (*SortField) ProtoMessage()
func (*SortField) ProtoReflect ¶
func (x *SortField) ProtoReflect() protoreflect.Message
type SortOrder ¶
type SortOrder int32
func (SortOrder) Descriptor ¶
func (SortOrder) Descriptor() protoreflect.EnumDescriptor
func (SortOrder) EnumDescriptor
deprecated
func (SortOrder) Number ¶
func (x SortOrder) Number() protoreflect.EnumNumber
func (SortOrder) Type ¶
func (SortOrder) Type() protoreflect.EnumType
type ToolServiceHTTPClient ¶
type ToolServiceHTTPClient interface {
BatchCreateAccounts(ctx context.Context, req *BatchCreateAccountsRequest, opts ...http.CallOption) (rsp *BatchCreateAccountsResponse, err error)
}
func NewToolServiceHTTPClient ¶
func NewToolServiceHTTPClient(client *http.Client) ToolServiceHTTPClient
type ToolServiceHTTPClientImpl ¶
type ToolServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*ToolServiceHTTPClientImpl) BatchCreateAccounts ¶
func (c *ToolServiceHTTPClientImpl) BatchCreateAccounts(ctx context.Context, in *BatchCreateAccountsRequest, opts ...http.CallOption) (*BatchCreateAccountsResponse, error)
type ToolServiceHTTPServer ¶
type ToolServiceHTTPServer interface {
// BatchCreateAccounts 账号
BatchCreateAccounts(context.Context, *BatchCreateAccountsRequest) (*BatchCreateAccountsResponse, error)
}
Click to show internal directories.
Click to hide internal directories.