gradle/wrapper | ||
scripts | ||
src | ||
.gitignore | ||
build.gradle.kts | ||
docker-compose.yaml | ||
gradle.properties | ||
gradlew | ||
gradlew.bat | ||
README.md | ||
settings.gradle.kts |
Ktor 项目
Kotlin + Gradle + Ktor + Exposed + Docker
api
bill
GET /api/v1/bill/{year}/{month?}/{day?}
POST /api/v1/bill/
Body List<{
type: Int,
date: String,
money: Float,
cls: String,
label: String,
options: String,
}>
DELETE /api/v1/bill/{id}
PUT /api/v1/bill/
Body {
id: Int?,
type: Int,
date: String,
money: Float,
cls: String,
label: String,
options: String,
}
label
GET /api/v1/label/
POST /api/v1/label/
Body {
type: String,
name: String,
relativeId: Int?,
}