23 lines
464 B
Go
23 lines
464 B
Go
|
|
package controllers
|
||
|
|
|
||
|
|
import (
|
||
|
|
"context"
|
||
|
|
"gotemplate/api/grpc/spec"
|
||
|
|
"gotemplate/internal/export"
|
||
|
|
)
|
||
|
|
|
||
|
|
type ExportController struct {
|
||
|
|
spec.UnimplementedExportServiceServer
|
||
|
|
export export.Service
|
||
|
|
}
|
||
|
|
|
||
|
|
func NewExportController(exportSvc export.Service) *ExportController {
|
||
|
|
return &ExportController{
|
||
|
|
export: exportSvc,
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (s *ExportController) Trigger(ctx context.Context, req *spec.ExportTrigger) (*spec.IdMessage, error) {
|
||
|
|
return &spec.IdMessage{}, nil
|
||
|
|
}
|