feat: refactor runtime to use application runtime executor and update related types

This commit is contained in:
mlogclub
2026-04-14 12:13:33 +08:00
parent c79d508177
commit fcb2e11998
16 changed files with 90 additions and 98 deletions
+2 -2
View File
@@ -18,14 +18,14 @@ type service struct {
app *applicationruntime.Service
}
func (s *service) Run(ctx context.Context, req Request) (*Summary, error) {
func (s *service) Run(ctx context.Context, req applicationruntime.Request) (*applicationruntime.Summary, error) {
if s == nil || s.app == nil {
return nil, nil
}
return s.app.Run(ctx, req)
}
func (s *service) Resume(ctx context.Context, req ResumeRequest) (*Summary, error) {
func (s *service) Resume(ctx context.Context, req applicationruntime.ResumeRequest) (*applicationruntime.Summary, error) {
if s == nil || s.app == nil {
return nil, nil
}