logic

package
v0.0.0-...-03609d5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 CommonAddDomain

func CommonAddDomain(domain *model.Domain) error

CommonAddDomain 标准创建域名

func CommonAddView

func CommonAddView(view *model.View) error

CommonAddView 标准创建视图

func CommonAddZone

func CommonAddZone(zone *model.Zone) error

CommonAddZone 标准创建zone

func CommonUpdateDomain

func CommonUpdateDomain(newDomain *model.Domain) error

CommonUpdateDomain 标准更新域名普通字段

func CommonUpdateView

func CommonUpdateView(updateview *model.View) error

CommonUpdateView 标准更新视图资源普通字段

Types

type BaseLogic

type BaseLogic struct{}

func (BaseLogic) GetPasswd

func (l BaseLogic) GetPasswd(c *gin.Context, req interface{}) (data interface{}, rspError interface{})

GetPasswd

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{}

func (ViewLogic) Add

func (v ViewLogic) Add(c *gin.Context, req interface{}) (data interface{}, resError interface{})

Add 添加视图数据

func (ViewLogic) Delete

func (v ViewLogic) Delete(c *gin.Context, req interface{}) (data interface{}, rspError interface{})

Delete 删除视图记录

func (ViewLogic) List

func (v ViewLogic) List(c *gin.Context, req interface{}) (data interface{}, resError interface{})

List 数据列表

func (ViewLogic) Update

func (v ViewLogic) Update(c *gin.Context, req interface{}) (data interface{}, rspError interface{})

Update 更新域名数据

type ZoneLogic

type ZoneLogic struct{}

func (ZoneLogic) Add

func (z ZoneLogic) Add(c *gin.Context, req interface{}) (data interface{}, resError interface{})

Add 添加Zone数据

func (ZoneLogic) Delete

func (z ZoneLogic) Delete(c *gin.Context, req interface{}) (data interface{}, rspError interface{})

Delete 删除zone记录

func (ZoneLogic) List

func (z ZoneLogic) List(c *gin.Context, req interface{}) (data interface{}, resError interface{})

List 数据列表

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL