feat: implement battle replay module with database migrations, repository, and CRUD service endpoints
All checks were successful
Build and Release / release (push) Successful in 1m32s
All checks were successful
Build and Release / release (push) Successful in 1m32s
This commit is contained in:
@@ -9,6 +9,14 @@ type CommitSnapshot struct {
|
||||
Wikis []*WikiSnapshot `json:"wikis,omitempty" validate:"omitempty,dive"`
|
||||
GeometryEntity []*GeometryEntitySnapshot `json:"geometry_entity,omitempty" validate:"omitempty,dive"`
|
||||
EntityWiki []*EntityWikiLinkSnapshot `json:"entity_wiki,omitempty" validate:"omitempty,dive"`
|
||||
Replays []*BattleReplaySnapshot `json:"replays,omitempty" validate:"omitempty,dive"`
|
||||
}
|
||||
|
||||
type BattleReplaySnapshot struct {
|
||||
ID string `json:"id" validate:"required,uuidv7"`
|
||||
GeometryID string `json:"geometry_id" validate:"required,uuidv7"`
|
||||
TargetGeometryIDs []string `json:"target_geometry_ids,omitempty" validate:"omitempty,dive,uuidv7"`
|
||||
Detail json.RawMessage `json:"detail,omitempty"`
|
||||
}
|
||||
|
||||
type FeatureCollection struct {
|
||||
|
||||
17
internal/dtos/response/battle_replay.go
Normal file
17
internal/dtos/response/battle_replay.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package response
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"time"
|
||||
)
|
||||
|
||||
type BattleReplayResponse struct {
|
||||
ID string `json:"id"`
|
||||
GeometryID string `json:"geometry_id"`
|
||||
ProjectID string `json:"project_id"`
|
||||
TargetGeometryIDs json.RawMessage `json:"target_geometry_ids,omitempty"`
|
||||
Detail json.RawMessage `json:"detail,omitempty"`
|
||||
IsDeleted bool `json:"is_deleted,omitempty"`
|
||||
CreatedAt *time.Time `json:"created_at,omitempty"`
|
||||
UpdatedAt *time.Time `json:"updated_at,omitempty"`
|
||||
}
|
||||
Reference in New Issue
Block a user