🎨 新增域名管理功能

This commit is contained in:
2025-09-11 21:03:57 +08:00
parent 2293ee2463
commit 57289a24e7
10 changed files with 209 additions and 0 deletions

16
model/app/domain.go Normal file
View 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"
}

View 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 入口域名
}