Documentation ¶
Index ¶
- Constants
- Variables
- func ErrorBffBadRequest(format string, args ...interface{}) *errors.Error
- func ErrorBffRecordAlreadyExists(format string, args ...interface{}) *errors.Error
- func ErrorBffRecordNotFound(format string, args ...interface{}) *errors.Error
- func ErrorBffSystemError(format string, args ...interface{}) *errors.Error
- func IsBffBadRequest(err error) bool
- func IsBffRecordAlreadyExists(err error) bool
- func IsBffRecordNotFound(err error) bool
- func IsBffSystemError(err error) bool
- func RegisterAdministratorServiceHTTPServer(s *http.Server, srv AdministratorServiceHTTPServer)
- func RegisterAdministratorServiceServer(s grpc.ServiceRegistrar, srv AdministratorServiceServer)
- type Administrator
- func (*Administrator) Descriptor() ([]byte, []int)deprecated
- func (x *Administrator) GetAvatar() string
- func (x *Administrator) GetCreatedAt() string
- func (x *Administrator) GetDeletedAt() string
- func (x *Administrator) GetId() int64
- func (x *Administrator) GetLastLoginIp() string
- func (x *Administrator) GetLastLoginTime() string
- func (x *Administrator) GetMobile() string
- func (x *Administrator) GetNickname() string
- func (x *Administrator) GetRole() string
- func (x *Administrator) GetStatus() bool
- func (x *Administrator) GetUpdatedAt() string
- func (x *Administrator) GetUsername() string
- func (*Administrator) ProtoMessage()
- func (x *Administrator) ProtoReflect() protoreflect.Message
- func (x *Administrator) Reset()
- func (x *Administrator) String() string
- type AdministratorLoginSuccessReq
- func (*AdministratorLoginSuccessReq) Descriptor() ([]byte, []int)deprecated
- func (x *AdministratorLoginSuccessReq) GetId() int64
- func (x *AdministratorLoginSuccessReq) GetLastLoginIp() string
- func (x *AdministratorLoginSuccessReq) GetLastLoginTime() string
- func (*AdministratorLoginSuccessReq) ProtoMessage()
- func (x *AdministratorLoginSuccessReq) ProtoReflect() protoreflect.Message
- func (x *AdministratorLoginSuccessReq) Reset()
- func (x *AdministratorLoginSuccessReq) String() string
- type AdministratorServiceClient
- type AdministratorServiceHTTPClient
- type AdministratorServiceHTTPClientImpl
- func (c *AdministratorServiceHTTPClientImpl) AdministratorLoginSuccess(ctx context.Context, in *AdministratorLoginSuccessReq, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AdministratorServiceHTTPClientImpl) AdministratorStatusChange(ctx context.Context, in *AdministratorStatusChangeReq, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AdministratorServiceHTTPClientImpl) CreateAdministrator(ctx context.Context, in *CreateAdministratorReq, opts ...http.CallOption) (*Administrator, error)
- func (c *AdministratorServiceHTTPClientImpl) DeleteAdministrator(ctx context.Context, in *DeleteAdministratorReq, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AdministratorServiceHTTPClientImpl) GetAdministrator(ctx context.Context, in *GetAdministratorReq, opts ...http.CallOption) (*Administrator, error)
- func (c *AdministratorServiceHTTPClientImpl) GetAdministratorList(ctx context.Context, in *GetAdministratorListReq, opts ...http.CallOption) (*GetAdministratorListPageRes, error)
- func (c *AdministratorServiceHTTPClientImpl) RecoverAdministrator(ctx context.Context, in *RecoverAdministratorReq, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AdministratorServiceHTTPClientImpl) UpdateAdministrator(ctx context.Context, in *UpdateAdministratorReq, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AdministratorServiceHTTPClientImpl) VerifyAdministratorPassword(ctx context.Context, in *VerifyAdministratorPasswordReq, ...) (*emptypb.Empty, error)
- type AdministratorServiceHTTPServer
- type AdministratorServiceServer
- type AdministratorStatusChangeReq
- func (*AdministratorStatusChangeReq) Descriptor() ([]byte, []int)deprecated
- func (x *AdministratorStatusChangeReq) GetId() int64
- func (x *AdministratorStatusChangeReq) GetStatus() bool
- func (*AdministratorStatusChangeReq) ProtoMessage()
- func (x *AdministratorStatusChangeReq) ProtoReflect() protoreflect.Message
- func (x *AdministratorStatusChangeReq) Reset()
- func (x *AdministratorStatusChangeReq) String() string
- type CreateAdministratorReq
- func (*CreateAdministratorReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAdministratorReq) GetAvatar() string
- func (x *CreateAdministratorReq) GetMobile() string
- func (x *CreateAdministratorReq) GetNickname() string
- func (x *CreateAdministratorReq) GetPassword() string
- func (x *CreateAdministratorReq) GetRole() string
- func (x *CreateAdministratorReq) GetStatus() bool
- func (x *CreateAdministratorReq) GetUsername() string
- func (*CreateAdministratorReq) ProtoMessage()
- func (x *CreateAdministratorReq) ProtoReflect() protoreflect.Message
- func (x *CreateAdministratorReq) Reset()
- func (x *CreateAdministratorReq) String() string
- type DeleteAdministratorReq
- func (*DeleteAdministratorReq) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteAdministratorReq) GetId() int64
- func (*DeleteAdministratorReq) ProtoMessage()
- func (x *DeleteAdministratorReq) ProtoReflect() protoreflect.Message
- func (x *DeleteAdministratorReq) Reset()
- func (x *DeleteAdministratorReq) String() string
- type ErrorReason
- func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x ErrorReason) Enum() *ErrorReason
- func (ErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x ErrorReason) Number() protoreflect.EnumNumber
- func (x ErrorReason) String() string
- func (ErrorReason) Type() protoreflect.EnumType
- type GetAdministratorListPageRes
- func (*GetAdministratorListPageRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetAdministratorListPageRes) GetList() []*Administrator
- func (x *GetAdministratorListPageRes) GetTotal() int64
- func (*GetAdministratorListPageRes) ProtoMessage()
- func (x *GetAdministratorListPageRes) ProtoReflect() protoreflect.Message
- func (x *GetAdministratorListPageRes) Reset()
- func (x *GetAdministratorListPageRes) String() string
- type GetAdministratorListReq
- func (*GetAdministratorListReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetAdministratorListReq) GetCreatedAtEnd() string
- func (x *GetAdministratorListReq) GetCreatedAtStart() string
- func (x *GetAdministratorListReq) GetMobile() string
- func (x *GetAdministratorListReq) GetNickname() string
- func (x *GetAdministratorListReq) GetPage() int64
- func (x *GetAdministratorListReq) GetPageSize() int64
- func (x *GetAdministratorListReq) GetStatus() *wrapperspb.BoolValue
- func (x *GetAdministratorListReq) GetUsername() string
- func (*GetAdministratorListReq) ProtoMessage()
- func (x *GetAdministratorListReq) ProtoReflect() protoreflect.Message
- func (x *GetAdministratorListReq) Reset()
- func (x *GetAdministratorListReq) String() string
- type GetAdministratorReq
- func (*GetAdministratorReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetAdministratorReq) GetId() int64
- func (x *GetAdministratorReq) GetMobile() string
- func (x *GetAdministratorReq) GetRole() string
- func (x *GetAdministratorReq) GetUsername() string
- func (*GetAdministratorReq) ProtoMessage()
- func (x *GetAdministratorReq) ProtoReflect() protoreflect.Message
- func (x *GetAdministratorReq) Reset()
- func (x *GetAdministratorReq) String() string
- type RecoverAdministratorReq
- func (*RecoverAdministratorReq) Descriptor() ([]byte, []int)deprecated
- func (x *RecoverAdministratorReq) GetId() int64
- func (*RecoverAdministratorReq) ProtoMessage()
- func (x *RecoverAdministratorReq) ProtoReflect() protoreflect.Message
- func (x *RecoverAdministratorReq) Reset()
- func (x *RecoverAdministratorReq) String() string
- type UnimplementedAdministratorServiceServer
- func (UnimplementedAdministratorServiceServer) AdministratorLoginSuccess(context.Context, *AdministratorLoginSuccessReq) (*emptypb.Empty, error)
- func (UnimplementedAdministratorServiceServer) AdministratorStatusChange(context.Context, *AdministratorStatusChangeReq) (*emptypb.Empty, error)
- func (UnimplementedAdministratorServiceServer) CreateAdministrator(context.Context, *CreateAdministratorReq) (*Administrator, error)
- func (UnimplementedAdministratorServiceServer) DeleteAdministrator(context.Context, *DeleteAdministratorReq) (*emptypb.Empty, error)
- func (UnimplementedAdministratorServiceServer) GetAdministrator(context.Context, *GetAdministratorReq) (*Administrator, error)
- func (UnimplementedAdministratorServiceServer) GetAdministratorList(context.Context, *GetAdministratorListReq) (*GetAdministratorListPageRes, error)
- func (UnimplementedAdministratorServiceServer) RecoverAdministrator(context.Context, *RecoverAdministratorReq) (*emptypb.Empty, error)
- func (UnimplementedAdministratorServiceServer) UpdateAdministrator(context.Context, *UpdateAdministratorReq) (*emptypb.Empty, error)
- func (UnimplementedAdministratorServiceServer) VerifyAdministratorPassword(context.Context, *VerifyAdministratorPasswordReq) (*emptypb.Empty, error)
- type UnsafeAdministratorServiceServer
- type UpdateAdministratorReq
- func (*UpdateAdministratorReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateAdministratorReq) GetAvatar() string
- func (x *UpdateAdministratorReq) GetId() int64
- func (x *UpdateAdministratorReq) GetMobile() string
- func (x *UpdateAdministratorReq) GetNickname() string
- func (x *UpdateAdministratorReq) GetPassword() string
- func (x *UpdateAdministratorReq) GetRole() string
- func (x *UpdateAdministratorReq) GetStatus() bool
- func (x *UpdateAdministratorReq) GetUsername() string
- func (*UpdateAdministratorReq) ProtoMessage()
- func (x *UpdateAdministratorReq) ProtoReflect() protoreflect.Message
- func (x *UpdateAdministratorReq) Reset()
- func (x *UpdateAdministratorReq) String() string
- type VerifyAdministratorPasswordReq
- func (*VerifyAdministratorPasswordReq) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyAdministratorPasswordReq) GetId() int64
- func (x *VerifyAdministratorPasswordReq) GetPassword() string
- func (*VerifyAdministratorPasswordReq) ProtoMessage()
- func (x *VerifyAdministratorPasswordReq) ProtoReflect() protoreflect.Message
- func (x *VerifyAdministratorPasswordReq) Reset()
- func (x *VerifyAdministratorPasswordReq) String() string
Constants ¶
const ( AdministratorService_GetAdministratorList_FullMethodName = "/admin.v1.AdministratorService/GetAdministratorList" AdministratorService_CreateAdministrator_FullMethodName = "/admin.v1.AdministratorService/CreateAdministrator" AdministratorService_UpdateAdministrator_FullMethodName = "/admin.v1.AdministratorService/UpdateAdministrator" AdministratorService_GetAdministrator_FullMethodName = "/admin.v1.AdministratorService/GetAdministrator" AdministratorService_DeleteAdministrator_FullMethodName = "/admin.v1.AdministratorService/DeleteAdministrator" AdministratorService_RecoverAdministrator_FullMethodName = "/admin.v1.AdministratorService/RecoverAdministrator" AdministratorService_VerifyAdministratorPassword_FullMethodName = "/admin.v1.AdministratorService/VerifyAdministratorPassword" AdministratorService_AdministratorStatusChange_FullMethodName = "/admin.v1.AdministratorService/AdministratorStatusChange" AdministratorService_AdministratorLoginSuccess_FullMethodName = "/admin.v1.AdministratorService/AdministratorLoginSuccess" )
const OperationAdministratorServiceAdministratorLoginSuccess = "/admin.v1.AdministratorService/AdministratorLoginSuccess"
const OperationAdministratorServiceAdministratorStatusChange = "/admin.v1.AdministratorService/AdministratorStatusChange"
const OperationAdministratorServiceCreateAdministrator = "/admin.v1.AdministratorService/CreateAdministrator"
const OperationAdministratorServiceDeleteAdministrator = "/admin.v1.AdministratorService/DeleteAdministrator"
const OperationAdministratorServiceGetAdministrator = "/admin.v1.AdministratorService/GetAdministrator"
const OperationAdministratorServiceGetAdministratorList = "/admin.v1.AdministratorService/GetAdministratorList"
const OperationAdministratorServiceRecoverAdministrator = "/admin.v1.AdministratorService/RecoverAdministrator"
const OperationAdministratorServiceUpdateAdministrator = "/admin.v1.AdministratorService/UpdateAdministrator"
const OperationAdministratorServiceVerifyAdministratorPassword = "/admin.v1.AdministratorService/VerifyAdministratorPassword"
Variables ¶
var ( ErrorReason_name = map[int32]string{ 0: "BFF_RECORD_NOT_FOUND", 1: "BFF_RECORD_ALREADY_EXISTS", 2: "BFF_BAD_REQUEST", 3: "BFF_SYSTEM_ERROR", } ErrorReason_value = map[string]int32{ "BFF_RECORD_NOT_FOUND": 0, "BFF_RECORD_ALREADY_EXISTS": 1, "BFF_BAD_REQUEST": 2, "BFF_SYSTEM_ERROR": 3, } )
Enum value maps for ErrorReason.
var AdministratorService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "admin.v1.AdministratorService", HandlerType: (*AdministratorServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetAdministratorList", Handler: _AdministratorService_GetAdministratorList_Handler, }, { MethodName: "CreateAdministrator", Handler: _AdministratorService_CreateAdministrator_Handler, }, { MethodName: "UpdateAdministrator", Handler: _AdministratorService_UpdateAdministrator_Handler, }, { MethodName: "GetAdministrator", Handler: _AdministratorService_GetAdministrator_Handler, }, { MethodName: "DeleteAdministrator", Handler: _AdministratorService_DeleteAdministrator_Handler, }, { MethodName: "RecoverAdministrator", Handler: _AdministratorService_RecoverAdministrator_Handler, }, { MethodName: "VerifyAdministratorPassword", Handler: _AdministratorService_VerifyAdministratorPassword_Handler, }, { MethodName: "AdministratorStatusChange", Handler: _AdministratorService_AdministratorStatusChange_Handler, }, { MethodName: "AdministratorLoginSuccess", Handler: _AdministratorService_AdministratorLoginSuccess_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "admin/v1/admin.proto", }
AdministratorService_ServiceDesc is the grpc.ServiceDesc for AdministratorService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_admin_v1_admin_proto protoreflect.FileDescriptor
var File_admin_v1_error_reason_proto protoreflect.FileDescriptor
Functions ¶
func ErrorBffBadRequest ¶ added in v0.0.10
func ErrorBffRecordAlreadyExists ¶ added in v0.0.10
func ErrorBffRecordNotFound ¶ added in v0.0.10
func ErrorBffSystemError ¶ added in v0.0.10
func IsBffBadRequest ¶ added in v0.0.10
func IsBffRecordAlreadyExists ¶ added in v0.0.10
func IsBffRecordNotFound ¶ added in v0.0.10
func IsBffSystemError ¶ added in v0.0.10
func RegisterAdministratorServiceHTTPServer ¶
func RegisterAdministratorServiceHTTPServer(s *http.Server, srv AdministratorServiceHTTPServer)
func RegisterAdministratorServiceServer ¶
func RegisterAdministratorServiceServer(s grpc.ServiceRegistrar, srv AdministratorServiceServer)
Types ¶
type Administrator ¶
type Administrator struct { // id Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 用户名 Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` // 手机号 Mobile string `protobuf:"bytes,3,opt,name=mobile,proto3" json:"mobile,omitempty"` // 昵称 Nickname string `protobuf:"bytes,4,opt,name=nickname,proto3" json:"nickname,omitempty"` // 昵称 Avatar string `protobuf:"bytes,5,opt,name=avatar,proto3" json:"avatar,omitempty"` // 状态 true正常 false冻结 Status bool `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"` // 角色 Role string `protobuf:"bytes,7,opt,name=role,proto3" json:"role,omitempty"` // 上次登录时间 LastLoginTime string `protobuf:"bytes,8,opt,name=last_login_time,json=lastLoginTime,proto3" json:"last_login_time,omitempty"` // 上次登录ip LastLoginIp string `protobuf:"bytes,9,opt,name=last_login_ip,json=lastLoginIp,proto3" json:"last_login_ip,omitempty"` // 创建时间 CreatedAt string `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 更新时间 UpdatedAt string `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // 删除时间 DeletedAt string `protobuf:"bytes,12,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` // contains filtered or unexported fields }
func (*Administrator) Descriptor
deprecated
func (*Administrator) Descriptor() ([]byte, []int)
Deprecated: Use Administrator.ProtoReflect.Descriptor instead.
func (*Administrator) GetAvatar ¶
func (x *Administrator) GetAvatar() string
func (*Administrator) GetCreatedAt ¶
func (x *Administrator) GetCreatedAt() string
func (*Administrator) GetDeletedAt ¶
func (x *Administrator) GetDeletedAt() string
func (*Administrator) GetId ¶
func (x *Administrator) GetId() int64
func (*Administrator) GetLastLoginIp ¶
func (x *Administrator) GetLastLoginIp() string
func (*Administrator) GetLastLoginTime ¶
func (x *Administrator) GetLastLoginTime() string
func (*Administrator) GetMobile ¶
func (x *Administrator) GetMobile() string
func (*Administrator) GetNickname ¶
func (x *Administrator) GetNickname() string
func (*Administrator) GetRole ¶
func (x *Administrator) GetRole() string
func (*Administrator) GetStatus ¶
func (x *Administrator) GetStatus() bool
func (*Administrator) GetUpdatedAt ¶
func (x *Administrator) GetUpdatedAt() string
func (*Administrator) GetUsername ¶
func (x *Administrator) GetUsername() string
func (*Administrator) ProtoMessage ¶
func (*Administrator) ProtoMessage()
func (*Administrator) ProtoReflect ¶
func (x *Administrator) ProtoReflect() protoreflect.Message
func (*Administrator) Reset ¶
func (x *Administrator) Reset()
func (*Administrator) String ¶
func (x *Administrator) String() string
type AdministratorLoginSuccessReq ¶
type AdministratorLoginSuccessReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` LastLoginTime string `protobuf:"bytes,2,opt,name=last_login_time,json=lastLoginTime,proto3" json:"last_login_time,omitempty"` LastLoginIp string `protobuf:"bytes,3,opt,name=last_login_ip,json=lastLoginIp,proto3" json:"last_login_ip,omitempty"` // contains filtered or unexported fields }
func (*AdministratorLoginSuccessReq) Descriptor
deprecated
func (*AdministratorLoginSuccessReq) Descriptor() ([]byte, []int)
Deprecated: Use AdministratorLoginSuccessReq.ProtoReflect.Descriptor instead.
func (*AdministratorLoginSuccessReq) GetId ¶
func (x *AdministratorLoginSuccessReq) GetId() int64
func (*AdministratorLoginSuccessReq) GetLastLoginIp ¶
func (x *AdministratorLoginSuccessReq) GetLastLoginIp() string
func (*AdministratorLoginSuccessReq) GetLastLoginTime ¶
func (x *AdministratorLoginSuccessReq) GetLastLoginTime() string
func (*AdministratorLoginSuccessReq) ProtoMessage ¶
func (*AdministratorLoginSuccessReq) ProtoMessage()
func (*AdministratorLoginSuccessReq) ProtoReflect ¶
func (x *AdministratorLoginSuccessReq) ProtoReflect() protoreflect.Message
func (*AdministratorLoginSuccessReq) Reset ¶
func (x *AdministratorLoginSuccessReq) Reset()
func (*AdministratorLoginSuccessReq) String ¶
func (x *AdministratorLoginSuccessReq) String() string
type AdministratorServiceClient ¶
type AdministratorServiceClient interface { // 列表 GetAdministratorList(ctx context.Context, in *GetAdministratorListReq, opts ...grpc.CallOption) (*GetAdministratorListPageRes, error) // 新增管理员 CreateAdministrator(ctx context.Context, in *CreateAdministratorReq, opts ...grpc.CallOption) (*Administrator, error) // 更新管理员 UpdateAdministrator(ctx context.Context, in *UpdateAdministratorReq, opts ...grpc.CallOption) (*emptypb.Empty, error) // 管理员详情 GetAdministrator(ctx context.Context, in *GetAdministratorReq, opts ...grpc.CallOption) (*Administrator, error) // 删除管理员 DeleteAdministrator(ctx context.Context, in *DeleteAdministratorReq, opts ...grpc.CallOption) (*emptypb.Empty, error) // 恢复管理员 RecoverAdministrator(ctx context.Context, in *RecoverAdministratorReq, opts ...grpc.CallOption) (*emptypb.Empty, error) // 验证管理员密码 VerifyAdministratorPassword(ctx context.Context, in *VerifyAdministratorPasswordReq, opts ...grpc.CallOption) (*emptypb.Empty, error) // 更改管理员状态 AdministratorStatusChange(ctx context.Context, in *AdministratorStatusChangeReq, opts ...grpc.CallOption) (*emptypb.Empty, error) AdministratorLoginSuccess(ctx context.Context, in *AdministratorLoginSuccessReq, opts ...grpc.CallOption) (*emptypb.Empty, error) }
AdministratorServiceClient is the client API for AdministratorService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
管理员服务
func NewAdministratorServiceClient ¶
func NewAdministratorServiceClient(cc grpc.ClientConnInterface) AdministratorServiceClient
type AdministratorServiceHTTPClient ¶
type AdministratorServiceHTTPClient interface { AdministratorLoginSuccess(ctx context.Context, req *AdministratorLoginSuccessReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) AdministratorStatusChange(ctx context.Context, req *AdministratorStatusChangeReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) CreateAdministrator(ctx context.Context, req *CreateAdministratorReq, opts ...http.CallOption) (rsp *Administrator, err error) DeleteAdministrator(ctx context.Context, req *DeleteAdministratorReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) GetAdministrator(ctx context.Context, req *GetAdministratorReq, opts ...http.CallOption) (rsp *Administrator, err error) GetAdministratorList(ctx context.Context, req *GetAdministratorListReq, opts ...http.CallOption) (rsp *GetAdministratorListPageRes, err error) RecoverAdministrator(ctx context.Context, req *RecoverAdministratorReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) UpdateAdministrator(ctx context.Context, req *UpdateAdministratorReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) VerifyAdministratorPassword(ctx context.Context, req *VerifyAdministratorPasswordReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) }
func NewAdministratorServiceHTTPClient ¶
func NewAdministratorServiceHTTPClient(client *http.Client) AdministratorServiceHTTPClient
type AdministratorServiceHTTPClientImpl ¶
type AdministratorServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*AdministratorServiceHTTPClientImpl) AdministratorLoginSuccess ¶
func (c *AdministratorServiceHTTPClientImpl) AdministratorLoginSuccess(ctx context.Context, in *AdministratorLoginSuccessReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AdministratorServiceHTTPClientImpl) AdministratorStatusChange ¶
func (c *AdministratorServiceHTTPClientImpl) AdministratorStatusChange(ctx context.Context, in *AdministratorStatusChangeReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AdministratorServiceHTTPClientImpl) CreateAdministrator ¶
func (c *AdministratorServiceHTTPClientImpl) CreateAdministrator(ctx context.Context, in *CreateAdministratorReq, opts ...http.CallOption) (*Administrator, error)
func (*AdministratorServiceHTTPClientImpl) DeleteAdministrator ¶
func (c *AdministratorServiceHTTPClientImpl) DeleteAdministrator(ctx context.Context, in *DeleteAdministratorReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AdministratorServiceHTTPClientImpl) GetAdministrator ¶
func (c *AdministratorServiceHTTPClientImpl) GetAdministrator(ctx context.Context, in *GetAdministratorReq, opts ...http.CallOption) (*Administrator, error)
func (*AdministratorServiceHTTPClientImpl) GetAdministratorList ¶
func (c *AdministratorServiceHTTPClientImpl) GetAdministratorList(ctx context.Context, in *GetAdministratorListReq, opts ...http.CallOption) (*GetAdministratorListPageRes, error)
func (*AdministratorServiceHTTPClientImpl) RecoverAdministrator ¶
func (c *AdministratorServiceHTTPClientImpl) RecoverAdministrator(ctx context.Context, in *RecoverAdministratorReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AdministratorServiceHTTPClientImpl) UpdateAdministrator ¶
func (c *AdministratorServiceHTTPClientImpl) UpdateAdministrator(ctx context.Context, in *UpdateAdministratorReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AdministratorServiceHTTPClientImpl) VerifyAdministratorPassword ¶
func (c *AdministratorServiceHTTPClientImpl) VerifyAdministratorPassword(ctx context.Context, in *VerifyAdministratorPasswordReq, opts ...http.CallOption) (*emptypb.Empty, error)
type AdministratorServiceHTTPServer ¶
type AdministratorServiceHTTPServer interface { AdministratorLoginSuccess(context.Context, *AdministratorLoginSuccessReq) (*emptypb.Empty, error) // AdministratorStatusChange 更改管理员状态 AdministratorStatusChange(context.Context, *AdministratorStatusChangeReq) (*emptypb.Empty, error) // CreateAdministrator 新增管理员 CreateAdministrator(context.Context, *CreateAdministratorReq) (*Administrator, error) // DeleteAdministrator 删除管理员 DeleteAdministrator(context.Context, *DeleteAdministratorReq) (*emptypb.Empty, error) // GetAdministrator 管理员详情 GetAdministrator(context.Context, *GetAdministratorReq) (*Administrator, error) // GetAdministratorList 列表 GetAdministratorList(context.Context, *GetAdministratorListReq) (*GetAdministratorListPageRes, error) // RecoverAdministrator 恢复管理员 RecoverAdministrator(context.Context, *RecoverAdministratorReq) (*emptypb.Empty, error) // UpdateAdministrator 更新管理员 UpdateAdministrator(context.Context, *UpdateAdministratorReq) (*emptypb.Empty, error) // VerifyAdministratorPassword 验证管理员密码 VerifyAdministratorPassword(context.Context, *VerifyAdministratorPasswordReq) (*emptypb.Empty, error) }
type AdministratorServiceServer ¶
type AdministratorServiceServer interface { // 列表 GetAdministratorList(context.Context, *GetAdministratorListReq) (*GetAdministratorListPageRes, error) // 新增管理员 CreateAdministrator(context.Context, *CreateAdministratorReq) (*Administrator, error) // 更新管理员 UpdateAdministrator(context.Context, *UpdateAdministratorReq) (*emptypb.Empty, error) // 管理员详情 GetAdministrator(context.Context, *GetAdministratorReq) (*Administrator, error) // 删除管理员 DeleteAdministrator(context.Context, *DeleteAdministratorReq) (*emptypb.Empty, error) // 恢复管理员 RecoverAdministrator(context.Context, *RecoverAdministratorReq) (*emptypb.Empty, error) // 验证管理员密码 VerifyAdministratorPassword(context.Context, *VerifyAdministratorPasswordReq) (*emptypb.Empty, error) // 更改管理员状态 AdministratorStatusChange(context.Context, *AdministratorStatusChangeReq) (*emptypb.Empty, error) AdministratorLoginSuccess(context.Context, *AdministratorLoginSuccessReq) (*emptypb.Empty, error) // contains filtered or unexported methods }
AdministratorServiceServer is the server API for AdministratorService service. All implementations must embed UnimplementedAdministratorServiceServer for forward compatibility.
管理员服务
type AdministratorStatusChangeReq ¶
type AdministratorStatusChangeReq struct { // id Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 状态 true正常 false冻结 Status bool `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*AdministratorStatusChangeReq) Descriptor
deprecated
func (*AdministratorStatusChangeReq) Descriptor() ([]byte, []int)
Deprecated: Use AdministratorStatusChangeReq.ProtoReflect.Descriptor instead.
func (*AdministratorStatusChangeReq) GetId ¶
func (x *AdministratorStatusChangeReq) GetId() int64
func (*AdministratorStatusChangeReq) GetStatus ¶
func (x *AdministratorStatusChangeReq) GetStatus() bool
func (*AdministratorStatusChangeReq) ProtoMessage ¶
func (*AdministratorStatusChangeReq) ProtoMessage()
func (*AdministratorStatusChangeReq) ProtoReflect ¶
func (x *AdministratorStatusChangeReq) ProtoReflect() protoreflect.Message
func (*AdministratorStatusChangeReq) Reset ¶
func (x *AdministratorStatusChangeReq) Reset()
func (*AdministratorStatusChangeReq) String ¶
func (x *AdministratorStatusChangeReq) String() string
type CreateAdministratorReq ¶
type CreateAdministratorReq struct { // 用户名 Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // 密码 Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // 手机号 Mobile string `protobuf:"bytes,3,opt,name=mobile,proto3" json:"mobile,omitempty"` // 昵称 Nickname string `protobuf:"bytes,4,opt,name=nickname,proto3" json:"nickname,omitempty"` // 头像 Avatar string `protobuf:"bytes,5,opt,name=avatar,proto3" json:"avatar,omitempty"` // 状态 true正常 false冻结 Status bool `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"` // 当前角色 Role string `protobuf:"bytes,7,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*CreateAdministratorReq) Descriptor
deprecated
func (*CreateAdministratorReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateAdministratorReq.ProtoReflect.Descriptor instead.
func (*CreateAdministratorReq) GetAvatar ¶
func (x *CreateAdministratorReq) GetAvatar() string
func (*CreateAdministratorReq) GetMobile ¶
func (x *CreateAdministratorReq) GetMobile() string
func (*CreateAdministratorReq) GetNickname ¶
func (x *CreateAdministratorReq) GetNickname() string
func (*CreateAdministratorReq) GetPassword ¶
func (x *CreateAdministratorReq) GetPassword() string
func (*CreateAdministratorReq) GetRole ¶
func (x *CreateAdministratorReq) GetRole() string
func (*CreateAdministratorReq) GetStatus ¶
func (x *CreateAdministratorReq) GetStatus() bool
func (*CreateAdministratorReq) GetUsername ¶
func (x *CreateAdministratorReq) GetUsername() string
func (*CreateAdministratorReq) ProtoMessage ¶
func (*CreateAdministratorReq) ProtoMessage()
func (*CreateAdministratorReq) ProtoReflect ¶
func (x *CreateAdministratorReq) ProtoReflect() protoreflect.Message
func (*CreateAdministratorReq) Reset ¶
func (x *CreateAdministratorReq) Reset()
func (*CreateAdministratorReq) String ¶
func (x *CreateAdministratorReq) String() string
type DeleteAdministratorReq ¶
type DeleteAdministratorReq struct { // id Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteAdministratorReq) Descriptor
deprecated
func (*DeleteAdministratorReq) Descriptor() ([]byte, []int)
Deprecated: Use DeleteAdministratorReq.ProtoReflect.Descriptor instead.
func (*DeleteAdministratorReq) GetId ¶
func (x *DeleteAdministratorReq) GetId() int64
func (*DeleteAdministratorReq) ProtoMessage ¶
func (*DeleteAdministratorReq) ProtoMessage()
func (*DeleteAdministratorReq) ProtoReflect ¶
func (x *DeleteAdministratorReq) ProtoReflect() protoreflect.Message
func (*DeleteAdministratorReq) Reset ¶
func (x *DeleteAdministratorReq) Reset()
func (*DeleteAdministratorReq) String ¶
func (x *DeleteAdministratorReq) String() string
type ErrorReason ¶
type ErrorReason int32
const ( ErrorReason_BFF_RECORD_NOT_FOUND ErrorReason = 0 ErrorReason_BFF_RECORD_ALREADY_EXISTS ErrorReason = 1 ErrorReason_BFF_BAD_REQUEST ErrorReason = 2 ErrorReason_BFF_SYSTEM_ERROR ErrorReason = 3 )
func (ErrorReason) Descriptor ¶
func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
func (ErrorReason) Enum ¶
func (x ErrorReason) Enum() *ErrorReason
func (ErrorReason) EnumDescriptor
deprecated
func (ErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use ErrorReason.Descriptor instead.
func (ErrorReason) Number ¶
func (x ErrorReason) Number() protoreflect.EnumNumber
func (ErrorReason) String ¶
func (x ErrorReason) String() string
func (ErrorReason) Type ¶
func (ErrorReason) Type() protoreflect.EnumType
type GetAdministratorListPageRes ¶
type GetAdministratorListPageRes struct { // 总记录数 Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` // 列表 List []*Administrator `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*GetAdministratorListPageRes) Descriptor
deprecated
func (*GetAdministratorListPageRes) Descriptor() ([]byte, []int)
Deprecated: Use GetAdministratorListPageRes.ProtoReflect.Descriptor instead.
func (*GetAdministratorListPageRes) GetList ¶
func (x *GetAdministratorListPageRes) GetList() []*Administrator
func (*GetAdministratorListPageRes) GetTotal ¶
func (x *GetAdministratorListPageRes) GetTotal() int64
func (*GetAdministratorListPageRes) ProtoMessage ¶
func (*GetAdministratorListPageRes) ProtoMessage()
func (*GetAdministratorListPageRes) ProtoReflect ¶
func (x *GetAdministratorListPageRes) ProtoReflect() protoreflect.Message
func (*GetAdministratorListPageRes) Reset ¶
func (x *GetAdministratorListPageRes) Reset()
func (*GetAdministratorListPageRes) String ¶
func (x *GetAdministratorListPageRes) String() string
type GetAdministratorListReq ¶
type GetAdministratorListReq struct { // 页码 Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` // 页记录数 PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // 用户名 Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` // 手机号 Mobile string `protobuf:"bytes,4,opt,name=mobile,proto3" json:"mobile,omitempty"` // 昵称 Nickname string `protobuf:"bytes,5,opt,name=nickname,proto3" json:"nickname,omitempty"` // 状态 true正常 false冻结 Status *wrapperspb.BoolValue `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"` // 创建开始时间 YYYY-MM-dd CreatedAtStart string `protobuf:"bytes,7,opt,name=created_at_start,json=createdAtStart,proto3" json:"created_at_start,omitempty"` // 创建结束时间 YYYY-MM-dd CreatedAtEnd string `protobuf:"bytes,8,opt,name=created_at_end,json=createdAtEnd,proto3" json:"created_at_end,omitempty"` // contains filtered or unexported fields }
func (*GetAdministratorListReq) Descriptor
deprecated
func (*GetAdministratorListReq) Descriptor() ([]byte, []int)
Deprecated: Use GetAdministratorListReq.ProtoReflect.Descriptor instead.
func (*GetAdministratorListReq) GetCreatedAtEnd ¶
func (x *GetAdministratorListReq) GetCreatedAtEnd() string
func (*GetAdministratorListReq) GetCreatedAtStart ¶
func (x *GetAdministratorListReq) GetCreatedAtStart() string
func (*GetAdministratorListReq) GetMobile ¶
func (x *GetAdministratorListReq) GetMobile() string
func (*GetAdministratorListReq) GetNickname ¶
func (x *GetAdministratorListReq) GetNickname() string
func (*GetAdministratorListReq) GetPage ¶
func (x *GetAdministratorListReq) GetPage() int64
func (*GetAdministratorListReq) GetPageSize ¶
func (x *GetAdministratorListReq) GetPageSize() int64
func (*GetAdministratorListReq) GetStatus ¶
func (x *GetAdministratorListReq) GetStatus() *wrapperspb.BoolValue
func (*GetAdministratorListReq) GetUsername ¶
func (x *GetAdministratorListReq) GetUsername() string
func (*GetAdministratorListReq) ProtoMessage ¶
func (*GetAdministratorListReq) ProtoMessage()
func (*GetAdministratorListReq) ProtoReflect ¶
func (x *GetAdministratorListReq) ProtoReflect() protoreflect.Message
func (*GetAdministratorListReq) Reset ¶
func (x *GetAdministratorListReq) Reset()
func (*GetAdministratorListReq) String ¶
func (x *GetAdministratorListReq) String() string
type GetAdministratorReq ¶
type GetAdministratorReq struct { // id Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 用户名 Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` // 手机号 Mobile string `protobuf:"bytes,3,opt,name=mobile,proto3" json:"mobile,omitempty"` // 角色 Role string `protobuf:"bytes,4,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*GetAdministratorReq) Descriptor
deprecated
func (*GetAdministratorReq) Descriptor() ([]byte, []int)
Deprecated: Use GetAdministratorReq.ProtoReflect.Descriptor instead.
func (*GetAdministratorReq) GetId ¶
func (x *GetAdministratorReq) GetId() int64
func (*GetAdministratorReq) GetMobile ¶
func (x *GetAdministratorReq) GetMobile() string
func (*GetAdministratorReq) GetRole ¶
func (x *GetAdministratorReq) GetRole() string
func (*GetAdministratorReq) GetUsername ¶
func (x *GetAdministratorReq) GetUsername() string
func (*GetAdministratorReq) ProtoMessage ¶
func (*GetAdministratorReq) ProtoMessage()
func (*GetAdministratorReq) ProtoReflect ¶
func (x *GetAdministratorReq) ProtoReflect() protoreflect.Message
func (*GetAdministratorReq) Reset ¶
func (x *GetAdministratorReq) Reset()
func (*GetAdministratorReq) String ¶
func (x *GetAdministratorReq) String() string
type RecoverAdministratorReq ¶
type RecoverAdministratorReq struct { // id Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*RecoverAdministratorReq) Descriptor
deprecated
func (*RecoverAdministratorReq) Descriptor() ([]byte, []int)
Deprecated: Use RecoverAdministratorReq.ProtoReflect.Descriptor instead.
func (*RecoverAdministratorReq) GetId ¶
func (x *RecoverAdministratorReq) GetId() int64
func (*RecoverAdministratorReq) ProtoMessage ¶
func (*RecoverAdministratorReq) ProtoMessage()
func (*RecoverAdministratorReq) ProtoReflect ¶
func (x *RecoverAdministratorReq) ProtoReflect() protoreflect.Message
func (*RecoverAdministratorReq) Reset ¶
func (x *RecoverAdministratorReq) Reset()
func (*RecoverAdministratorReq) String ¶
func (x *RecoverAdministratorReq) String() string
type UnimplementedAdministratorServiceServer ¶
type UnimplementedAdministratorServiceServer struct{}
UnimplementedAdministratorServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedAdministratorServiceServer) AdministratorLoginSuccess ¶
func (UnimplementedAdministratorServiceServer) AdministratorLoginSuccess(context.Context, *AdministratorLoginSuccessReq) (*emptypb.Empty, error)
func (UnimplementedAdministratorServiceServer) AdministratorStatusChange ¶
func (UnimplementedAdministratorServiceServer) AdministratorStatusChange(context.Context, *AdministratorStatusChangeReq) (*emptypb.Empty, error)
func (UnimplementedAdministratorServiceServer) CreateAdministrator ¶
func (UnimplementedAdministratorServiceServer) CreateAdministrator(context.Context, *CreateAdministratorReq) (*Administrator, error)
func (UnimplementedAdministratorServiceServer) DeleteAdministrator ¶
func (UnimplementedAdministratorServiceServer) DeleteAdministrator(context.Context, *DeleteAdministratorReq) (*emptypb.Empty, error)
func (UnimplementedAdministratorServiceServer) GetAdministrator ¶
func (UnimplementedAdministratorServiceServer) GetAdministrator(context.Context, *GetAdministratorReq) (*Administrator, error)
func (UnimplementedAdministratorServiceServer) GetAdministratorList ¶
func (UnimplementedAdministratorServiceServer) GetAdministratorList(context.Context, *GetAdministratorListReq) (*GetAdministratorListPageRes, error)
func (UnimplementedAdministratorServiceServer) RecoverAdministrator ¶
func (UnimplementedAdministratorServiceServer) RecoverAdministrator(context.Context, *RecoverAdministratorReq) (*emptypb.Empty, error)
func (UnimplementedAdministratorServiceServer) UpdateAdministrator ¶
func (UnimplementedAdministratorServiceServer) UpdateAdministrator(context.Context, *UpdateAdministratorReq) (*emptypb.Empty, error)
func (UnimplementedAdministratorServiceServer) VerifyAdministratorPassword ¶
func (UnimplementedAdministratorServiceServer) VerifyAdministratorPassword(context.Context, *VerifyAdministratorPasswordReq) (*emptypb.Empty, error)
type UnsafeAdministratorServiceServer ¶
type UnsafeAdministratorServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAdministratorServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AdministratorServiceServer will result in compilation errors.
type UpdateAdministratorReq ¶
type UpdateAdministratorReq struct { // id Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 用户名 Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` // 密码 Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` // 手机号 Mobile string `protobuf:"bytes,4,opt,name=mobile,proto3" json:"mobile,omitempty"` // 昵称 Nickname string `protobuf:"bytes,5,opt,name=nickname,proto3" json:"nickname,omitempty"` // 头像 Avatar string `protobuf:"bytes,6,opt,name=avatar,proto3" json:"avatar,omitempty"` // 状态 true正常 false冻结 Status bool `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"` // 角色 Role string `protobuf:"bytes,8,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*UpdateAdministratorReq) Descriptor
deprecated
func (*UpdateAdministratorReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateAdministratorReq.ProtoReflect.Descriptor instead.
func (*UpdateAdministratorReq) GetAvatar ¶
func (x *UpdateAdministratorReq) GetAvatar() string
func (*UpdateAdministratorReq) GetId ¶
func (x *UpdateAdministratorReq) GetId() int64
func (*UpdateAdministratorReq) GetMobile ¶
func (x *UpdateAdministratorReq) GetMobile() string
func (*UpdateAdministratorReq) GetNickname ¶
func (x *UpdateAdministratorReq) GetNickname() string
func (*UpdateAdministratorReq) GetPassword ¶
func (x *UpdateAdministratorReq) GetPassword() string
func (*UpdateAdministratorReq) GetRole ¶
func (x *UpdateAdministratorReq) GetRole() string
func (*UpdateAdministratorReq) GetStatus ¶
func (x *UpdateAdministratorReq) GetStatus() bool
func (*UpdateAdministratorReq) GetUsername ¶
func (x *UpdateAdministratorReq) GetUsername() string
func (*UpdateAdministratorReq) ProtoMessage ¶
func (*UpdateAdministratorReq) ProtoMessage()
func (*UpdateAdministratorReq) ProtoReflect ¶
func (x *UpdateAdministratorReq) ProtoReflect() protoreflect.Message
func (*UpdateAdministratorReq) Reset ¶
func (x *UpdateAdministratorReq) Reset()
func (*UpdateAdministratorReq) String ¶
func (x *UpdateAdministratorReq) String() string
type VerifyAdministratorPasswordReq ¶
type VerifyAdministratorPasswordReq struct { // id Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 密码 Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*VerifyAdministratorPasswordReq) Descriptor
deprecated
func (*VerifyAdministratorPasswordReq) Descriptor() ([]byte, []int)
Deprecated: Use VerifyAdministratorPasswordReq.ProtoReflect.Descriptor instead.
func (*VerifyAdministratorPasswordReq) GetId ¶
func (x *VerifyAdministratorPasswordReq) GetId() int64
func (*VerifyAdministratorPasswordReq) GetPassword ¶
func (x *VerifyAdministratorPasswordReq) GetPassword() string
func (*VerifyAdministratorPasswordReq) ProtoMessage ¶
func (*VerifyAdministratorPasswordReq) ProtoMessage()
func (*VerifyAdministratorPasswordReq) ProtoReflect ¶
func (x *VerifyAdministratorPasswordReq) ProtoReflect() protoreflect.Message
func (*VerifyAdministratorPasswordReq) Reset ¶
func (x *VerifyAdministratorPasswordReq) Reset()
func (*VerifyAdministratorPasswordReq) String ¶
func (x *VerifyAdministratorPasswordReq) String() string