mirror of
https://github.com/lzh-1625/go_process_manager.git
synced 2025-09-28 21:02:11 +08:00
15 lines
337 B
Go
15 lines
337 B
Go
package repository
|
|
|
|
import (
|
|
"github.com/lzh-1625/go_process_manager/internal/app/model"
|
|
"github.com/lzh-1625/go_process_manager/internal/app/repository/query"
|
|
)
|
|
|
|
type eventRepository struct{}
|
|
|
|
var EventRepository = new(eventRepository)
|
|
|
|
func (e *eventRepository) Create(event model.Event) error {
|
|
return query.Event.Create(&event)
|
|
}
|