OrgDomain

package
v5.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteDomain

func DeleteDomain(args *ArgsDeleteDomain) (err error)

DeleteDomain 删除域名

func GetDomainOrg

func GetDomainOrg(args *ArgsGetDomainOrg) (orgID int64, params CoreSQLConfig.FieldsConfigsType, err error)

GetDomainOrg 通过host获取org

func UpdateDomain

func UpdateDomain(args *ArgsUpdateDomain) (err error)

UpdateDomain 修改域名

Types

type ArgsCreateDomain

type ArgsCreateDomain struct {
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
	//Host
	// 全局唯一
	Host string `db:"host" json:"host"`
	//扩展参数
	Params CoreSQLConfig.FieldsConfigsType `db:"params" json:"params"`
}

ArgsCreateDomain 创建新的域名参数

type ArgsDeleteDomain

type ArgsDeleteDomain struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
}

ArgsDeleteDomain 删除域名参数

type ArgsGetDomainList

type ArgsGetDomainList struct {
	//分页
	Pages CoreSQLPages.ArgsDataList `json:"pages"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//搜索
	Search string `json:"search" check:"search" empty:"true"`
}

ArgsGetDomainList 获取域名列表参数

type ArgsGetDomainOrg

type ArgsGetDomainOrg struct {
	//Host
	// 全局唯一
	Host string `db:"host" json:"host"`
}

ArgsGetDomainOrg 通过host获取org参数

type ArgsUpdateDomain

type ArgsUpdateDomain struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
	//Host
	// 全局唯一
	Host string `db:"host" json:"host"`
	//扩展参数
	Params CoreSQLConfig.FieldsConfigsType `db:"params" json:"params"`
}

ArgsUpdateDomain 修改域名参数

type FieldsDomain

type FieldsDomain struct {
	//ID
	ID int64 `db:"id" json:"id"`
	//创建时间
	CreateAt time.Time `db:"create_at" json:"createAt"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID"`
	//Host
	// 全局唯一
	Host string `db:"host" json:"host"`
	//扩展参数
	Params CoreSQLConfig.FieldsConfigsType `db:"params" json:"params"`
}

func CreateDomain

func CreateDomain(args *ArgsCreateDomain) (data FieldsDomain, err error)

CreateDomain 创建新的域名

func GetDomainList

func GetDomainList(args *ArgsGetDomainList) (dataList []FieldsDomain, dataCount int64, err error)

GetDomainList 获取域名列表

Jump to

Keyboard shortcuts

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