Documentation ¶
Index ¶
- Variables
- func CommonAddDomain(domain *model.Domain) error
- func CommonAddView(view *model.View) error
- func CommonAddZone(zone *model.Zone) error
- func CommonUpdateDomain(newDomain *model.Domain) error
- func CommonUpdateView(updateview *model.View) error
- type BaseLogic
- type DomainLogic
- func (d DomainLogic) Add(c *gin.Context, req interface{}) (data interface{}, resError interface{})
- func (d DomainLogic) Delete(c *gin.Context, req interface{}) (data interface{}, rspError interface{})
- func (d DomainLogic) List(c *gin.Context, req interface{}) (data interface{}, resError interface{})
- func (d DomainLogic) Update(c *gin.Context, req interface{}) (data interface{}, rspError interface{})
- type ViewLogic
- func (v ViewLogic) Add(c *gin.Context, req interface{}) (data interface{}, resError interface{})
- func (v ViewLogic) Delete(c *gin.Context, req interface{}) (data interface{}, rspError interface{})
- func (v ViewLogic) List(c *gin.Context, req interface{}) (data interface{}, resError interface{})
- func (v ViewLogic) Update(c *gin.Context, req interface{}) (data interface{}, rspError interface{})
- type ZoneLogic
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ReqAssertErr = tools.NewRspError(tools.SystemErr, fmt.Errorf("请求异常")) Domain = &DomainLogic{} View = &ViewLogic{} Zone = &ZoneLogic{} Base = &BaseLogic{} )
Functions ¶
func CommonUpdateDomain ¶
CommonUpdateDomain 标准更新域名普通字段
func CommonUpdateView ¶
CommonUpdateView 标准更新视图资源普通字段
Types ¶
type DomainLogic ¶
type DomainLogic struct{}
func (DomainLogic) Add ¶
func (d DomainLogic) Add(c *gin.Context, req interface{}) (data interface{}, resError interface{})
Add 添加域名数据
func (DomainLogic) Delete ¶
func (d DomainLogic) Delete(c *gin.Context, req interface{}) (data interface{}, rspError interface{})
Delete 删除域名记录
func (DomainLogic) List ¶
func (d DomainLogic) List(c *gin.Context, req interface{}) (data interface{}, resError interface{})
List 数据列表
func (DomainLogic) Update ¶
func (d DomainLogic) Update(c *gin.Context, req interface{}) (data interface{}, rspError interface{})
Update 更新域名数据
type ViewLogic ¶
type ViewLogic struct{}
Click to show internal directories.
Click to hide internal directories.