go integration and wikipedia
This commit is contained in:
parent
47a252e339
commit
ee90335b92
7828 changed files with 1307913 additions and 20807 deletions
17
backend/internal/models/alias.go
Normal file
17
backend/internal/models/alias.go
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
package models
|
||||
|
||||
import "time"
|
||||
|
||||
type EntityAlias struct {
|
||||
ID int `json:"id"`
|
||||
CanonicalName string `json:"canonical_name"`
|
||||
Alias string `json:"alias"`
|
||||
Tipo string `json:"tipo"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
}
|
||||
|
||||
type EntityAliasRequest struct {
|
||||
CanonicalName string `json:"canonical_name" binding:"required"`
|
||||
Aliases []string `json:"aliases" binding:"required,min=1"`
|
||||
Tipo string `json:"tipo" binding:"required,oneof=persona organizacion lugar tema"`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue