feat: job list

This commit is contained in:
Samuel N Cui
2023-08-29 18:02:57 +08:00
parent cda9244e8e
commit 852cf8212e
80 changed files with 6173 additions and 1854 deletions

16
apis/library_export.go Normal file
View File

@@ -0,0 +1,16 @@
package apis
import (
"context"
"github.com/abc950309/tapewriter/entity"
)
func (api *API) LibraryExport(ctx context.Context, req *entity.LibraryExportRequest) (*entity.LibraryExportReply, error) {
buf, err := api.lib.Export(ctx, req.Types)
if err != nil {
return nil, err
}
return &entity.LibraryExportReply{Json: buf}, nil
}