diff --git a/api/v1/document.pb.go b/api/v1/document.pb.go index 9d9f342..f1d198c 100644 --- a/api/v1/document.pb.go +++ b/api/v1/document.pb.go @@ -1450,120 +1450,121 @@ func init() { func init() { proto.RegisterFile("api/v1/document.proto", fileDescriptor_55a584ae3a7fc022) } var fileDescriptor_55a584ae3a7fc022 = []byte{ - // 1795 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x58, 0x5f, 0x6f, 0xdb, 0xc8, - 0x11, 0x0f, 0x45, 0xd9, 0x96, 0x46, 0xb2, 0xa2, 0x6c, 0x2c, 0x9b, 0xa6, 0x6d, 0x49, 0x61, 0xea, - 0xd6, 0x67, 0x14, 0x16, 0xe2, 0xa2, 0x7d, 0xb8, 0x03, 0x5a, 0xf8, 0x9c, 0x34, 0x67, 0xa0, 0x28, - 0x0e, 0xcc, 0x05, 0x87, 0xde, 0x8b, 0xca, 0x90, 0x6b, 0x8b, 0x3d, 0x4a, 0x64, 0xc9, 0x95, 0x7d, - 0x0e, 0xda, 0x87, 0xf6, 0x03, 0x14, 0x07, 0xf4, 0xab, 0xf4, 0xb9, 0xcf, 0x7d, 0x2a, 0x02, 0xf4, - 0xa5, 0x40, 0x1f, 0x5a, 0x24, 0xfd, 0x02, 0xfd, 0x06, 0xc5, 0xce, 0xee, 0x52, 0x14, 0xff, 0x58, - 0xb9, 0xbb, 0x37, 0xee, 0xec, 0xec, 0xfc, 0x76, 0x66, 0x67, 0x7e, 0x3b, 0x4b, 0xe8, 0x39, 0x91, - 0x3f, 0xba, 0x7e, 0x32, 0xf2, 0x42, 0x77, 0x3e, 0xa5, 0x33, 0x76, 0x12, 0xc5, 0x21, 0x0b, 0xc9, - 0xba, 0x13, 0xf9, 0x27, 0xd7, 0x4f, 0xcc, 0xc1, 0x55, 0x18, 0x5e, 0x05, 0x74, 0x84, 0xd2, 0x57, - 0xf3, 0xcb, 0x11, 0xf3, 0xa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0xcd, 0x5d, - 0x25, 0x8a, 0x81, 0x28, 0xe4, 0xb8, 0x80, 0x42, 0x5e, 0x42, 0x2b, 0xd3, 0x8d, 0x91, 0xf4, 0x8a, - 0x29, 0xb6, 0x68, 0x66, 0xc1, 0x29, 0x65, 0x96, 0x14, 0xcd, 0x7a, 0xf0, 0xf0, 0x39, 0x65, 0x36, - 0x0d, 0x78, 0xbd, 0xa4, 0x0d, 0x59, 0x49, 0x5c, 0x76, 0xcb, 0x32, 0x0c, 0x33, 0xdb, 0x1a, 0xa2, - 0x75, 0x93, 0x18, 0x25, 0x67, 0x8c, 0x76, 0xc9, 0x25, 0x74, 0xf3, 0x45, 0x51, 0x02, 0xb1, 0x88, - 0x59, 0x59, 0x01, 0x59, 0x8f, 0x10, 0x66, 0x8f, 0xec, 0x16, 0x60, 0xd4, 0xe3, 0x94, 0x4c, 0x60, - 0x73, 0xa9, 0x47, 0x26, 0xfb, 0x69, 0x16, 0x95, 0xb4, 0xce, 0x95, 0xa7, 0x20, 0x91, 0xcc, 0xed, - 0x02, 0x92, 0xcb, 0xcd, 0xf0, 0x13, 0xa7, 0xd0, 0xce, 0x06, 0x82, 0xec, 0x95, 0x87, 0x47, 0xe0, - 0xdc, 0x11, 0xbb, 0xea, 0x9a, 0x0c, 0xfc, 0x84, 0x91, 0x29, 0x74, 0x96, 0xe9, 0x6b, 0x91, 0x58, - 0xa5, 0x57, 0x93, 0xb9, 0x57, 0x35, 0xcd, 0xc1, 0x06, 0x08, 0xb6, 0x4b, 0x76, 0x0a, 0x60, 0x09, - 0x6a, 0x13, 0x0f, 0xba, 0x99, 0x22, 0x17, 0x77, 0x44, 0x2f, 0x7f, 0x4e, 0x28, 0x5e, 0x15, 0x3b, - 0xab, 0x18, 0x3b, 0xbc, 0x12, 0x78, 0xec, 0x7e, 0x0d, 0xdd, 0xe7, 0xef, 0x89, 0x52, 0x2e, 0xb6, - 0xfa, 0x08, 0x62, 0x90, 0x0a, 0x10, 0xf2, 0x9b, 0x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x5f, 0x93, 0xea, 0x9a, - 0x15, 0x00, 0x00, + // 1823 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x58, 0x4f, 0x6f, 0xdb, 0xc8, + 0x15, 0x0f, 0x45, 0xd9, 0x96, 0x9e, 0xfe, 0x44, 0x99, 0x58, 0x36, 0x4d, 0xdb, 0x92, 0xc2, 0xac, + 0xb7, 0xde, 0x60, 0x61, 0x21, 0x2e, 0xda, 0x43, 0x17, 0x68, 0xe1, 0x38, 0x69, 0xd6, 0x40, 0x51, + 0x2c, 0x98, 0x04, 0x8b, 0xee, 0x45, 0x65, 0xc4, 0xb1, 0xc5, 0x2e, 0x25, 0xb2, 0xe4, 0xc8, 0x5e, + 0x07, 0xdd, 0x43, 0xfb, 0x01, 0x8a, 0x05, 0xfa, 0x55, 0x7a, 0xed, 0xbd, 0xa7, 0x22, 0x40, 0x2f, + 0x05, 0x7a, 0x68, 0x91, 0xf4, 0x0b, 0xf4, 0x1b, 0x14, 0xf3, 0x66, 0x86, 0xa2, 0xf8, 0xc7, 0x72, + 0xb6, 0x37, 0xce, 0x9b, 0x99, 0xdf, 0x6f, 0xe6, 0xcd, 0x7b, 0xbf, 0x79, 0x43, 0xe8, 0x3a, 0xa1, + 0x37, 0xbc, 0x7c, 0x3c, 0x74, 0x83, 0xf1, 0x7c, 0x4a, 0x67, 0xec, 0x28, 0x8c, 0x02, 0x16, 0x90, + 0x75, 0x27, 0xf4, 0x8e, 0x2e, 0x1f, 0x9b, 0xfd, 0x8b, 0x20, 0xb8, 0xf0, 0xe9, 0x10, 0xad, 0xaf, + 0xe7, 0xe7, 0x43, 0xe6, 0x4d, 0x69, 0xcc, 0x9c, 0x69, 0x28, 0x06, 0x9a, 0x9b, 0x17, 0xc1, 0x45, + 0x80, 0x9f, 0x43, 0xfe, 0x25, 0xad, 0x7b, 0x72, 0x1a, 0x07, 0x77, 0x66, 0xb3,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0xcb, 0x75, 0x8b, 0x6f, 0x22, 0xe4, 0x02, 0x2b, 0x4b, 0x7e, 0x6c, 0x2c, + 0x45, 0xa4, 0xbe, 0x32, 0x22, 0x3f, 0x81, 0xee, 0x53, 0x59, 0x2b, 0x2f, 0x53, 0x76, 0x40, 0x9f, + 0x47, 0xbe, 0x94, 0x33, 0xfe, 0x79, 0xfc, 0x97, 0x16, 0x34, 0xd4, 0x98, 0x93, 0x2f, 0xce, 0xc8, + 0xb7, 0xcb, 0x77, 0x96, 0x8c, 0x4a, 0x62, 0xdd, 0x10, 0xb2, 0x32, 0x22, 0xcd, 0x87, 0x37, 0x8e, + 0x11, 0xd9, 0x60, 0xed, 0xff, 0xe1, 0xef, 0xff, 0xf9, 0x53, 0x65, 0x9b, 0x74, 0x87, 0x99, 0x47, + 0xdb, 0x70, 0xc2, 0x79, 0xde, 0xc0, 0x66, 0x91, 0x1e, 0x91, 0x04, 0xfb, 0x06, 0xb5, 0x32, 0xb7, + 0x72, 0x87, 0xf2, 0x8c, 0x3f, 0xca, 0xac, 0x03, 0xe4, 0xec, 0x9b, 0x66, 0x8e, 0x33, 0xb9, 0xce, + 0x7e, 0xa2, 0x3d, 0x22, 0x2e, 0xb4, 0x97, 0xb5, 0x92, 0xec, 0x17, 0x6b, 0xe8, 0x2a, 0xbe, 0x5d, + 0xe4, 0xeb, 0x5a, 0x9d, 0x2c, 0x1f, 0x67, 0xf9, 0x12, 0xda, 0xaf, 0x30, 0x32, 0x12, 0x96, 0xdc, + 0x49, 0xae, 0x02, 0x36, 0x0b, 0x81, 0x1d, 0x68, 0x2f, 0x17, 0x71, 0x8b, 0xe5, 0x17, 0x16, 0x77, + 0xa5, 0x2c, 0x06, 0xb2, 0x90, 0x47, 0x39, 0x16, 0xf2, 0x0a, 0x1a, 0xa9, 0x6a, 0x8c, 0x24, 0x57, + 0x4c, 0xbe, 0x44, 0x33, 0x73, 0x9b, 0x52, 0xb0, 0x24, 0x0f, 0xeb, 0xc2, 0xfd,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 0x95, 0xee, 0x58, 0x19, 0x16, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1608,6 +1609,8 @@ type DocumentAPIClient interface { SetDocumentReconvert(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) // 批量更新文档分类 SetDocumentsCategory(ctx context.Context, in *SetDocumentsCategoryRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + // 下载待审核的文档(只有待审核、审核拒绝的文档才能下载) + DownloadDocumentToBeReviewed(ctx context.Context, in *Document, opts ...grpc.CallOption) (*DownloadDocumentReply, error) } type documentAPIClient struct { @@ -1753,6 +1756,15 @@ func (c *documentAPIClient) SetDocumentsCategory(ctx context.Context, in *SetDoc return out, nil } +func (c *documentAPIClient) DownloadDocumentToBeReviewed(ctx context.Context, in *Document, opts ...grpc.CallOption) (*DownloadDocumentReply, error) { + out := new(DownloadDocumentReply) + err := c.cc.Invoke(ctx, "/api.v1.DocumentAPI/DownloadDocumentToBeReviewed", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // DocumentAPIServer is the server API for DocumentAPI service. type DocumentAPIServer interface { // 针对首页的文档查询 @@ -1785,6 +1797,8 @@ type DocumentAPIServer interface { SetDocumentReconvert(context.Context, *emptypb.Empty) (*emptypb.Empty, error) // 批量更新文档分类 SetDocumentsCategory(context.Context, *SetDocumentsCategoryRequest) (*emptypb.Empty, error) + // 下载待审核的文档(只有待审核、审核拒绝的文档才能下载) + DownloadDocumentToBeReviewed(context.Context, *Document) (*DownloadDocumentReply, error) } // UnimplementedDocumentAPIServer can be embedded to have forward compatible implementations. @@ -1836,6 +1850,9 @@ func (*UnimplementedDocumentAPIServer) SetDocumentReconvert(ctx context.Context, func (*UnimplementedDocumentAPIServer) SetDocumentsCategory(ctx context.Context, req *SetDocumentsCategoryRequest) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method SetDocumentsCategory not implemented") } +func (*UnimplementedDocumentAPIServer) DownloadDocumentToBeReviewed(ctx context.Context, req *Document) (*DownloadDocumentReply, error) { + return nil, status.Errorf(codes.Unimplemented, "method DownloadDocumentToBeReviewed not implemented") +} func RegisterDocumentAPIServer(s *grpc.Server, srv DocumentAPIServer) { s.RegisterService(&_DocumentAPI_serviceDesc, srv) @@ -2111,6 +2128,24 @@ func _DocumentAPI_SetDocumentsCategory_Handler(srv interface{}, ctx context.Cont return interceptor(ctx, in, info, handler) } +func _DocumentAPI_DownloadDocumentToBeReviewed_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Document) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DocumentAPIServer).DownloadDocumentToBeReviewed(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/api.v1.DocumentAPI/DownloadDocumentToBeReviewed", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DocumentAPIServer).DownloadDocumentToBeReviewed(ctx, req.(*Document)) + } + return interceptor(ctx, in, info, handler) +} + var _DocumentAPI_serviceDesc = grpc.ServiceDesc{ ServiceName: "api.v1.DocumentAPI", HandlerType: (*DocumentAPIServer)(nil), @@ -2175,6 +2210,10 @@ var _DocumentAPI_serviceDesc = grpc.ServiceDesc{ MethodName: "SetDocumentsCategory", Handler: _DocumentAPI_SetDocumentsCategory_Handler, }, + { + MethodName: "DownloadDocumentToBeReviewed", + Handler: _DocumentAPI_DownloadDocumentToBeReviewed_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/v1/document.proto", diff --git a/api/v1/document.pb.gw.go b/api/v1/document.pb.gw.go index 9f8b904..8850244 100644 --- a/api/v1/document.pb.gw.go +++ b/api/v1/document.pb.gw.go @@ -544,6 +544,42 @@ func local_request_DocumentAPI_SetDocumentsCategory_0(ctx context.Context, marsh } +var ( + filter_DocumentAPI_DownloadDocumentToBeReviewed_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_DocumentAPI_DownloadDocumentToBeReviewed_0(ctx context.Context, marshaler runtime.Marshaler, client DocumentAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq Document + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_DocumentAPI_DownloadDocumentToBeReviewed_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.DownloadDocumentToBeReviewed(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_DocumentAPI_DownloadDocumentToBeReviewed_0(ctx context.Context, marshaler runtime.Marshaler, server DocumentAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq Document + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_DocumentAPI_DownloadDocumentToBeReviewed_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.DownloadDocumentToBeReviewed(ctx, &protoReq) + return msg, metadata, err + +} + var ( filter_RecycleAPI_ListRecycleDocument_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) @@ -1019,6 +1055,29 @@ func RegisterDocumentAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux }) + mux.Handle("GET", pattern_DocumentAPI_DownloadDocumentToBeReviewed_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_DocumentAPI_DownloadDocumentToBeReviewed_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_DocumentAPI_DownloadDocumentToBeReviewed_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -1461,6 +1520,26 @@ func RegisterDocumentAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux }) + mux.Handle("GET", pattern_DocumentAPI_DownloadDocumentToBeReviewed_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_DocumentAPI_DownloadDocumentToBeReviewed_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_DocumentAPI_DownloadDocumentToBeReviewed_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -1494,6 +1573,8 @@ var ( pattern_DocumentAPI_SetDocumentReconvert_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "document", "reconvert"}, "", runtime.AssumeColonVerbOpt(true))) pattern_DocumentAPI_SetDocumentsCategory_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "document", "category"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_DocumentAPI_DownloadDocumentToBeReviewed_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"api", "v1", "document", "download", "bereviewed"}, "", runtime.AssumeColonVerbOpt(true))) ) var ( @@ -1526,6 +1607,8 @@ var ( forward_DocumentAPI_SetDocumentReconvert_0 = runtime.ForwardResponseMessage forward_DocumentAPI_SetDocumentsCategory_0 = runtime.ForwardResponseMessage + + forward_DocumentAPI_DownloadDocumentToBeReviewed_0 = runtime.ForwardResponseMessage ) // RegisterRecycleAPIHandlerFromEndpoint is same as RegisterRecycleAPIHandler but diff --git a/api/v1/document.proto b/api/v1/document.proto index 2d2496f..a9fbbad 100644 --- a/api/v1/document.proto +++ b/api/v1/document.proto @@ -293,6 +293,14 @@ service DocumentAPI { body : '*', }; } + + // 下载待审核的文档(只有待审核、审核拒绝的文档才能下载) + rpc DownloadDocumentToBeReviewed(Document) + returns (DownloadDocumentReply) { + option (google.api.http) = { + get : '/api/v1/document/download/bereviewed', + }; + } } service RecycleAPI { diff --git a/biz/document.go b/biz/document.go index 2651a5a..eff6a7a 100644 --- a/biz/document.go +++ b/biz/document.go @@ -972,3 +972,46 @@ func (s *DocumentAPIService) CheckDocument(ctx context.Context, req *pb.CheckDoc return &emptypb.Empty{}, nil } + +// 下载待审核文档 DownloadDocumentToBeReviewed +func (s *DocumentAPIService) DownloadDocumentToBeReviewed(ctx context.Context, req *pb.Document) (res *pb.DownloadDocumentReply, err error) { + userClaims, err := s.checkPermission(ctx) + if err != nil { + return nil, err + } + + // 查询文档存不存在,以及文档是否是待审状态 + doc, err := s.dbModel.GetDocument(req.Id, "id", "price", "status", "title", "ext", "user_id", "uuid") + if err != nil || !(doc.Status == model.DocumentStatusDisabled || doc.Status == model.DocumentStatusPendingReview || doc.Status == model.DocumentStatusReviewReject) { + return res, status.Errorf(codes.NotFound, "下载失败:文档不存在,或文档不属于待审、审核拒绝或禁用状态") + } + + // 查询附件存不存在 + attachment := s.dbModel.GetAttachmentByTypeAndTypeId(model.AttachmentTypeDocument, doc.Id, "id", "hash") + if attachment.Id == 0 { + return res, status.Errorf(codes.NotFound, "附件不存在") + } + + down := &model.Download{ + UserId: userClaims.UserId, + DocumentId: doc.Id, + Ip: util.GetGRPCRemoteIP(ctx), + IsPay: false, + } + + // 创建下载记录 + err = s.dbModel.CreateDownload(down) + if err != nil { + return res, status.Errorf(codes.Internal, "创建下载失败:%s", err.Error()) + } + + cfgDown := s.dbModel.GetConfigOfDownload() + link, err := s.generateDownloadURL(doc, cfgDown, attachment.Hash) + if err != nil { + return res, status.Errorf(codes.Internal, "生成下载地址失败:%s", err.Error()) + } + res = &pb.DownloadDocumentReply{ + Url: link, + } + return res, nil +} diff --git a/model/data.go b/model/data.go index f0f3281..d83c44b 100644 --- a/model/data.go +++ b/model/data.go @@ -85,6 +85,7 @@ func getPermissions() (permissions []Permission) { {Title: "删除搜索记录", Description: "", Method: "GRPC", Path: "/api.v1.SearchRecordAPI/DeleteSearchRecord"}, {Title: "更新评论", Description: "", Method: "GRPC", Path: "/api.v1.CommentAPI/UpdateComment"}, {Title: "文档审核", Description: "", Method: "GRPC", Path: "/api.v1.DocumentAPI/CheckDocument"}, + {Title: "下载待审文档", Description: "", Method: "GRPC", Path: "/api.v1.DocumentAPI/DownloadDocumentToBeReviewed"}, } return }