Package com.tp2020.backend.controllers.question.dto

Types

GetQuestionDto
Link copied to clipboard
data class GetQuestionDto(id: Long, question: String, answer: String, categoryId: Int, order: Int, viewsNumber: Int?, likesNumber: Int?, createdBy: Long, createdAt: LocalDateTime, updatedBy: Long?, updatedAt: LocalDateTime?)
PostQuestionDto
Link copied to clipboard
data class PostQuestionDto(question: String, answer: String, categoryId: Int, order: Int?)
PutQuestionDto
Link copied to clipboard
data class PutQuestionDto(id: Long, question: String?, answer: String?, categoryId: Int, order: Int?)

Functions

toGetQuestionDto
Link copied to clipboard
fun ResultRow.toGetQuestionDto(): GetQuestionDto