mirror of
https://github.com/samuelncui/yatm.git
synced 2026-01-03 11:45:21 +00:00
feat: job list
This commit is contained in:
16
apis/library_export.go
Normal file
16
apis/library_export.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user