Documentation ¶
Index ¶
- Variables
- func NewPdfServiceEndpoints() []*api.Endpoint
- func NewUserServiceEndpoints() []*api.Endpoint
- func RegisterPdfServiceHandler(s server.Server, hdlr PdfServiceHandler, opts ...server.HandlerOption) error
- func RegisterUserServiceHandler(s server.Server, hdlr UserServiceHandler, opts ...server.HandlerOption) error
- type AddWaterMarkReq
- func (*AddWaterMarkReq) Descriptor() ([]byte, []int)deprecated
- func (x *AddWaterMarkReq) GetFile() string
- func (x *AddWaterMarkReq) GetPages() []string
- func (x *AddWaterMarkReq) GetText() string
- func (*AddWaterMarkReq) ProtoMessage()
- func (x *AddWaterMarkReq) ProtoReflect() protoreflect.Message
- func (x *AddWaterMarkReq) Reset()
- func (x *AddWaterMarkReq) String() string
- type AddWaterMarkResp
- func (*AddWaterMarkResp) Descriptor() ([]byte, []int)deprecated
- func (x *AddWaterMarkResp) GetCode() uint32
- func (x *AddWaterMarkResp) GetFile() string
- func (*AddWaterMarkResp) ProtoMessage()
- func (x *AddWaterMarkResp) ProtoReflect() protoreflect.Message
- func (x *AddWaterMarkResp) Reset()
- func (x *AddWaterMarkResp) String() string
- type LoginReq
- type LoginResp
- type MergeReq
- type MergeResp
- type PdfService
- type PdfServiceHandler
- type SignUpReq
- func (*SignUpReq) Descriptor() ([]byte, []int)deprecated
- func (x *SignUpReq) GetConfirmPassword() string
- func (x *SignUpReq) GetName() string
- func (x *SignUpReq) GetPassword() string
- func (*SignUpReq) ProtoMessage()
- func (x *SignUpReq) ProtoReflect() protoreflect.Message
- func (x *SignUpReq) Reset()
- func (x *SignUpReq) String() string
- type SignUpResp
- type SplitReq
- func (*SplitReq) Descriptor() ([]byte, []int)deprecated
- func (x *SplitReq) GetFile() string
- func (x *SplitReq) GetPage() []string
- func (x *SplitReq) GetSpan() int64
- func (*SplitReq) ProtoMessage()
- func (x *SplitReq) ProtoReflect() protoreflect.Message
- func (x *SplitReq) Reset()
- func (x *SplitReq) String() string
- type SplitResp
- type UserModel
- func (*UserModel) Descriptor() ([]byte, []int)deprecated
- func (x *UserModel) GetCreatedAt() int64
- func (x *UserModel) GetDeletedAt() int64
- func (x *UserModel) GetId() uint32
- func (x *UserModel) GetUpdatedAt() int64
- func (x *UserModel) GetUserName() string
- func (*UserModel) ProtoMessage()
- func (x *UserModel) ProtoReflect() protoreflect.Message
- func (x *UserModel) Reset()
- func (x *UserModel) String() string
- type UserService
- type UserServiceHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var File_pdf_proto protoreflect.FileDescriptor
View Source
var File_user_proto protoreflect.FileDescriptor
Functions ¶
func NewPdfServiceEndpoints ¶
func NewUserServiceEndpoints ¶
func RegisterPdfServiceHandler ¶
func RegisterPdfServiceHandler(s server.Server, hdlr PdfServiceHandler, opts ...server.HandlerOption) error
func RegisterUserServiceHandler ¶
func RegisterUserServiceHandler(s server.Server, hdlr UserServiceHandler, opts ...server.HandlerOption) error
Types ¶
type AddWaterMarkReq ¶
type AddWaterMarkReq struct { Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` File string `protobuf:"bytes,2,opt,name=file,proto3" json:"file,omitempty"` Pages []string `protobuf:"bytes,3,rep,name=pages,proto3" json:"pages,omitempty"` // contains filtered or unexported fields }
加水印
func (*AddWaterMarkReq) Descriptor
deprecated
func (*AddWaterMarkReq) Descriptor() ([]byte, []int)
Deprecated: Use AddWaterMarkReq.ProtoReflect.Descriptor instead.
func (*AddWaterMarkReq) GetFile ¶
func (x *AddWaterMarkReq) GetFile() string
func (*AddWaterMarkReq) GetPages ¶
func (x *AddWaterMarkReq) GetPages() []string
func (*AddWaterMarkReq) GetText ¶
func (x *AddWaterMarkReq) GetText() string
func (*AddWaterMarkReq) ProtoMessage ¶
func (*AddWaterMarkReq) ProtoMessage()
func (*AddWaterMarkReq) ProtoReflect ¶
func (x *AddWaterMarkReq) ProtoReflect() protoreflect.Message
func (*AddWaterMarkReq) Reset ¶
func (x *AddWaterMarkReq) Reset()
func (*AddWaterMarkReq) String ¶
func (x *AddWaterMarkReq) String() string
type AddWaterMarkResp ¶
type AddWaterMarkResp struct { File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"` Code uint32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*AddWaterMarkResp) Descriptor
deprecated
func (*AddWaterMarkResp) Descriptor() ([]byte, []int)
Deprecated: Use AddWaterMarkResp.ProtoReflect.Descriptor instead.
func (*AddWaterMarkResp) GetCode ¶
func (x *AddWaterMarkResp) GetCode() uint32
func (*AddWaterMarkResp) GetFile ¶
func (x *AddWaterMarkResp) GetFile() string
func (*AddWaterMarkResp) ProtoMessage ¶
func (*AddWaterMarkResp) ProtoMessage()
func (*AddWaterMarkResp) ProtoReflect ¶
func (x *AddWaterMarkResp) ProtoReflect() protoreflect.Message
func (*AddWaterMarkResp) Reset ¶
func (x *AddWaterMarkResp) Reset()
func (*AddWaterMarkResp) String ¶
func (x *AddWaterMarkResp) String() string
type LoginReq ¶
type LoginReq struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
登录
func (*LoginReq) Descriptor
deprecated
func (*LoginReq) GetPassword ¶
func (*LoginReq) ProtoMessage ¶
func (*LoginReq) ProtoMessage()
func (*LoginReq) ProtoReflect ¶
func (x *LoginReq) ProtoReflect() protoreflect.Message
type LoginResp ¶
type LoginResp struct { User *UserModel `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` Code uint32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*LoginResp) Descriptor
deprecated
func (*LoginResp) ProtoMessage ¶
func (*LoginResp) ProtoMessage()
func (*LoginResp) ProtoReflect ¶
func (x *LoginResp) ProtoReflect() protoreflect.Message
type MergeReq ¶
type MergeReq struct { Files []string `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"` // contains filtered or unexported fields }
合并
func (*MergeReq) Descriptor
deprecated
func (*MergeReq) ProtoMessage ¶
func (*MergeReq) ProtoMessage()
func (*MergeReq) ProtoReflect ¶
func (x *MergeReq) ProtoReflect() protoreflect.Message
type MergeResp ¶
type MergeResp struct { File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"` Code uint32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*MergeResp) Descriptor
deprecated
func (*MergeResp) ProtoMessage ¶
func (*MergeResp) ProtoMessage()
func (*MergeResp) ProtoReflect ¶
func (x *MergeResp) ProtoReflect() protoreflect.Message
type PdfService ¶
type PdfService interface { Split(ctx context.Context, in *SplitReq, opts ...client.CallOption) (*SplitResp, error) Merge(ctx context.Context, in *MergeReq, opts ...client.CallOption) (*MergeResp, error) AddWaterMark(ctx context.Context, in *AddWaterMarkReq, opts ...client.CallOption) (*AddWaterMarkResp, error) }
func NewPdfService ¶
func NewPdfService(name string, c client.Client) PdfService
type PdfServiceHandler ¶
type SignUpReq ¶
type SignUpReq struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` ConfirmPassword string `protobuf:"bytes,3,opt,name=confirm_password,json=confirmPassword,proto3" json:"confirm_password,omitempty"` // contains filtered or unexported fields }
注册
func (*SignUpReq) Descriptor
deprecated
func (*SignUpReq) GetConfirmPassword ¶
func (*SignUpReq) GetPassword ¶
func (*SignUpReq) ProtoMessage ¶
func (*SignUpReq) ProtoMessage()
func (*SignUpReq) ProtoReflect ¶
func (x *SignUpReq) ProtoReflect() protoreflect.Message
type SignUpResp ¶
type SignUpResp struct { User *UserModel `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` Code uint32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*SignUpResp) Descriptor
deprecated
func (*SignUpResp) Descriptor() ([]byte, []int)
Deprecated: Use SignUpResp.ProtoReflect.Descriptor instead.
func (*SignUpResp) GetCode ¶
func (x *SignUpResp) GetCode() uint32
func (*SignUpResp) GetUser ¶
func (x *SignUpResp) GetUser() *UserModel
func (*SignUpResp) ProtoMessage ¶
func (*SignUpResp) ProtoMessage()
func (*SignUpResp) ProtoReflect ¶
func (x *SignUpResp) ProtoReflect() protoreflect.Message
func (*SignUpResp) Reset ¶
func (x *SignUpResp) Reset()
func (*SignUpResp) String ¶
func (x *SignUpResp) String() string
type SplitReq ¶
type SplitReq struct { Page []string `protobuf:"bytes,1,rep,name=page,proto3" json:"page,omitempty"` Span int64 `protobuf:"varint,2,opt,name=span,proto3" json:"span,omitempty"` File string `protobuf:"bytes,3,opt,name=file,proto3" json:"file,omitempty"` // contains filtered or unexported fields }
切分
func (*SplitReq) Descriptor
deprecated
func (*SplitReq) ProtoMessage ¶
func (*SplitReq) ProtoMessage()
func (*SplitReq) ProtoReflect ¶
func (x *SplitReq) ProtoReflect() protoreflect.Message
type SplitResp ¶
type SplitResp struct { Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*SplitResp) Descriptor
deprecated
func (*SplitResp) ProtoMessage ¶
func (*SplitResp) ProtoMessage()
func (*SplitResp) ProtoReflect ¶
func (x *SplitResp) ProtoReflect() protoreflect.Message
type UserModel ¶
type UserModel struct { // @inject_tag: json:"id" form:"id" Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // @inject_tag: json:"user_name" form:"user_name" UserName string `protobuf:"bytes,2,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` // @inject_tag: json:"created_at" CreatedAt int64 `protobuf:"varint,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // @inject_tag: json:"updated_at" UpdatedAt int64 `protobuf:"varint,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // @inject_tag: json:"deleted_at" DeletedAt int64 `protobuf:"varint,5,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` // contains filtered or unexported fields }
func (*UserModel) Descriptor
deprecated
func (*UserModel) GetCreatedAt ¶
func (*UserModel) GetDeletedAt ¶
func (*UserModel) GetUpdatedAt ¶
func (*UserModel) GetUserName ¶
func (*UserModel) ProtoMessage ¶
func (*UserModel) ProtoMessage()
func (*UserModel) ProtoReflect ¶
func (x *UserModel) ProtoReflect() protoreflect.Message
type UserService ¶
type UserService interface { Login(ctx context.Context, in *LoginReq, opts ...client.CallOption) (*LoginResp, error) Signup(ctx context.Context, in *SignUpReq, opts ...client.CallOption) (*SignUpResp, error) }
func NewUserService ¶
func NewUserService(name string, c client.Client) UserService
Click to show internal directories.
Click to hide internal directories.