add language api docs

This commit is contained in:
2026-04-07 00:44:29 +02:00
parent cd7943cf6f
commit 2b1642f450
5 changed files with 2356 additions and 0 deletions

15
models/language.go Normal file
View File

@@ -0,0 +1,15 @@
package models
import (
"gorm.io/gorm"
)
type LanguageRequest struct {
Code string `gorm:"uniqueIndex;size:5;not null" json:"code" binding:"required"`
Name string `gorm:"not null" json:"name" binding:"required"`
}
type Language struct {
gorm.Model
LanguageRequest
}