🎨 新增域名管理功能
This commit is contained in:
16
model/app/domain.go
Normal file
16
model/app/domain.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package app
|
||||
|
||||
import "git.echol.cn/loser/lckt/global"
|
||||
|
||||
type Domain struct {
|
||||
global.GVA_MODEL
|
||||
Name string `json:"name" gorm:"column:name;comment:域名名称"` // 域名名称
|
||||
DomainUrl string `json:"domain_url" gorm:"column:domain;comment:域名"` // 域名
|
||||
Description string `json:"description" gorm:"column:description;comment:域名描述"` // 域名描述
|
||||
Status int `json:"status" gorm:"column:status;comment:状态 1 启用 2 禁用"` // 状态 1 启用 2 禁用
|
||||
Type int `json:"type" gorm:"column:type;comment:类型 1 炮灰域名 2 入口域名"` // 类型 1 炮灰域名 2 入口域名
|
||||
}
|
||||
|
||||
func (Domain) TableName() string {
|
||||
return "app_domain"
|
||||
}
|
||||
11
model/app/request/domain.go
Normal file
11
model/app/request/domain.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package request
|
||||
|
||||
import common "git.echol.cn/loser/lckt/model/common/request"
|
||||
|
||||
type GetDomainList struct {
|
||||
common.PageInfo
|
||||
Name string `json:"name" form:"name"` // 域名名称
|
||||
Domain string `json:"domain" form:"domain"` // 域名
|
||||
Status int `json:"status" form:"status"` // 状态 1 启用 2 禁用
|
||||
Type int `json:"type" form:"type"` // 类型 1 炮灰域名 2 业务域名 3 入口域名
|
||||
}
|
||||
Reference in New Issue
Block a user