Skip to content

Commit

Permalink
feat: define all models
Browse files Browse the repository at this point in the history
  • Loading branch information
moul committed Mar 14, 2019
1 parent ce79c6b commit e41c2b4
Show file tree
Hide file tree
Showing 5 changed files with 3,974 additions and 984 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ _ci_prepare:
.PHONY: generate
generate: .proto.generated
.proto.generated: $(OUR_PROTOS)
rm -f $(GENERATED_FILES)
rm -f $(GENERATED_PB_FILES)
go mod vendor
docker run \
--user="$(shell id -u)" \
--volume="$(PWD):/go/src/pathwar.pw" \
--workdir="/go/src/pathwar.pw" \
--pwctl="sh" \
--entrypoint="sh" \
--rm \
pathwar/protoc:v1 \
-xec "make _proto_generate"
Expand Down
16 changes: 14 additions & 2 deletions entity/entity.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,22 @@ package entity

func All() []interface{} {
return []interface{}{
Achievement{},
Coupon{},
Event{},
Hypervisor{},
LevelFlavor{},
LevelInstance{},
LevelSubscription{},
Level{},
UserSession{},
User{},
Notification{},
ShopItem{},
TeamMember{},
Team{},
TournamentTeam{},
Tournament{},
UserSession{},
User{},
WhoswhoAttempt{},
}
}
Loading

0 comments on commit e41c2b4

Please sign in to comment.