5a3d66df25
CI / changes (push) Successful in 1m30s
CI / ad (push) Successful in 1s
CI / admin (push) Successful in 0s
CI / bff (push) Successful in 28s
CI / chore (push) Successful in 28s
CI / equipment (push) Successful in 1s
CI / express (push) Successful in 0s
CI / factory (push) Successful in 0s
CI / message (push) Successful in 0s
CI / order (push) Successful in 0s
CI / payment (push) Successful in 0s
CI / percutaneous (push) Successful in 0s
CI / product (push) Successful in 0s
CI / record (push) Successful in 1s
CI / sale (push) Successful in 0s
CI / support (push) Successful in 0s
CI / task (push) Successful in 0s
CI / user (push) Successful in 28s
CI / water (push) Successful in 0s
CI / wecom (push) Successful in 0s
176 lines
7.9 KiB
Go
176 lines
7.9 KiB
Go
// Code generated by goctl. DO NOT EDIT.
|
|
// goctl 1.10.1
|
|
// Source: chore.proto
|
|
|
|
package choreClient
|
|
|
|
import (
|
|
"context"
|
|
|
|
"lone-services/rpc/chore/pb"
|
|
|
|
"github.com/zeromicro/go-zero/zrpc"
|
|
"google.golang.org/grpc"
|
|
)
|
|
|
|
type (
|
|
DecryptMobileReq = chore.DecryptMobileReq
|
|
DocumentReq = chore.DocumentReq
|
|
EditReq = chore.EditReq
|
|
EmptyReq = chore.EmptyReq
|
|
IdReq = chore.IdReq
|
|
InternalActionApplyLogCreateData = chore.InternalActionApplyLogCreateData
|
|
InternalActionApplyLogCreateReq = chore.InternalActionApplyLogCreateReq
|
|
InternalUploadData = chore.InternalUploadData
|
|
InternalUploadReq = chore.InternalUploadReq
|
|
OssSignatureReq = chore.OssSignatureReq
|
|
PolicyReq = chore.PolicyReq
|
|
RegionItem = chore.RegionItem
|
|
RegionsByIdsData = chore.RegionsByIdsData
|
|
RegionsByIdsReq = chore.RegionsByIdsReq
|
|
RegionsReq = chore.RegionsReq
|
|
Response = chore.Response
|
|
SendPasswordReq = chore.SendPasswordReq
|
|
SendPasswordResp = chore.SendPasswordResp
|
|
SendSmsReq = chore.SendSmsReq
|
|
StatusReq = chore.StatusReq
|
|
SystemEditReq = chore.SystemEditReq
|
|
TestReq = chore.TestReq
|
|
UploadReq = chore.UploadReq
|
|
|
|
Chore interface {
|
|
Policy(ctx context.Context, in *PolicyReq, opts ...grpc.CallOption) (*Response, error)
|
|
Upload(ctx context.Context, in *UploadReq, opts ...grpc.CallOption) (*Response, error)
|
|
// 微信小程序直传 OSS 所需的 PostObject V4 签名参数
|
|
OssSignature(ctx context.Context, in *OssSignatureReq, opts ...grpc.CallOption) (*Response, error)
|
|
Test(ctx context.Context, in *TestReq, opts ...grpc.CallOption) (*Response, error)
|
|
DecryptMobile(ctx context.Context, in *DecryptMobileReq, opts ...grpc.CallOption) (*Response, error)
|
|
Regions(ctx context.Context, in *RegionsReq, opts ...grpc.CallOption) (*Response, error)
|
|
SendSms(ctx context.Context, in *SendSmsReq, opts ...grpc.CallOption) (*Response, error)
|
|
AnswerItems(ctx context.Context, in *EmptyReq, opts ...grpc.CallOption) (*Response, error)
|
|
AnswerStatus(ctx context.Context, in *StatusReq, opts ...grpc.CallOption) (*Response, error)
|
|
AnswerInfo(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*Response, error)
|
|
AnswerCreate(ctx context.Context, in *EditReq, opts ...grpc.CallOption) (*Response, error)
|
|
AnswerEdit(ctx context.Context, in *EditReq, opts ...grpc.CallOption) (*Response, error)
|
|
SystemEdit(ctx context.Context, in *SystemEditReq, opts ...grpc.CallOption) (*Response, error)
|
|
SystemStatus(ctx context.Context, in *StatusReq, opts ...grpc.CallOption) (*Response, error)
|
|
SystemInfo(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*Response, error)
|
|
SystemItems(ctx context.Context, in *EmptyReq, opts ...grpc.CallOption) (*Response, error)
|
|
InternalUpload(ctx context.Context, in *InternalUploadReq, opts ...grpc.CallOption) (*InternalUploadData, error)
|
|
RegionsByIds(ctx context.Context, in *RegionsByIdsReq, opts ...grpc.CallOption) (*RegionsByIdsData, error)
|
|
InternalActionApplyLogCreate(ctx context.Context, in *InternalActionApplyLogCreateReq, opts ...grpc.CallOption) (*InternalActionApplyLogCreateData, error)
|
|
SendPassword(ctx context.Context, in *SendPasswordReq, opts ...grpc.CallOption) (*SendPasswordResp, error)
|
|
}
|
|
|
|
defaultChore struct {
|
|
cli zrpc.Client
|
|
}
|
|
)
|
|
|
|
func NewChore(cli zrpc.Client) Chore {
|
|
return &defaultChore{
|
|
cli: cli,
|
|
}
|
|
}
|
|
|
|
func (m *defaultChore) Policy(ctx context.Context, in *PolicyReq, opts ...grpc.CallOption) (*Response, error) {
|
|
client := chore.NewChoreClient(m.cli.Conn())
|
|
return client.Policy(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultChore) Upload(ctx context.Context, in *UploadReq, opts ...grpc.CallOption) (*Response, error) {
|
|
client := chore.NewChoreClient(m.cli.Conn())
|
|
return client.Upload(ctx, in, opts...)
|
|
}
|
|
|
|
// 微信小程序直传 OSS 所需的 PostObject V4 签名参数
|
|
func (m *defaultChore) OssSignature(ctx context.Context, in *OssSignatureReq, opts ...grpc.CallOption) (*Response, error) {
|
|
client := chore.NewChoreClient(m.cli.Conn())
|
|
return client.OssSignature(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultChore) Test(ctx context.Context, in *TestReq, opts ...grpc.CallOption) (*Response, error) {
|
|
client := chore.NewChoreClient(m.cli.Conn())
|
|
return client.Test(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultChore) DecryptMobile(ctx context.Context, in *DecryptMobileReq, opts ...grpc.CallOption) (*Response, error) {
|
|
client := chore.NewChoreClient(m.cli.Conn())
|
|
return client.DecryptMobile(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultChore) Regions(ctx context.Context, in *RegionsReq, opts ...grpc.CallOption) (*Response, error) {
|
|
client := chore.NewChoreClient(m.cli.Conn())
|
|
return client.Regions(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultChore) SendSms(ctx context.Context, in *SendSmsReq, opts ...grpc.CallOption) (*Response, error) {
|
|
client := chore.NewChoreClient(m.cli.Conn())
|
|
return client.SendSms(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultChore) AnswerItems(ctx context.Context, in *EmptyReq, opts ...grpc.CallOption) (*Response, error) {
|
|
client := chore.NewChoreClient(m.cli.Conn())
|
|
return client.AnswerItems(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultChore) AnswerStatus(ctx context.Context, in *StatusReq, opts ...grpc.CallOption) (*Response, error) {
|
|
client := chore.NewChoreClient(m.cli.Conn())
|
|
return client.AnswerStatus(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultChore) AnswerInfo(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*Response, error) {
|
|
client := chore.NewChoreClient(m.cli.Conn())
|
|
return client.AnswerInfo(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultChore) AnswerCreate(ctx context.Context, in *EditReq, opts ...grpc.CallOption) (*Response, error) {
|
|
client := chore.NewChoreClient(m.cli.Conn())
|
|
return client.AnswerCreate(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultChore) AnswerEdit(ctx context.Context, in *EditReq, opts ...grpc.CallOption) (*Response, error) {
|
|
client := chore.NewChoreClient(m.cli.Conn())
|
|
return client.AnswerEdit(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultChore) SystemEdit(ctx context.Context, in *SystemEditReq, opts ...grpc.CallOption) (*Response, error) {
|
|
client := chore.NewChoreClient(m.cli.Conn())
|
|
return client.SystemEdit(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultChore) SystemStatus(ctx context.Context, in *StatusReq, opts ...grpc.CallOption) (*Response, error) {
|
|
client := chore.NewChoreClient(m.cli.Conn())
|
|
return client.SystemStatus(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultChore) SystemInfo(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*Response, error) {
|
|
client := chore.NewChoreClient(m.cli.Conn())
|
|
return client.SystemInfo(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultChore) SystemItems(ctx context.Context, in *EmptyReq, opts ...grpc.CallOption) (*Response, error) {
|
|
client := chore.NewChoreClient(m.cli.Conn())
|
|
return client.SystemItems(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultChore) InternalUpload(ctx context.Context, in *InternalUploadReq, opts ...grpc.CallOption) (*InternalUploadData, error) {
|
|
client := chore.NewChoreClient(m.cli.Conn())
|
|
return client.InternalUpload(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultChore) RegionsByIds(ctx context.Context, in *RegionsByIdsReq, opts ...grpc.CallOption) (*RegionsByIdsData, error) {
|
|
client := chore.NewChoreClient(m.cli.Conn())
|
|
return client.RegionsByIds(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultChore) InternalActionApplyLogCreate(ctx context.Context, in *InternalActionApplyLogCreateReq, opts ...grpc.CallOption) (*InternalActionApplyLogCreateData, error) {
|
|
client := chore.NewChoreClient(m.cli.Conn())
|
|
return client.InternalActionApplyLogCreate(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultChore) SendPassword(ctx context.Context, in *SendPasswordReq, opts ...grpc.CallOption) (*SendPasswordResp, error) {
|
|
client := chore.NewChoreClient(m.cli.Conn())
|
|
return client.SendPassword(ctx, in, opts...)
|
|
}
|