mirror of
https://github.com/samuelncui/yatm.git
synced 2026-01-05 13:05:42 +00:00
16 lines
319 B
Go
16 lines
319 B
Go
package apis
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/abc950309/tapewriter/entity"
|
|
)
|
|
|
|
func (api *API) TapeDelete(ctx context.Context, req *entity.TapeDeleteRequest) (*entity.TapeDeleteReply, error) {
|
|
if err := api.lib.DeleteTapes(ctx, req.Ids...); err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return &entity.TapeDeleteReply{}, nil
|
|
}
|