mirror of
https://github.com/samuelncui/yatm.git
synced 2026-01-07 13:55:21 +00:00
16 lines
314 B
Go
16 lines
314 B
Go
package apis
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/abc950309/tapewriter/entity"
|
|
)
|
|
|
|
func (api *API) JobDelete(ctx context.Context, req *entity.JobDeleteRequest) (*entity.JobDeleteReply, error) {
|
|
if err := api.exe.DeleteJobs(ctx, req.Ids...); err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return &entity.JobDeleteReply{}, nil
|
|
}
|