mirror of
https://git.freecumextremist.com/grumbulon/pomme.git
synced 2024-07-01 08:26:06 +00:00
21 lines
429 B
Go
21 lines
429 B
Go
package api
|
|
|
|
import "gorm.io/gorm"
|
|
|
|
// ZoneRequest represents a Zone file request.
|
|
type ZoneRequest struct {
|
|
*Zone
|
|
|
|
User string `json:"user,omitempty" gorm:"foreignKey:username;references:User"`
|
|
}
|
|
|
|
// Zone struct represents a zonefile.
|
|
type Zone struct {
|
|
gorm.Model
|
|
FileName string `json:"name"`
|
|
RawFileName string `json:"rawname"`
|
|
Body string `json:"body,omitempty"`
|
|
}
|
|
|
|
type genericResponseFields map[string]any
|