2023-01-01 23:55:02 +08:00
|
|
|
package store
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
)
|
|
|
|
|
2023-07-06 21:56:42 +08:00
|
|
|
type Activity struct {
|
2023-08-04 21:55:07 +08:00
|
|
|
ID int32
|
2023-06-26 23:06:53 +08:00
|
|
|
|
|
|
|
// Standard fields
|
2023-08-04 21:55:07 +08:00
|
|
|
CreatorID int32
|
2023-06-26 23:06:53 +08:00
|
|
|
CreatedTs int64
|
|
|
|
|
|
|
|
// Domain specific fields
|
|
|
|
Type string
|
|
|
|
Level string
|
|
|
|
Payload string
|
|
|
|
}
|
|
|
|
|
2023-07-06 21:56:42 +08:00
|
|
|
func (s *Store) CreateActivity(ctx context.Context, create *Activity) (*Activity, error) {
|
2023-09-26 17:16:58 +08:00
|
|
|
return s.driver.CreateActivity(ctx, create)
|
2023-06-26 23:06:53 +08:00
|
|
|
}
|