feat: remove dockment
CI / changes (push) Successful in 1m31s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 0s
CI / bff (push) Successful in 27s
CI / chore (push) Successful in 26s
CI / equipment (push) Successful in 0s
CI / express (push) Successful in 1s
CI / factory (push) Successful in 0s
CI / message (push) Successful in 0s
CI / order (push) Successful in 1s
CI / payment (push) Successful in 0s
CI / percutaneous (push) Successful in 0s
CI / product (push) Successful in 0s
CI / record (push) Successful in 0s
CI / sale (push) Successful in 1s
CI / support (push) Successful in 0s
CI / task (push) Successful in 0s
CI / user (push) Successful in 0s
CI / water (push) Successful in 0s
CI / wecom (push) Successful in 0s
CI / changes (push) Successful in 1m31s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 0s
CI / bff (push) Successful in 27s
CI / chore (push) Successful in 26s
CI / equipment (push) Successful in 0s
CI / express (push) Successful in 1s
CI / factory (push) Successful in 0s
CI / message (push) Successful in 0s
CI / order (push) Successful in 1s
CI / payment (push) Successful in 0s
CI / percutaneous (push) Successful in 0s
CI / product (push) Successful in 0s
CI / record (push) Successful in 0s
CI / sale (push) Successful in 1s
CI / support (push) Successful in 0s
CI / task (push) Successful in 0s
CI / user (push) Successful in 0s
CI / water (push) Successful in 0s
CI / wecom (push) Successful in 0s
This commit is contained in:
@@ -39,10 +39,7 @@ type (
|
||||
|
||||
Chore interface {
|
||||
Policy(ctx context.Context, in *PolicyReq, opts ...grpc.CallOption) (*Response, error)
|
||||
// 对外:服务端直传 OSS
|
||||
Upload(ctx context.Context, in *UploadReq, opts ...grpc.CallOption) (*Response, error)
|
||||
// 对内:服务间直传 OSS(无 HTTP 暴露)
|
||||
InternalUpload(ctx context.Context, in *InternalUploadReq, opts ...grpc.CallOption) (*InternalUploadData, 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)
|
||||
@@ -56,7 +53,7 @@ type (
|
||||
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)
|
||||
Document(ctx context.Context, in *DocumentReq, 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)
|
||||
@@ -78,18 +75,11 @@ func (m *defaultChore) Policy(ctx context.Context, in *PolicyReq, opts ...grpc.C
|
||||
return client.Policy(ctx, in, opts...)
|
||||
}
|
||||
|
||||
// 对外:服务端直传 OSS
|
||||
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(无 HTTP 暴露)
|
||||
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) Test(ctx context.Context, in *TestReq, opts ...grpc.CallOption) (*Response, error) {
|
||||
client := chore.NewChoreClient(m.cli.Conn())
|
||||
return client.Test(ctx, in, opts...)
|
||||
@@ -155,9 +145,9 @@ func (m *defaultChore) SystemItems(ctx context.Context, in *EmptyReq, opts ...gr
|
||||
return client.SystemItems(ctx, in, opts...)
|
||||
}
|
||||
|
||||
func (m *defaultChore) Document(ctx context.Context, in *DocumentReq, opts ...grpc.CallOption) (*Response, error) {
|
||||
func (m *defaultChore) InternalUpload(ctx context.Context, in *InternalUploadReq, opts ...grpc.CallOption) (*InternalUploadData, error) {
|
||||
client := chore.NewChoreClient(m.cli.Conn())
|
||||
return client.Document(ctx, in, opts...)
|
||||
return client.InternalUpload(ctx, in, opts...)
|
||||
}
|
||||
|
||||
func (m *defaultChore) RegionsByIds(ctx context.Context, in *RegionsByIdsReq, opts ...grpc.CallOption) (*RegionsByIdsData, error) {
|
||||
|
||||
@@ -28,18 +28,11 @@ func (s *ChoreServer) Policy(ctx context.Context, in *chore.PolicyReq) (*chore.R
|
||||
return l.Policy(in)
|
||||
}
|
||||
|
||||
// 对外:服务端直传 OSS
|
||||
func (s *ChoreServer) Upload(ctx context.Context, in *chore.UploadReq) (*chore.Response, error) {
|
||||
l := logic.NewUploadLogic(ctx, s.svcCtx)
|
||||
return l.Upload(in)
|
||||
}
|
||||
|
||||
// 对内:服务间直传 OSS(无 HTTP 暴露)
|
||||
func (s *ChoreServer) InternalUpload(ctx context.Context, in *chore.InternalUploadReq) (*chore.InternalUploadData, error) {
|
||||
l := logic.NewInternalUploadLogic(ctx, s.svcCtx)
|
||||
return l.InternalUpload(in)
|
||||
}
|
||||
|
||||
func (s *ChoreServer) Test(ctx context.Context, in *chore.TestReq) (*chore.Response, error) {
|
||||
l := logic.NewTestLogic(ctx, s.svcCtx)
|
||||
return l.Test(in)
|
||||
@@ -105,9 +98,9 @@ func (s *ChoreServer) SystemItems(ctx context.Context, in *chore.EmptyReq) (*cho
|
||||
return l.SystemItems(in)
|
||||
}
|
||||
|
||||
func (s *ChoreServer) Document(ctx context.Context, in *chore.DocumentReq) (*chore.Response, error) {
|
||||
l := logic.NewDocumentLogic(ctx, s.svcCtx)
|
||||
return l.Document(in)
|
||||
func (s *ChoreServer) InternalUpload(ctx context.Context, in *chore.InternalUploadReq) (*chore.InternalUploadData, error) {
|
||||
l := logic.NewInternalUploadLogic(ctx, s.svcCtx)
|
||||
return l.InternalUpload(in)
|
||||
}
|
||||
|
||||
func (s *ChoreServer) RegionsByIds(ctx context.Context, in *chore.RegionsByIdsReq) (*chore.RegionsByIdsData, error) {
|
||||
|
||||
Reference in New Issue
Block a user