Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ 新增 LogData Entity #146

Merged
merged 3 commits into from
Aug 30, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ package tw.waterballsa.gaas.spring

import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.springframework.data.mongodb.config.EnableMongoAuditing

@SpringBootApplication(scanBasePackages = ["tw.waterballsa.gaas"])
@EnableMongoAuditing
class LobbyPlatformApplication

fun main(args: Array<String>) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package tw.waterballsa.gaas.spring.repositories.data

import org.springframework.data.annotation.CreatedDate
import org.springframework.data.annotation.Id
import org.springframework.data.mongodb.core.mapping.DBRef
import org.springframework.data.mongodb.core.mapping.Document
import java.time.LocalDate

@Document(collection = "gameDevelopmentLog")
class GameDevelopmentLog(
@Id
var id: String? = null,
var title: String,
@CreatedDate
val createdDate: LocalDate,
val author: String,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Q:這個是「非平台用戶」也能發嗎?

val tags: MutableList<String>,
var contents: String,
@DBRef
var category: LogCategory
)
ricksu978 marked this conversation as resolved.
Show resolved Hide resolved
ricksu978 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package tw.waterballsa.gaas.spring.repositories.data

import org.springframework.data.mongodb.core.mapping.Document

@Document
class LogCategory(
var id: String,
Wally5077 marked this conversation as resolved.
Show resolved Hide resolved
var type: String
)