model

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessDetailInput added in v0.0.3

type AccessDetailInput struct {
}

AccessDetailInput is the input of AccessDetail.

type AccessDetailOutput added in v0.0.3

type AccessDetailOutput struct {
}

AccessDetailOutput is the output of AccessDetail.

type AccessListInput added in v0.0.3

type AccessListInput struct {
}

AccessListInput is the input of AccessList.

type AccessListOutput added in v0.0.3

type AccessListOutput struct {
}

AccessListOutput is the output of AccessList.

type AuthInput

type AuthInput struct {
	Account  string `` /* 130-byte string literal not displayed */
	Password string `json:"password" dc:"密码" v1:"required|password2#请填写密码|密码需要6-18位,必须包含大小写字母和数字"`
}

AuthInput is the input for Auth

type AuthOutput

type AuthOutput struct {
	AccessToken string `json:"accessToken" dc:"授权码 登陆之后的授权码"`
	ExpiresIn   int    `json:"expiresIn" dc:"过期时间"`
	RefreshIn   int    `json:"refreshIn" dc:"刷新时间"`
}

AuthOutput is the output for Auth

type AuthorizationToken

type AuthorizationToken struct {
	AuthToken        string `json:"authToken"`
	AuthTime         int64  `json:"authTime"`
	AuthAccountNo    uint64 `json:"authAccountNo"`
	AuthAccountLevel uint   `json:"authAccountLevel"`
	AuthType         string `json:"authType"`
}

AuthorizationToken is the golang structure for AuthorizationToken.

type Base

type Base struct {
	AuthAccountNo    uint64 `json:"authAccountNo" dc:"认证账号"`
	AuthAccountLevel uint   `json:"authAccountLevel" dc:"账号级别"`
}

Base is the base model

type CreateAccessTokenInput

type CreateAccessTokenInput struct {
	AppID     string `` /* 134-byte string literal not displayed */
	Secret    string `` /* 128-byte string literal not displayed */
	GrantType string `json:"grantType" dc:"授权类型" v1:"required|in:client_credentials|授权类型"`
}

CreateAccessTokenInput is the input for CreateAccessToken

type CreateAccessTokenOutput

type CreateAccessTokenOutput struct {
	AccessToken string `json:"accessToken" dc:"授权码 API操作授权码"`
	ExpiresIn   int    `json:"expiresIn" dc:"过期时间"`
}

CreateAccessTokenOutput is the output for CreateAccessToken

type CreateAccountInput

type CreateAccountInput struct {
	*Base      `json:"-"`
	Account    string `` /* 130-byte string literal not displayed */
	Password   string `json:"password" dc:"密码" v1:"required|password2#请填写密码|密码需要6-18位,必须包含大小写字母和数字"`
	GroupLevel uint   `` /* 136-byte string literal not displayed */
}

CreateAccountInput is the input for CreateAccount

type CreateAccountOutput

type CreateAccountOutput bool

CreateAccountOutput is the output for CreateAccount

type CreateKeySecretInput

type CreateKeySecretInput struct {
	*Base `json:"-"`
}

CreateKeySecretInput is the input of CreateKeySecret.

type CreateKeySecretOutput

type CreateKeySecretOutput struct {
	AppKey    string `json:"appKey" description:"渠道合作标识"`
	AppSecret string `json:"appSecret" description:"渠道合作密钥"`
}

CreateKeySecretOutput is the output of CreateKeySecret.

type CreateMerchantInput

type CreateMerchantInput struct {
	*Base               `json:"-"`
	MerName             string `json:"merName" desc:"商户名称" v:"required#商户名称不能为空"`
	MerAvatar           string `json:"merAvatar" desc:"商户头像" v:"required#商户头像不能为空"`
	MerMobile           string `json:"merMobile" desc:"商户手机号" v:"required#商户手机号不能为空"`
	MerType             uint   `` /* 158-byte string literal not displayed */
	CreateDate          string `json:"createDate" desc:"创建时间" v:"required#创建时间不能为空"`
	CorpName            string `json:"corpName" desc:"企业名称" v:"required#企业名称不能为空"`
	SocialCreditCode    string `json:"socialCreditCode" desc:"统一社会信用代码" v:"required#统一社会信用代码不能为空"`
	LicenseStartDate    string `json:"licenseStartDate" desc:"营业执照有效期开始时间" v:"required#营业执照有效期开始时间不能为空"`
	LicenseEndDate      string `json:"licenseEndDate" desc:"营业执照有效期结束时间" v:"required#营业执照有效期结束时间不能为空"`
	LicenseImg          string `json:"licenseImg" desc:"营业执照图片" v:"required#营业执照图片不能为空"`
	CorpBusinessAddress string `json:"corpBusinessAddress" desc:"企业经营地址" v:"required#企业经营地址不能为空"`
	CorpRegAddress      string `json:"corpRegAddress" desc:"企业注册地址" v:"required#企业注册地址不能为空"`
	CorpFixedTelephone  string `json:"corpFixedTelephone" desc:"企业固定电话" v:"required#企业固定电话不能为空"`
	BusinessScope       string `json:"businessScope" desc:"经营范围" v:"required#经营范围不能为空"`
	LegalName           string `json:"legalName" desc:"法人姓名" v:"required#法人姓名不能为空"`
	LegalCertType       uint   `` /* 212-byte string literal not displayed */
	LegalCertID         string `json:"legalCertID" desc:"法人证件号码" v:"required#法人证件号码不能为空"`
	LegalCertStartDate  string `json:"legalCertStartDate" desc:"法人证件有效期开始时间" v:"required#法人证件有效期开始时间不能为空"`
	LegalCertEndDate    string `json:"legalCertEndDate" desc:"法人证件有效期结束时间" v:"required#法人证件有效期结束时间不能为空"`
	LegalCertFront      string `json:"legalCertFront" desc:"法人证件正面照" v:"required#法人证件正面照不能为空"`
	LegalCertBack       string `json:"legalCertBack" desc:"法人证件反面照" v:"required#法人证件反面照不能为空"`
	LegalMobile         string `json:"legalMobile" desc:"法人手机号" v:"required#法人手机号不能为空"`
	ContactName         string `json:"contactName" desc:"联系人姓名" v:"required#联系人姓名不能为空"`
	ContactMobile       string `json:"contactMobile" desc:"联系人手机号" v:"required#联系人手机号不能为空"`
	ContactEmail        string `json:"contactEmail" desc:"联系人邮箱" v:"required#联系人邮箱不能为空"`
	AgentNo             uint64 `json:"agentNo" desc:"代理商编号" v:"required#代理商编号不能为空"`
}

CreateMerchantInput is the input of CreateMerchant.

type CreateMerchantOutput

type CreateMerchantOutput struct {
}

CreateMerchantOutput is the output of CreateMerchant.

type CreateShortInput

type CreateShortInput struct {
	*Base   `json:"-"`
	Memo    string `json:"memo" dc:"备注"`
	DestURL string `json:"destUrl" dc:"目标链接"`
}

CreateShortInput is the input for creating a short

type CreateShortOutput

type CreateShortOutput struct {
	ShortURL string `json:"shortUrl" dc:"短链"`
}

CreateShortOutput is the output of CreateShort

type DefaultHandlerResponse

type DefaultHandlerResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
	Time    int64       `json:"time"`    // 返回当前响应时间
	TraceID string      `json:"traceID"` // 请求唯一标识
}

DefaultHandlerResponse .

type DomainAuthorizationDetail

type DomainAuthorizationDetail struct {
	State      uint   `json:"state" dc:"状态"`
	DomainNo   uint64 `json:"domainNo" dc:"域名ID"`
	Domain     string `json:"domain" dc:"域名"`
	Memo       string `json:"memo" dc:"备注"`
	ICPNumber  string `json:"icpNumber" dc:"ICP备案号"`
	CreateTime string `json:"createTime" dc:"创建时间"`
	AuditTime  string `json:"auditTime,omitempty" dc:"审核时间"`
	StateDesc  string `json:"stateDesc" dc:"状态描述 0:未提交 10:审核中 20:审核通过 30:审核失败 40:已禁用"`
}

DomainAuthorizationDetail query domain authorization detail

type DomainAuthorizeDeleteInput

type DomainAuthorizeDeleteInput struct {
	*Base     `json:"-"`
	DomainNos []uint64 `json:"domainNos" dc:"域名ID" v1:"required|integer#域名ID不能为空|域名ID格式不正确"`
}

DomainAuthorizeDeleteInput is the input for DomainAuthorizationDelete

type DomainAuthorizeDeleteOutput

type DomainAuthorizeDeleteOutput struct {
	State      uint     `json:"state" dc:"状态"`
	DomainNos  []uint64 `json:"domainNos" dc:"域名ID"`
	Domain     string   `json:"domain" dc:"域名"`
	DeleteTime string   `json:"deleteTime" dc:"删除时间"`
	StateDesc  string   `json:"stateDesc" dc:"状态描述 0:未提交 10:审核中 20:审核通过 30:审核失败 40:已禁用"`
}

DomainAuthorizeDeleteOutput is the output for DomainAuthorizationDelete

type DomainAuthorizeDetailInput

type DomainAuthorizeDetailInput struct {
	*Base    `json:"-"`
	DomainNo uint64 `json:"domainNo" dc:"域名ID" v1:"required|integer#域名ID不能为空|域名ID格式不正确"`
}

DomainAuthorizeDetailInput is the input for QueryDomainAuthorizationDetail

type DomainAuthorizeDetailOutput

type DomainAuthorizeDetailOutput struct {
	*DomainAuthorizationDetail
}

DomainAuthorizeDetailOutput is the output for DomainAuthorizationDetail

type DomainAuthorizeInput

type DomainAuthorizeInput struct {
	*Base     `json:"-"`
	Domain    string `json:"domain" dc:"域名" v1:"required|domain#域名不能为空|域名格式不正确"`
	Memo      string `json:"memo" dc:"备注"`
	ICPNumber string `json:"icpNumber" dc:"ICP备案号"`
}

DomainAuthorizeInput is the input for DomainAuthorization

type DomainAuthorizeListInput

type DomainAuthorizeListInput struct {
	*Base `json:"-"`
	State uint `json:"state" dc:"状态"`
	Page  int  `json:"page" dc:"页码" v1:"required|numeric|min=1#页码必须大于0"`
	Size  int  `json:"size" dc:"每页数量" v1:"required|numeric|min=1#每页数量必须大于0"`
}

DomainAuthorizeListInput is the input for QueryDomainAuthorizationList

type DomainAuthorizeListOutput

type DomainAuthorizeListOutput struct {
	Total int                          `json:"total" dc:"总数"`
	List  []*DomainAuthorizationDetail `json:"list" dc:"列表"`
	Page  int                          `json:"page" dc:"页码"`
	Size  int                          `json:"size" dc:"每页数量"`
}

DomainAuthorizeListOutput is the output for QueryDomainAuthorizationList

type DomainAuthorizeOutput

type DomainAuthorizeOutput struct {
	State      uint   `json:"state" dc:"状态 0:未提交 10:审核中 20:审核通过 30:审核失败 40:已禁用"`
	DomainNo   uint64 `json:"domainNo" dc:"域名ID"`
	StateDesc  string `json:"stateDesc" dc:"状态描述 0:未提交 10:审核中 20:审核通过 30:审核失败 40:已禁用"`
	CreateTime string `json:"createTime" dc:"创建时间"`
}

DomainAuthorizeOutput is the output for DomainAuthorization

type DomainAuthorizeUpdateInput

type DomainAuthorizeUpdateInput struct {
	*Base     `json:"-"`
	State     uint     `json:"state" dc:"状态 0:未提交 10:审核中 20:审核通过 30:审核失败 40:已禁用"`
	DomainNos []uint64 `json:"domainNos" dc:"域名ID" v1:"required|integer#域名ID不能为空|域名ID格式不正确"`
}

DomainAuthorizeUpdateInput is the input for DomainAuthorizationUpdate

type DomainAuthorizeUpdateOutput

type DomainAuthorizeUpdateOutput struct {
	State      uint   `json:"state" dc:"状态"`
	StateDesc  string `json:"stateDesc" dc:"状态描述 0:未提交 10:审核中 20:审核通过 30:审核失败 40:已禁用"`
	ModifyTime string `json:"modifyTime" dc:"修改时间"`
	Reason     string `json:"reason,omitempty" dc:"修改失败原因"`
}

DomainAuthorizeUpdateOutput is the output for DomainAuthorizationUpdate

type HomeIndexInput

type HomeIndexInput struct {
	*Base `json:"-" dc:"基础模型"`
}

HomeIndexInput is the request struct for index.

type HomeIndexOutput

type HomeIndexOutput struct {
}

HomeIndexOutput is the response struct for index.

type ModifyAccountInput

type ModifyAccountInput struct {
	*Base    `json:"-"`
	Account  string `` /* 130-byte string literal not displayed */
	Password string `json:"password" dc:"密码" v1:"required|password2#请填写密码|密码需要6-18位,必须包含大小写字母和数字"`
}

ModifyAccountInput is the input for ModifyAccount

type ModifyAccountOutput

type ModifyAccountOutput bool

ModifyAccountOutput is the output for ModifyAccount

type ModifyPasswordInput

type ModifyPasswordInput struct {
	*Base    `json:"-"`
	Password string `json:"password" dc:"密码" v1:"required|password2#请填写密码|密码需要6-18位,必须包含大小写字母和数字"`
	Code     string `json:"code" dc:"验证码" v1:"required|between:4,6#请填写验证码|验证码长度为4-6位"`
}

ModifyPasswordInput is the input for ModifyPassword

type ModifyPasswordOutput

type ModifyPasswordOutput bool

ModifyPasswordOutput is the output for ModifyPassword

type ModifyShortInput

type ModifyShortInput struct {
	*Base    `json:"-"`
	ShortURL string `json:"shortUrl" dc:"短链"`
	Enable   bool   `json:"enable" dc:"是否启用"`
}

ModifyShortInput is the input for ModifyShort

type ModifyShortOutput

type ModifyShortOutput bool

ModifyShortOutput is the output of ModifyShort

type QueryDomainAuthorizeInput

type QueryDomainAuthorizeInput struct {
	*Base    `json:"-"`
	DomainNo uint64 `json:"domainNo" dc:"域名ID" v1:"required|integer#域名ID不能为空|域名ID格式不正确"`
}

QueryDomainAuthorizeInput is the input for QueryDomainAuthorize

type QueryDomainAuthorizeOutput

type QueryDomainAuthorizeOutput struct {
	State      uint   `json:"state" dc:"状态 0:未提交 10:审核中 20:审核通过 30:审核失败 40:已禁用"`
	DomainNo   uint64 `json:"domainNo" dc:"域名ID"`
	StateDesc  string `json:"stateDesc" dc:"状态描述 0:未提交 10:审核中 20:审核通过 30:审核失败 40:已禁用"`
	CreateTime string `json:"createTime" dc:"创建时间"`
	AuditTime  string `json:"auditTime,omitempty" dc:"审核时间"`
	Reason     string `json:"reason,omitempty" dc:"审核失败原因"`
}

QueryDomainAuthorizeOutput is the output for QueryDomainAuthorize

type QueryMerchantInput

type QueryMerchantInput struct {
	*Base `json:"-"`
}

QueryMerchantInput is the input of QueryMerchant.

type QueryMerchantOutput

type QueryMerchantOutput struct {
	MerNo               uint64 `json:"merNo" description:"商户编号"`
	MerName             string `json:"merName" description:"商户名称"`
	MerAvatar           string `json:"merAvatar" description:"商户头像"`
	MerMobile           string `json:"merMobile" description:"商户手机号"`
	MerType             uint   `json:"merType" description:"用户类型  1企业、 2个人(自然人)、3个体工商户"`
	CreateDate          string `json:"createDate" description:"创建时间"`
	CorpName            string `json:"corpName" description:"企业名称"`
	SocialCreditCode    string `json:"socialCreditCode" description:"统一社会信用代码"`
	LicenseStartDate    string `json:"licenseStartDate" description:"营业执照有效期开始时间"`
	LicenseEndDate      string `json:"licenseEndDate" description:"营业执照有效期结束时间"`
	LicenseImg          string `json:"licenseImg" description:"营业执照图片"`
	CorpBusinessAddress string `json:"corpBusinessAddress" description:"企业经营地址"`
	CorpRegAddress      string `json:"corpRegAddress" description:"企业注册地址"`
	CorpFixedTelephone  string `json:"corpFixedTelephone" description:"企业固定电话"`
	BusinessScope       string `json:"businessScope" description:"经营范围"`
	LegalName           string `json:"legalName" description:"法人姓名"`
	LegalCertType       uint   `json:"legalCertType" description:"法人证件类型 1身份证、2护照、3军官证、4港澳通行证、5台湾通行证"`
	LegalCertID         string `json:"legalCertID" description:"法人证件号码"`
	LegalCertStartDate  string `json:"legalCertStartDate" description:"法人证件有效期开始时间"`
	LegalCertEndDate    string `json:"legalCertEndDate" description:"法人证件有效期结束时间"`
	LegalCertFront      string `json:"legalCertFront" description:"法人证件正面照"`
	LegalCertBack       string `json:"legalCertBack" description:"法人证件反面照"`
	LegalMobile         string `json:"legalMobile" description:"法人手机号"`
	ContactName         string `json:"contactName" description:"联系人姓名"`
	ContactMobile       string `json:"contactMobile" description:"联系人手机号"`
	ContactEmail        string `json:"contactEmail" description:"联系人邮箱"`
	AgentNo             uint64 `json:"agentNo" description:"代理商编号"`
	CreateTime          string `json:"createTime" description:"创建时间"`
}

QueryMerchantOutput is the output of QueryMerchant.

type QueryShortInput

type QueryShortInput struct {
	*Base    `json:"-"`
	ShortURL string `json:"shortUrl" dc:"短链"`
}

QueryShortInput is the input for QueryShort

type QueryShortOutput

type QueryShortOutput struct {
	DestURL     string      `json:"destUrl" dc:"destUrl 原始url"`
	Memo        string      `json:"memo,omitempty" dc:"备注"`
	State       uint        `json:"state" dc:"状态"`
	StateMsg    string      `json:"stateMsg" dc:"状态描述"`
	DisableTime *gtime.Time `json:"disableTime,omitempty" dc:"禁用时间"`
	CreateTime  *gtime.Time `json:"createTime" dc:"创建时间"`
}

QueryShortOutput is the output of QueryShort

type QueryStatInput

type QueryStatInput struct {
	*Base    `json:"-"`
	ShortURL string `json:"shortUrl"`
}

QueryStatInput is the input for QueryStat

type QueryStatOutput

type QueryStatOutput struct {
	ShortURL                string      `json:"shortUrl" dc:"短链"`
	DestURL                 string      `json:"destUrl" dc:"原始url"`
	Memo                    string      `json:"memo,omitempty" dc:"备注"`
	State                   uint        `json:"state" dc:"状态"`
	StateMsg                string      `json:"stateMsg" dc:"状态描述"`
	CreateTime              *gtime.Time `json:"createTime" dc:"创建时间"`
	DisableTime             *gtime.Time `json:"disableTime,omitempty" dc:"禁用时间"`
	TodayCount              uint64      `json:"todayCount" dc:"今日访问次数"`
	YesterdayCount          uint64      `json:"yesterdayCount" dc:"昨日访问次数"`
	LastSevenDaysCount      uint64      `json:"lastSevenDaysCount" dc:"近7日访问次数"`
	MonthlyCount            uint64      `json:"monthlyCount" dc:"本月访问次数"`
	LastMonthlyCount        uint64      `json:"lastMonthlyCount" dc:"上月访问次数"`
	TotalCount              uint64      `json:"totalCount" dc:"总访问次数"`
	ProtoTodayCount         uint64      `json:"protoTodayCount" dc:"今日独立IP访问次数"`
	ProtoYesterdayCount     uint64      `json:"protoYesterdayCount" dc:"昨日独立IP访问次数"`
	ProtoLastSevenDaysCount uint64      `json:"protoLastSevenDaysCount" dc:"近7日独立IP访问次数"`
	ProtoMonthlyCount       uint64      `json:"protoMonthlyCount" dc:"本月独立IP访问次数"`
	ProtoLastMonthlyCount   uint64      `json:"protoLastMonthlyCount" dc:"上月独立IP访问次数"`
	ProtoTotalCount         uint64      `json:"protoTotalCount" dc:"总独立IP访问次数"`
}

QueryStatOutput is the output of QueryStat

type TokenCache

type TokenCache struct {
	Token     string              `json:"token"`
	ExpiresIn int                 `json:"expiresIn"`
	AuthToken *AuthorizationToken `json:"authToken"`
}

TokenCache is the golang structure for TokenCache.

type UserDetailInput added in v0.0.2

type UserDetailInput struct {
	*Base `json:"-"`
}

UserDetailInput is the input of UserDetail.

type UserDetailOutput added in v0.0.2

type UserDetailOutput struct {
	Username string `json:"username" description:"用户名"`
	Avatar   string `json:"avatar" description:"头像"`
}

UserDetailOutput is the output of UserDetail.

Jump to

Keyboard shortcuts

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