文档一键设置为重转

dev
truthhun 1 year ago
parent 0d5dff4ada
commit c5b74e234a

@ -1255,107 +1255,109 @@ func init() {
func init() { proto.RegisterFile("api/v1/document.proto", fileDescriptor_55a584ae3a7fc022) }
var fileDescriptor_55a584ae3a7fc022 = []byte{
// 1600 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x58, 0xc1, 0x6f, 0xe3, 0x4c,
0x15, 0x5f, 0xc7, 0x49, 0x9b, 0xbc, 0xa4, 0xd9, 0x74, 0xda, 0xb4, 0xae, 0xd3, 0x26, 0xf9, 0x5c,
0x0a, 0xf9, 0x2a, 0xd4, 0x68, 0x8b, 0xe0, 0xc0, 0x77, 0x40, 0xfd, 0xba, 0x4b, 0xa9, 0x84, 0xd0,
0xca, 0xcb, 0x6a, 0xa5, 0xbd, 0x14, 0x6f, 0x3c, 0x4d, 0x2c, 0x9c, 0xd8, 0xd8, 0x93, 0x86, 0x56,
0x70, 0x41, 0x9c, 0xd1, 0x4a, 0x48, 0xfc, 0x25, 0xdc, 0xf8, 0x07, 0x38, 0xae, 0xc4, 0x05, 0x89,
0x03, 0x68, 0x97, 0x2b, 0x07, 0xfe, 0x03, 0x34, 0x6f, 0x66, 0x12, 0x27, 0xb6, 0xdb, 0xb2, 0xdf,
0xcd, 0xf3, 0xe6, 0xcd, 0xef, 0x37, 0xef, 0xcd, 0x7b, 0xbf, 0x99, 0x04, 0x9a, 0x4e, 0xe8, 0xf5,
0x6f, 0x9e, 0xf5, 0xdd, 0x60, 0x30, 0x1d, 0xd3, 0x09, 0x3b, 0x09, 0xa3, 0x80, 0x05, 0x64, 0xcd,
0x09, 0xbd, 0x93, 0x9b, 0x67, 0x66, 0x67, 0x18, 0x04, 0x43, 0x9f, 0xf6, 0xd1, 0xfa, 0x6e, 0x7a,
0xdd, 0x67, 0xde, 0x98, 0xc6, 0xcc, 0x19, 0x87, 0xc2, 0xd1, 0xd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, 0xd9, 0x6a, 0x23, 0x89, 0x41, 0x72, 0x48, 0x4e, 0xff,
0xa1, 0x03, 0xc8, 0xc7, 0x36, 0x97, 0xbb, 0x40, 0xc8, 0xdd, 0xca, 0xf3, 0xfb, 0xb3, 0xcf, 0xec,
0xbe, 0x2a, 0x44, 0x06, 0xf2, 0x1b, 0xd8, 0xc9, 0x7e, 0xf2, 0x93, 0x23, 0x05, 0x7b, 0xef, 0x4f,
0x82, 0xdc, 0xec, 0x1e, 0x22, 0xf5, 0x81, 0x99, 0x4b, 0xcd, 0xf3, 0x1b, 0xaa, 0x5f, 0x26, 0xab,
0xe4, 0x9f, 0x29, 0x15, 0x32, 0xde, 0xe3, 0xfc, 0x78, 0x7d, 0xd8, 0x3e, 0xf7, 0xa9, 0x93, 0x8a,
0x36, 0x07, 0x31, 0x97, 0xe9, 0x5b, 0xc8, 0xd4, 0x3e, 0xde, 0xcf, 0x63, 0xea, 0x3b, 0xbe, 0xff,
0xf5, 0xf7, 0xff, 0xfa, 0xb1, 0xad, 0x7d, 0xf8, 0xd8, 0xd6, 0xfe, 0xf5, 0xb1, 0xad, 0xbd, 0xff,
0xd4, 0x7e, 0xf2, 0xe1, 0x53, 0xfb, 0xc9, 0xdf, 0x3f, 0xb5, 0x9f, 0x80, 0xfc, 0xdf, 0xe9, 0xa5,
0xf6, 0x76, 0x73, 0x1c, 0x44, 0xd4, 0x0d, 0x06, 0x12, 0xe8, 0xab, 0x9b, 0x67, 0xef, 0xd6, 0x90,
0xec, 0x7b, 0xff, 0x0b, 0x00, 0x00, 0xff, 0xff, 0xd1, 0x18, 0x50, 0xbe, 0xb4, 0x12, 0x00, 0x00,
// 1619 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x58, 0x41, 0x6f, 0x1b, 0x4f,
0x15, 0xef, 0x7a, 0xed, 0xc4, 0x79, 0x76, 0x5c, 0x67, 0x12, 0x27, 0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xc1, 0x1f, 0x20, 0xf5, 0xbe, 0x99, 0x4b, 0xcd, 0xcf, 0x32,
0x54, 0xbf, 0x82, 0x96, 0xc9, 0xbf, 0x50, 0x96, 0x64, 0xbc, 0x47, 0xf9, 0xf1, 0xfa, 0xb0, 0x75,
0xe6, 0x53, 0x27, 0x15, 0xed, 0xe7, 0x9e, 0xed, 0xb7, 0x90, 0xa9, 0x75, 0xb4, 0x97, 0xc7, 0xd4,
0x73, 0x7c, 0xff, 0xd9, 0xf7, 0xff, 0xf6, 0xb1, 0xa5, 0x7d, 0xf8, 0xd8, 0xd2, 0xfe, 0xf3, 0xb1,
0xa5, 0xbd, 0xff, 0xd4, 0x7a, 0xf4, 0xe1, 0x53, 0xeb, 0xd1, 0x3f, 0x3e, 0xb5, 0x1e, 0x81, 0xfc,
0x8f, 0xeb, 0xa5, 0xf6, 0x76, 0x63, 0x14, 0x44, 0xd4, 0x0d, 0xfa, 0x12, 0xe8, 0xe9, 0xf5, 0x93,
0x77, 0x2b, 0x48, 0xf6, 0xbd, 0xff, 0x07, 0x00, 0x00, 0xff, 0xff, 0x15, 0xe4, 0xcf, 0xff, 0x20,
0x13, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
@ -1384,6 +1386,8 @@ type DocumentAPIClient interface {
SetDocumentScore(ctx context.Context, in *DocumentScore, opts ...grpc.CallOption) (*emptypb.Empty, error)
// 获取当前登录用户的文档评分
GetDocumentScore(ctx context.Context, in *DocumentScore, opts ...grpc.CallOption) (*DocumentScore, error)
// 将文档一键设置为重转
SetDocumentReconvert(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
type documentAPIClient struct {
@ -1502,6 +1506,15 @@ func (c *documentAPIClient) GetDocumentScore(ctx context.Context, in *DocumentSc
return out, nil
}
func (c *documentAPIClient) SetDocumentReconvert(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/api.v1.DocumentAPI/SetDocumentReconvert", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// DocumentAPIServer is the server API for DocumentAPI service.
type DocumentAPIServer interface {
ListDocumentForHome(context.Context, *ListDocumentForHomeRequest) (*ListDocumentForHomeResponse, error)
@ -1518,6 +1531,8 @@ type DocumentAPIServer interface {
SetDocumentScore(context.Context, *DocumentScore) (*emptypb.Empty, error)
// 获取当前登录用户的文档评分
GetDocumentScore(context.Context, *DocumentScore) (*DocumentScore, error)
// 将文档一键设置为重转
SetDocumentReconvert(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
}
// UnimplementedDocumentAPIServer can be embedded to have forward compatible implementations.
@ -1560,6 +1575,9 @@ func (*UnimplementedDocumentAPIServer) SetDocumentScore(ctx context.Context, req
func (*UnimplementedDocumentAPIServer) GetDocumentScore(ctx context.Context, req *DocumentScore) (*DocumentScore, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetDocumentScore not implemented")
}
func (*UnimplementedDocumentAPIServer) SetDocumentReconvert(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetDocumentReconvert not implemented")
}
func RegisterDocumentAPIServer(s *grpc.Server, srv DocumentAPIServer) {
s.RegisterService(&_DocumentAPI_serviceDesc, srv)
@ -1781,6 +1799,24 @@ func _DocumentAPI_GetDocumentScore_Handler(srv interface{}, ctx context.Context,
return interceptor(ctx, in, info, handler)
}
func _DocumentAPI_SetDocumentReconvert_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DocumentAPIServer).SetDocumentReconvert(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.v1.DocumentAPI/SetDocumentReconvert",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DocumentAPIServer).SetDocumentReconvert(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
var _DocumentAPI_serviceDesc = grpc.ServiceDesc{
ServiceName: "api.v1.DocumentAPI",
HandlerType: (*DocumentAPIServer)(nil),
@ -1833,6 +1869,10 @@ var _DocumentAPI_serviceDesc = grpc.ServiceDesc{
MethodName: "GetDocumentScore",
Handler: _DocumentAPI_GetDocumentScore_Handler,
},
{
MethodName: "SetDocumentReconvert",
Handler: _DocumentAPI_SetDocumentReconvert_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "api/v1/document.proto",

@ -458,6 +458,24 @@ func local_request_DocumentAPI_GetDocumentScore_0(ctx context.Context, marshaler
}
func request_DocumentAPI_SetDocumentReconvert_0(ctx context.Context, marshaler runtime.Marshaler, client DocumentAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq emptypb.Empty
var metadata runtime.ServerMetadata
msg, err := client.SetDocumentReconvert(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_DocumentAPI_SetDocumentReconvert_0(ctx context.Context, marshaler runtime.Marshaler, server DocumentAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq emptypb.Empty
var metadata runtime.ServerMetadata
msg, err := server.SetDocumentReconvert(ctx, &protoReq)
return msg, metadata, err
}
var (
filter_RecycleAPI_ListRecycleDocument_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
)
@ -864,6 +882,29 @@ func RegisterDocumentAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux
})
mux.Handle("PUT", pattern_DocumentAPI_SetDocumentReconvert_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_SetDocumentReconvert_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_SetDocumentReconvert_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
return nil
}
@ -1246,6 +1287,26 @@ func RegisterDocumentAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux
})
mux.Handle("PUT", pattern_DocumentAPI_SetDocumentReconvert_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_SetDocumentReconvert_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_SetDocumentReconvert_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
return nil
}
@ -1273,6 +1334,8 @@ var (
pattern_DocumentAPI_SetDocumentScore_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "document", "score"}, "", runtime.AssumeColonVerbOpt(true)))
pattern_DocumentAPI_GetDocumentScore_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "document", "score"}, "", runtime.AssumeColonVerbOpt(true)))
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)))
)
var (
@ -1299,6 +1362,8 @@ var (
forward_DocumentAPI_SetDocumentScore_0 = runtime.ForwardResponseMessage
forward_DocumentAPI_GetDocumentScore_0 = runtime.ForwardResponseMessage
forward_DocumentAPI_SetDocumentReconvert_0 = runtime.ForwardResponseMessage
)
// RegisterRecycleAPIHandlerFromEndpoint is same as RegisterRecycleAPIHandler but

@ -211,6 +211,14 @@ service DocumentAPI {
get : '/api/v1/document/score',
};
}
//
rpc SetDocumentReconvert(google.protobuf.Empty)
returns (google.protobuf.Empty) {
option (google.api.http) = {
put : '/api/v1/document/reconvert',
};
}
}
service RecycleAPI {

@ -741,3 +741,19 @@ func (s *DocumentAPIService) SetDocumentScore(ctx context.Context, req *pb.Docum
return &emptypb.Empty{}, nil
}
// SetDocumentReconvert
func (s *DocumentAPIService) SetDocumentReconvert(ctx context.Context, req *emptypb.Empty) (res *emptypb.Empty, err error) {
_, err = s.checkPermission(ctx)
if err != nil {
return nil, err
}
// 更新文档状态
err = s.dbModel.SetDocumentReconvert()
if err != nil {
return nil, status.Errorf(codes.Internal, "更新文档状态失败:%s", err.Error())
}
return &emptypb.Empty{}, nil
}

@ -68,17 +68,6 @@ func (Document) TableName() string {
return tablePrefix + "document"
}
// CreateDocument 创建Document
// TODO: 创建成功之后,注意相关表统计字段数值的增减
func (m *DBModel) CreateDocument(document *Document) (err error) {
err = m.db.Create(document).Error
if err != nil {
m.logger.Error("CreateDocument", zap.Error(err))
return
}
return
}
// UpdateDocument 更新Document如果需要更新指定字段则请指定updateFields参数
func (m *DBModel) UpdateDocument(document *Document, categoryId []int64, updateFields ...string) (err error) {
sess := m.db.Begin()
@ -155,6 +144,16 @@ func (m *DBModel) UpdateDocument(document *Document, categoryId []int64, updateF
return
}
func (m *DBModel) SetDocumentReconvert() (err error) {
err = m.db.Model(&Document{}).
Where("status = ?", DocumentStatusFailed).
Update("status", DocumentStatusPending).Error
if err != nil {
m.logger.Error("SetDocumentReconvert", zap.Error(err))
}
return
}
func (m *DBModel) UpdateDocumentField(id int64, fieldValue map[string]interface{}) (err error) {
err = m.db.Model(&Document{}).Where("id = ?", id).Updates(fieldValue).Error
if err != nil {

@ -24,6 +24,14 @@ export const setDocumentRecommend = (data) => {
})
}
export const setDocumentReconvert = (data) => {
return service({
url: '/api/v1/document/reconvert',
method: 'put',
data,
})
}
export const deleteDocument = (params) => {
return service({
url: '/api/v1/document',

@ -10,7 +10,25 @@
@onSearch="onSearch"
@onCreate="onCreate"
@onDelete="batchDelete"
/>
>
<template slot="buttons">
<el-form-item>
<el-tooltip
class="item"
effect="dark"
content="将转换失败的文档一键重置为待转换状态,以便重新转换"
placement="top"
>
<el-button
type="warning"
@click="reconvertDocument"
icon="el-icon-refresh"
>失败重转</el-button
>
</el-tooltip>
</el-form-item>
</template>
</FormSearch>
</el-card>
<el-card shadow="never" class="mgt-20px">
<TableList
@ -79,7 +97,12 @@
<script>
import { listCategory } from '~/api/category'
import { deleteDocument, getDocument, listDocument } from '~/api/document'
import {
deleteDocument,
getDocument,
listDocument,
setDocumentReconvert,
} from '~/api/document'
import TableList from '~/components/TableList.vue'
import FormSearch from '~/components/FormSearch.vue'
import { categoryToTrees } from '~/utils/utils'
@ -190,6 +213,15 @@ export default {
})
window.open(routeUrl.href, '_blank')
},
async reconvertDocument() {
const res = await setDocumentReconvert()
if (res.status === 200) {
this.$message.success('提交成功,请耐心等待重新转换')
this.listDocument()
} else {
this.$message.error(res.data.message || '操作失败')
}
},
viewRow(row) {
//
const routeUrl = this.$router.resolve({

@ -10,27 +10,31 @@
@onSearch="onSearch"
>
<template slot="buttons">
<el-button
type="success"
icon="el-icon-refresh-left"
:disabled="selectedRow.length === 0"
@click="batchRecover"
>恢复选中</el-button
>
<el-button
type="warning"
icon="el-icon-close"
:disabled="selectedRow.length === 0"
@click="batchDelete"
>删除选中</el-button
>
<el-button
type="danger"
:disabled="selectedRow.length > 0"
icon="el-icon-delete"
@click="clearAll"
>清空回收站</el-button
>
<el-form-item>
<el-button
type="success"
icon="el-icon-refresh-left"
:disabled="selectedRow.length === 0"
@click="batchRecover"
>恢复选中</el-button
> </el-form-item
><el-form-item>
<el-button
type="warning"
icon="el-icon-close"
:disabled="selectedRow.length === 0"
@click="batchDelete"
>删除选中</el-button
> </el-form-item
><el-form-item>
<el-button
type="danger"
:disabled="selectedRow.length > 0"
icon="el-icon-delete"
@click="clearAll"
>清空回收站</el-button
>
</el-form-item>
</template>
</FormSearch>
</el-card>

Loading…
Cancel
Save