sys_model

package
v0.7.11 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: MIT Imports: 9 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliyunAccessToken

type AliyunAccessToken struct {
	NlsRequestId string      `json:"NlsRequestId" dc:"该参数可忽略"`
	RequestId    string      `json:"RequestId" dc:"该参数忽略,请求ID"`
	AliyunToken  AliyunToken `json:"Token" dc:"token信息"`
}

AliyunAccessToken 阿里云平台返回的Token

type AliyunNlpDataRes added in v0.7.3

type AliyunNlpDataRes struct {
	RequestId string `json:"RequestId" dc:"唯一请求id,排查问题的依据"`
	Data      struct {
		Result []struct {
			Id   string   `json:"id"`
			Word string   `json:"word"`
			Tags []string `json:"tags"`
		} `json:"result"`
		Success bool `json:"success"`
	} `json:"data"`
}

阿里云NLP返回值

type AliyunOSS

type AliyunOSS struct {
	Endpoint        string `json:"endpoint"`
	BasePath        string `json:"basePath"`
	BucketUrl       string `json:"bucketUrl"`
	BucketName      string `json:"bucketName"`
	AccessKeyId     string `json:"accessKeyId"`
	AccessKeySecret string `json:"accessKeySecret"`
}

type AliyunSdkConf

type AliyunSdkConf struct {
	Identifier  string `json:"identifier" v:"required#业务标识符参数错误" dc:"业务标识符,唯一,且不可修改"`
	Description string `json:"description" dc:"描述"`
	AppID       string `json:"appID" v:"required#请输入 AppID" dc:"AppID"`
	AESKey      string `json:"aesKey" v:"required#请输入 AES Key" dc:"AES Key"` // AccessKey ID
	APIKey      string `json:"apiKey" v:"required#请输入 API Key" dc:"API Key"`
	SecretKey   string `json:"secretKey" v:"required#请输入 Secret Key" dc:"Secret Key"` // SecretAccessKey
}

type AliyunSdkConfList

type AliyunSdkConfList base_model.CollectRes[*AliyunSdkConf]

type AliyunSdkConfRes added in v0.7.3

type AliyunSdkConfRes AliyunSdkConf

func (*AliyunSdkConfRes) Data added in v0.7.3

func (m *AliyunSdkConfRes) Data()

type AliyunSdkConfToken

type AliyunSdkConfToken struct {
	AliyunSdkConf
	AliyunAccessToken
}

type AliyunToken

type AliyunToken struct {
	ExpireTime string `json:"expire_time" dc:"Access Token的有效期"`
	Id         string `json:"id" dc:"请求分配的Token值"`
	UserId     string `json:"user_id" dc:"用户id"`
}

type Area

type Area struct {
	Id       int64  `json:"id"            description:"ID"`
	AreaCode int    `json:"areaCode"      description:"地区编码"`
	AreaName string `json:"areaName"      description:"地区名称"`
	Level    int    `` /* 129-byte string literal not displayed */
	//LatLongCenter string `json:"latLongCenter" description:"城市中心点(即经纬度)"`
	LongLatCenter string `json:"longLatCenter" description:"城市中心点(即经纬度)"`
	ParentId      int64  `json:"parentId"      description:"地区父节点"`
	PinYin        string `json:"pinYin"        description:"地区拼音"`
}

type AreaListRes

type AreaListRes base_model.CollectRes[*Area]

type Audit

type Audit sys_entity.SysAudit

type AuditPersonLicense added in v0.4.13

type AuditPersonLicense struct {
	UnionMainId int64 `json:"unionMainId"             dc:"资质审核关联的业务主体ID"` // 个人资质的unionMainId, 没有则为0
	LicenseId   int64 `json:"licenseId"             dc:"资质ID"`
	UserId      int64 `json:"userId" dc:"上传资质的userId"` // 个人资质存在待上传的问题, 所以userID代表上传者
	OwnerUserId int64 `json:"ownerUserId" dc:"资质的所属userId" `
	PersonLicense
}

type AuditRes

type AuditRes struct {
	Id           int64       `json:"auditId"       description:""`
	State        int         `json:"state"         description:"审核状态:-1不通过,0待审核,1通过"`
	Reply        string      `json:"reply"        description:"不通过时回复的审核不通过原因"`
	ExpireAt     *gtime.Time `json:"expireAt"      description:"服务时限"`
	AuditReplyAt *gtime.Time `json:"auditReplyAt" description:"审核回复时间"`
	CreatedAt    *gtime.Time `json:"createdAt"     description:""`
}

type BaiduSdkConf

type BaiduSdkConf struct {
	Identifier  string `json:"identifier" v:"required#业务标识符参数错误" dc:"业务标识符,唯一,且不可修改"`
	Description string `json:"description" dc:"描述"`
	AppID       string `json:"appID" v:"required#请输入 AppID" dc:"AppID"`
	AESKey      string `json:"aesKey" v:"required#请输入 AES Key" dc:"AES Key"`
	APIKey      string `json:"apiKey" v:"required#请输入 API Key" dc:"API Key"`
	SecretKey   string `json:"secretKey" v:"required#请输入 Secret Key" dc:"Secret Key"`
}

type BaiduSdkConfAccessToken

type BaiduSdkConfAccessToken struct {
	AccessToken string `json:"access_token" dc:"获取的Access Token"`

	ExpiresIn     int64  `json:"expires_in" dc:"Access Token的有效期(秒为单位,有效期30天)"`
	Scope         string `json:"scope" dc:"该参数忽略"`
	SessionKey    string `json:"session_key" dc:"该参数忽略"`
	SessionSecret string `json:"session_secret" dc:"该参数忽略"`
	// contains filtered or unexported fields
}

type BaiduSdkConfList

type BaiduSdkConfList base_model.CollectRes[*BaiduSdkConf]

type BaiduSdkConfListRes added in v0.7.3

type BaiduSdkConfListRes base_model.CollectRes[*BaiduSdkConf]

type BaiduSdkConfRes added in v0.7.3

type BaiduSdkConfRes BaiduSdkConf

func (*BaiduSdkConfRes) Data added in v0.7.3

func (m *BaiduSdkConfRes) Data()

type BaiduSdkConfToken

type BaiduSdkConfToken struct {
	// 百度SDK某个API的应用配置
	BaiduSdkConf
	// 百度SDK的API访问认证的Token
	BaiduSdkConfAccessToken
}

type BaiduSdkOCRBankCard

type BaiduSdkOCRBankCard struct {
	OCRBankCard
}

type BaiduSdkOCRIDCard

type BaiduSdkOCRIDCard struct {
	OCRIDCardA *BaiduSdkOCRIDCardA `json:"ocrIDCardA" dc:"身份证头像面识别的信息"`
	OCRIDCardB *BaiduSdkOCRIDCardB `json:"ocrIDCardB" dc:"身份证国徽面识别的信息"`
}

type BaiduSdkOCRIDCardA

type BaiduSdkOCRIDCardA struct {
	Direction      int    `json:"direction" dc:"图像方向:-1 为定义,0正向,1逆时针90度,2逆时针180度,3逆时针270度"`
	ImageStateText string `` /* 310-byte string literal not displayed */
	RiskType       string `` /* 135-byte string literal not displayed */
	Address        string `json:"address" dc:"地址信息"`
	IDCardNumber   string `json:"idCardNumber" dc:"身份证号"`
	Birthday       string `json:"birthday" dc:"出生日期"`
	Realname       string `json:"realname" dc:"姓名"`
	Gender         string `json:"gender" dc:"性别"`
	Nation         string `json:"nation" dc:"民族"`
}

type BaiduSdkOCRIDCardB

type BaiduSdkOCRIDCardB struct {
	ExpiryDate       string `json:"expiryDate" dc:"失效日期"`
	IssuingAuthority string `json:"issuingAuthority" dc:"签发机关"`
	IssuingDate      string `json:"issuingDate" dc:"签发日期"`
}

type BankCardWithOCR

type BankCardWithOCR struct {
	// 上传文件返回数据
	sys_entity.SysFile

	// SDK返回的识别数据
	BaiduSdkOCRBankCard
}

BankCardWithOCR 银行卡识别响应信息

type BankCardWithOCRInput

type BankCardWithOCRInput struct {
	FileUploadInput
}

BankCardWithOCRInput 上传银行卡请求参数

type BigIndustryInfo added in v0.7.0

type BigIndustryInfo struct {
	BigIndustryID   int    `json:"big_industry_id"`
	BigIndustryName string `json:"big_industry_name"`
}

type BusinessLicenseOCR

type BusinessLicenseOCR struct {
	Direction         int    `json:"direction" dc:"图像方向:-1 为定义,0正向,1逆时针90度,2逆时针180度,3逆时针270度"`
	RiskType          string `json:"riskType" dc:"风险类型:normal正常营业执照,copy复印件,screen翻拍,scan扫描,unknown其他未知情况"`
	CreditCode        string `json:"creditCode" dc:"社会信用代码"`
	CombiningForm     string `json:"combiningForm" dc:"组成形式"`
	BusinessScope     string `json:"businessScope" dc:"经营范围"`
	EstablishmentDate string `json:"establishmentDate" dc:"成立日期"`
	LegalPerson       string `json:"legalPerson" dc:"法人"`
	RegisteredCapital string `json:"registeredCapital" dc:"注册资本"`
	CertificateNumber string `json:"certificateNumber" dc:"证件编号"`
	RegisteredAddress string `json:"registeredAddress" dc:"注册地址"`
	CompanyName       string `json:"companyName" dc:"主体名称"`
	ExpirationDate    string `json:"expirationDate" dc:"有效期"`
	ApprovalDate      string `json:"approvalDate" dc:"核准日期"`
	RegistrationDate  string `json:"RegistrationDate" dc:"核准日期"`
}

type BusinessLicenseWithOCR

type BusinessLicenseWithOCR struct {
	sys_entity.SysFile
	BusinessLicenseOCR
}

BusinessLicenseWithOCR 营业执照识别响应信息

type CreateAudit added in v0.4.14

type CreateAudit struct {
	Id             int64       `json:"id"            description:""`
	State          int         `` /* 138-byte string literal not displayed */
	UnionMainId    int64       `json:"unionMainId"   description:"关联业务主体ID" v:"required#关联业务主体ID不能为空"`
	Category       int         `` /* 148-byte string literal not displayed */
	AuditData      string      `json:"auditData"     description:"待审核的业务数据包" v:"required|json#验证信息必须为json格式字符串"`
	ExpireAt       *gtime.Time `json:"expireAt"      description:"审核服务时限,超过该时间后没有审核通过的需要重新申请审核"`
	DataIdentifier string      `json:"dataIdentifier" description:"数据标识"`
	UserId         int64       `json:"userId" dc:"关联业务用户ID" `
}

type CtyunSdkConf

type CtyunSdkConf struct {
	Identifier  string `json:"identifier" v:"required#业务标识符参数错误" dc:"业务标识符,唯一,且不可修改"`
	Description string `json:"description" dc:"描述"`
	AppID       string `json:"appID" v:"required#请输入 AppID" dc:"应用AppID"`
	AppKey      string `json:"appKey" v:"required#请输入 API Key" dc:"应用API Key"`
	AppSecret   string `json:"appSecret" v:"required#请输入 Secret Key" dc:"应用AppSecret"`
	AccessKey   string `json:"accessKey" v:"required#请输入 AccessKey" dc:"账户的AES Key"`
	SecurityKey string `json:"security_key" v:"required#请输入 SecurityKey" dc:"账户的 SecurityKey"`
}

CtyunSdkConf 天翼云服务配置信息

type CtyunSdkConfInfo

type CtyunSdkConfInfo struct {
	CtyunSdkConf
}

CtyunSdkConfToken 配置信息 + ...

type CtyunSdkConfList

type CtyunSdkConfList base_model.CollectRes[*CtyunSdkConf]

CtyunSdkConfList 天翼云应用配置列表

type Data added in v0.7.3

type Data struct {
	Result []struct {
		Id   string   `json:"id"`
		Word string   `json:"word"`
		Tags []string `json:"tags"`
	} `json:"result"`
	Success bool `json:"success"`
}

type DescriptionData added in v0.6.25

type DescriptionData struct {
	Type           int    `json:"type"`
	SubType        int    `json:"subType"`
	Conclusion     string `json:"conclusion" dc:"审核结果,可取值描述:合规、不合规、疑似、审核失败"`
	ConclusionType int    `` /* 146-byte string literal not displayed */
	Msg            string `json:"msg"`
}

DescriptionData 图片审核描述

type DetectAuthRes added in v0.7.3

type DetectAuthRes struct {
	// 用于发起核身流程的URL,仅微信H5场景使用。
	Url *string `json:"Url,omitnil,omitempty" name:"Url" dc:"用于发起核身流程的URL,仅微信H5场景使用。"`

	// 一次核身流程的标识,有效时间为7,200秒;
	// 完成核身后,可用该标识获取验证结果信息。
	BizToken *string `` /* 171-byte string literal not displayed */

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId" dc:"唯一请求 ID,由服务端生成,每次请求都会返回"`
}

DetectAuthRes 腾讯云-实名身份核验接口 响应

type EmailConfig added in v0.4.22

type EmailConfig struct {
	Username    string    `json:"username" dc:"邮箱帐号"`
	Password    string    `json:"password" dc:"邮箱密码"`
	SendAuthor  string    `json:"-" dc:"邮件发件人名称"`
	TitlePrefix string    `json:"titlePrefix" dc:"发件标题前缀"`
	AuthCode    string    `json:"authCode" dc:"发件人授权码"`
	Smtp        EmailHost `json:"smtp" dc:"Stmp信息"`
	POP3        EmailHost `json:"pop3" dc:"POP3信息"`
	MailTo      string    `json:"-" dc:"收件人邮箱"`
	Subject     string    `json:"-" dc:"标题"`
	Body        string    `json:"-" dc:"正文"`
}

type EmailHost added in v0.4.22

type EmailHost struct {
	Host string `json:"host" dc:"邮件服务器"`
	Port string `json:"port" dc:"端口"`
	SSL  bool   `json:"ssl" dc:"是否支持SSL"`
}

type FileInfo

type FileInfo struct {
	sys_entity.SysFile
	ExpiresAt *gtime.Time
}

type FileUploadInput

type FileUploadInput struct {
	File       *ghttp.UploadFile `json:"sys_file"  dc:"请选择文件,以form-data方式提交"`    // 上传文件对象
	Name       string            `json:"name" dc:"自定义文件名"`                       // 自定义文件名称
	RandomName bool              `json:"randomName" dc:"是否随机文件名" default:"true"` // 是否随机命名文件
}

FileUploadInput 上传文件输入参数

type ForgotPassword

type ForgotPassword struct {
	Username string `json:"username" v:"required#用户名不能为空" dc:"用户名"`
	Captcha  string `json:"captcha" v:"required#验证吗不能为空" dc:"验证码"`
	Mobile   string `json:"mobile" v:"required-with:phone|required-with:email#邮箱或手机号至少写一个" dc:"邮箱或手机号"`
}

type GetDetectAuthPlusResponseRes added in v0.7.3

type GetDetectAuthPlusResponseRes struct {
	//Response struct {
	RequestId string `` /* 238-byte string literal not displayed */

	Text struct {
		CompareLibType string `json:"CompareLibType"`
		Comparemsg     string `json:"Comparemsg"`
		Comparestatus  int    `json:"Comparestatus"`
		ErrCode        int    `json:"ErrCode"`
		ErrMsg         string `json:"ErrMsg"`
		Extra          string `json:"Extra"`
		IdCard         string `json:"IdCard"`
		IdInfoFrom     string `json:"IdInfoFrom"`
		LiveMsg        string `json:"LiveMsg"`
		LiveStatus     int    `json:"LiveStatus"`
		LivenessDetail []struct {
			CompareLibType string `json:"CompareLibType"`
			Comparemsg     string `json:"Comparemsg"`
			Comparestatus  int    `json:"Comparestatus"`
			Errcode        int    `json:"Errcode"`
			Errmsg         string `json:"Errmsg"`
			Idcard         string `json:"Idcard"`
			IsNeedCharge   bool   `json:"IsNeedCharge"`
			Livemsg        string `json:"Livemsg"`
			LivenessMode   int    `json:"LivenessMode"`
			Livestatus     int    `json:"Livestatus"`
			Name           string `json:"Name"`
			ReqTime        string `json:"ReqTime"`
			Seq            string `json:"Seq"`
			Sim            string `json:"Sim"`
		} `json:"LivenessDetail"`
		LivenessMode     int           `json:"LivenessMode"`
		Location         interface{}   `json:"Location"`
		Mobile           string        `json:"Mobile"`
		NFCBillingCounts int           `json:"NFCBillingCounts"`
		NFCRequestIds    []interface{} `json:"NFCRequestIds"`
		Name             string        `json:"Name"`
		OcrAddress       interface{}   `json:"OcrAddress"`
		OcrAuthority     interface{}   `json:"OcrAuthority"`
		OcrBirth         interface{}   `json:"OcrBirth"`
		OcrGender        interface{}   `json:"OcrGender"`
		OcrIdCard        string        `json:"OcrIdCard"`
		OcrName          string        `json:"OcrName"`
		OcrNation        interface{}   `json:"OcrNation"`
		OcrValidDate     interface{}   `json:"OcrValidDate"`
		PassNo           interface{}   `json:"PassNo"`
		Sim              string        `json:"Sim"`
		UseIDType        int           `json:"UseIDType"`
		VisaNum          interface{}   `json:"VisaNum"`
	} `json:"Text" dc:"文本类信息"`
}

GetDetectAuthPlusResponseRes 获取实名核身结果信息增强版

type GetDetectAuthResultRes added in v0.7.3

type GetDetectAuthResultRes struct {
	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId" dc:"唯一请求 ID,由服务端生成,每次请求都会返回"`

	Text struct {
		ErrCode       int         `json:"ErrCode"`
		ErrMsg        string      `json:"ErrMsg"`
		IdCard        string      `json:"IdCard"`
		Name          string      `json:"Name"`
		OcrNation     interface{} `json:"OcrNation"`
		OcrAddress    interface{} `json:"OcrAddress"`
		OcrBirth      interface{} `json:"OcrBirth"`
		OcrAuthority  interface{} `json:"OcrAuthority"`
		OcrValidDate  interface{} `json:"OcrValidDate"`
		OcrName       string      `json:"OcrName"`
		OcrIdCard     string      `json:"OcrIdCard"`
		OcrGender     interface{} `json:"OcrGender"`
		LiveStatus    int         `json:"LiveStatus"`
		LiveMsg       string      `json:"LiveMsg"`
		Comparestatus int         `json:"Comparestatus"`
		Comparemsg    string      `json:"Comparemsg"`
		Sim           string      `json:"Sim"`
		Location      interface{} `json:"Location"`
		Extra         string      `json:"Extra"`
		Detail        struct {
			LivenessData []struct {
				ErrCode int    `json:"ErrCode"`
				ErrMsg  string `json:"ErrMsg"`
				ReqTime string `json:"ReqTime"`
				IdCard  string `json:"IdCard"`
				Name    string `json:"Name"`
			} `json:"LivenessData"`
		} `json:"Detail"`
	} `json:"Text"  dc:"文本类信息"`

	IdCardData struct {
		OcrFront interface{} `json:"OcrFront"`
		OcrBack  interface{} `json:"OcrBack"`
	} `json:"IdCardData" dc:"身份证照片信息。"`

	BestFrame struct {
		BestFrame string `json:"BestFrame"`
	} `json:"BestFrame" dc:"最佳帧信息Base64编码。注意:此字段可能返回 null,表示取不到有效值。"`
}

GetDetectAuthResultRes 腾讯云-获取实名身份核验接口接口 响应

type HookEventType

type HookEventType[S any, F any] KeyValueT[S, F]

type HookFunc

type HookFunc[S any, T any] func(ctx context.Context, state S, info T) error

type HookFuncRes

type HookFuncRes[S any, T any] func(ctx context.Context, state S, info T) (T, error)

type HuaweiAccessToken

type HuaweiAccessToken struct {
	AccessToken string   `json:"access_token" dc:"token值"`
	TokenType   string   `json:"token_type" dc:"token类型"`
	ExpiresIn   int      `json:"expires_in" dc:"token有效期" `
	Scope       string   `json:"scope" dc:"该参数可忽略"`
	PlatUser    PlatUser `json:"plat_user"`
}

HuaweiAccessToken 华为云平台返回的Token

type HuaweiOSS

type HuaweiOSS struct {
	Path      string `json:"path"`
	Bucket    string `json:"bucket"`
	Endpoint  string `json:"endpoint"`
	AccessKey string `json:"accessKey"`
	SecretKey string `json:"secretKey"`
}

type HuaweiSdkConf

type HuaweiSdkConf struct {
	Identifier  string `json:"identifier" v:"required#业务标识符参数错误" dc:"业务标识符,唯一,且不可修改"`
	Description string `json:"description" dc:"描述"`
	AppID       string `json:"appID" v:"required#请输入 AppID" dc:"AppID"`
	AESKey      string `json:"aesKey" v:"required#请输入 AES Key" dc:"AES Key"`
	APIKey      string `json:"apiKey" v:"required#请输入 API Key" dc:"API Key"`
	SecretKey   string `json:"secretKey" v:"required#请输入 Secret Key" dc:"Secret Key"`
}

type HuaweiSdkConfList

type HuaweiSdkConfList base_model.CollectRes[*HuaweiSdkConf]

type HuaweiSdkConfToken

type HuaweiSdkConfToken struct {
	HuaweiSdkConf
	HuaweiAccessToken
}

HuaweiSdkConfToken 配置信息 + Token信息

type HuaweiToken

type HuaweiToken struct {
	ExpireTime string `json:"expire_time" dc:"Access Token的有效期"`
	Id         string `json:"id" dc:"请求分配的Token值"`
	UserId     string `json:"user_id" dc:"用户id"`
}

type IDCardWithOCR

type IDCardWithOCR struct {
	sys_entity.SysFile
	BaiduSdkOCRIDCard
}

IDCardWithOCR 身份证识别响应信息

type ISDKConfigRes added in v0.7.3

type ISDKConfigRes interface {
	Data()
}

type Industry added in v0.7.0

type Industry struct {
	BigIndustryInfo      BigIndustryInfo        `json:"big_industry_info"`
	IndustryCategoryList []IndustryCategoryList `json:"industry_category_list"`
}

type IndustryCategoryInfo added in v0.7.0

type IndustryCategoryInfo struct {
	CategoryID               int             `json:"category_id"`
	CategoryName             string          `json:"category_name"`
	CategoryDesc             string          `json:"category_desc"`
	QualificationsType       int             `json:"qualifications_type"`
	QualificationsOptions    int             `json:"qualifications_options"`
	QualificationsGuide      string          `json:"qualifications_guide"`
	BigIndustryInfo          BigIndustryInfo `json:"big_industry_info"`
	SubjectInformationDepend int             `json:"subject_information_depend"`
	QualificationSample      string          `json:"qualification_sample"`
}

type IndustryCategoryList added in v0.7.0

type IndustryCategoryList struct {
	IndustryCategoryInfo IndustryCategoryInfo `json:"industry_category_info"`
	SettlementRuleInfo   SettlementRuleInfo   `json:"settlement_rule_info"`
}

type Invite added in v0.5.7

type Invite struct {
	UserId int64  `json:"userId"         dc:"用户ID, 也就是邀约人ID" `
	Value  string `json:"value"          dc:"邀约码背后的关联业务Json数据"  v:"json#验证信息必须为json格式字符串"`
	// ExpireAt       *gtime.Time `json:"expireAt"       dc:"邀约码的过期失效" `
	// ActivateNumber int         `json:"activateNumber" dc:"邀约码的激活次数限制" dc:"邀约码激活总次数"`
	State int `json:"state"          dc:"状态: 0失效、1正常" v:"required|in:0,1#邀约状态错误"`
	Type  int `json:"type"           dc:"类型: 1注册、2加入团队、4加入角色 (复合类型)"`
}

type InviteListRes added in v0.5.7

type InviteListRes base_model.CollectRes[InviteRes]

type InviteRes added in v0.5.7

type InviteRes struct {
	Id             int64       `json:"id"             dc:"ID"`
	Code           string      `json:"code"             dc:"邀约code,本质是邀约ID转化而来的"`
	UserId         int64       `json:"userId"         dc:"用户ID, 也就是邀约人ID"`
	Value          string      `json:"value"          dc:"邀约码背后的关联业务Json数据"`
	ExpireAt       *gtime.Time `json:"expireAt"       dc:"邀约码的过期失效"`
	ActivateNumber int         `json:"activateNumber" dc:"邀约码的激活次数限制"`
	State          int         `json:"state"          dc:"状态: 0失效、1正常"`
	Type           int         `json:"type"           dc:"类型: 1注册、2加入团队、4加入角色 (复合类型)"`
	CreatedAt      *gtime.Time `json:"createdAt"      dc:""`
}

type JwtCustomClaims

type JwtCustomClaims struct {
	SysUser
	UnionMainId  int64 `json:"unionMainId"    dc:"主体id"`
	ParentId     int64 `json:"parentId"    dc:"上级主体id"`
	IsAdmin      bool
	IsSuperAdmin bool
	jwt.RegisteredClaims
}

type KeyValueT

type KeyValueT[K any, V any] struct {
	Key   K
	Value V
}

type LocalOSS

type LocalOSS struct {
	Path string `json:"path"` // 本地文件路径
}

type LoginByMailInfo added in v0.4.17

type LoginByMailInfo struct {
	Username string `` /* 138-byte string literal not displayed */
	Mail     string `json:"mail" v:"required|email#邮箱不能为空" dc:"邮箱"`
	PassWord string `json:"passWord" v:"required#请输入密码" dc:"密码" v:"min-length:6#密码最短为6位"`
}

type LoginByMailRes added in v0.4.17

type LoginByMailRes struct {
	UserList SysUserListRes `json:"userList" dc:"邮箱关联的用户列表"`
	TokenInfo
	User *SysUser `json:"user"`
}

type LoginByMobileInfo

type LoginByMobileInfo struct {
	Username string `` /* 141-byte string literal not displayed */
	Mobile   string `json:"mobile" v:"required|phone#手机号不能为空" dc:"手机号"`
	Captcha  string `json:"captcha" dc:"验证码,和密码二选一"`
	PassWord string `json:"passWord"  dc:"密码,和验证码二选一" v:"min-length:6#密码最短为6位"`
}

type LoginByMobileRes added in v0.4.3

type LoginByMobileRes struct {
	UserList SysUserListRes `json:"userList" dc:"手机号关联的用户列表"`
	TokenInfo
	User *SysUser `json:"user"`
}

type LoginInfo

type LoginInfo struct {
	Username string `json:"username" v:"required#请输入用户名" dc:"登录账号"`
	Password string `json:"password" v:"required#请输入密码" dc:"登录密码" v:"min-length:6#密码最短为6位"`
	Captcha  string `json:"captcha" v:"required#请输入验证吗" dc:"验证码"`
}

type LoginRes added in v0.5.30

type LoginRes struct {
	TokenInfo
	User *SysUser `json:"user" dc:"用户信息"`
}

type MinioOSS

type MinioOSS struct {
	Id       string `json:"id"`
	Path     string `json:"path"`
	Token    string `json:"token"`
	Bucket   string `json:"bucket"`
	Secret   string `json:"secret"`
	Endpoint string `json:"endpoint"`
	UseSsl   bool   `json:"useSsl"`
}

type MyPermissionListRes added in v0.4.3

type MyPermissionListRes []*sys_entity.SysPermission

type OCRBankCard

type OCRBankCard struct {
	Direction      int    `json:"direction" dc:"图像方向:-1 为定义,0正向,1逆时针90度,2逆时针180度,3逆时针270度"`
	BankCardNumber string `json:"bankCardNumber" dc:"银行卡号"`
	ValidDate      string `json:"validDate" dc:"有效期"`
	BankCardType   int    `json:"bankCardType" dc:"银行卡类型"`
	BankName       string `json:"bankName" dc:"银行名字"`
	HolderName     string `json:"holderName" dc:"持卡人名字"`
}

type OCRBusinessLicense

type OCRBusinessLicense struct {
	FileUploadInput
}

OCRBusinessLicense 上传新版营业执照

type OCRIDCardFileUploadInput

type OCRIDCardFileUploadInput struct {
	FileUploadInput
	DetectRisk string `` /* 200-byte string literal not displayed */
	IDCardSide string `` /* 301-byte string literal not displayed */
}

OCRIDCardFileUploadInput 上传身份证请求参数

type OSSType

type OSSType string
const (
	Local   OSSType = "local"
	Aliyun  OSSType = "aliyun"
	Huawei  OSSType = "huawei"
	Qiniu   OSSType = "qiniu"
	Minio   OSSType = "minio"
	Tencent OSSType = "tencent"
)

type OrganizationInfo

type OrganizationInfo sys_entity.SysOrganization

type Oss

type Oss struct {
	OssType OSSType    `json:"ossType"`
	Local   LocalOSS   `json:"local"`
	Aliyun  AliyunOSS  `json:"aliyun"`
	Huawei  HuaweiOSS  `json:"huawei"`
	Tencent TencentOSS `json:"tencent"`
	Qiniu   QiniuOSS   `json:"qiniu"`
	Minio   MinioOSS   `json:"minio"`
}

type PersonLicense added in v0.4.13

type PersonLicense struct {
	Id               int64  `json:"id"              description:"ID"`
	IdcardFrontPath  string `json:"idcardFrontPath"  description:"身份证头像面照片"`
	IdcardBackPath   string `json:"idcardBackPath"   description:"身份证国徽面照片"`
	No               string `json:"no"              description:"身份证号"`
	Gender           int    `json:"gender"          description:"性别"`
	Nation           string `json:"nation"          description:"名族"`
	Name             string `json:"name"            description:"姓名"`
	Birthday         string `json:"birthday"        description:"出生日期"`
	Address          string `json:"address"         description:"家庭住址"`
	IssuingAuthorit  string `json:"issuingAuthorit" description:"签发机关"`
	IssuingDate      string `json:"issuingDate"     description:"签发日期"`
	ExpriyDate       string `json:"expriyDate"      description:""`
	Remark           string `json:"remark"          description:"备注信息"`
	LatestAuditLogId int64  `json:"latestAuditLogId" description:"最新的审核记录id"`

	State    int `json:"state"           description:"状态:0失效、1正常" v:"in:0,1#状态错误"`
	AuthType int `json:"authType"        description:"认证类型:"`
}

type PersonLicenseListRes added in v0.4.13

type PersonLicenseListRes base_model.CollectRes[sys_entity.SysPersonLicense]

type PersonLicenseRes added in v0.4.13

type PersonLicenseRes sys_entity.SysPersonLicense

type PictureWithOCR added in v0.6.25

type PictureWithOCR struct {
	sys_entity.SysFile
	Conclusion     string            `json:"conclusion" dc:"审核结果,可取值描述:合规、不合规、疑似、审核失败"`
	ConclusionType int               `` /* 146-byte string literal not displayed */
	Data           []DescriptionData `` /* 219-byte string literal not displayed */
}

PictureWithOCR 图片审核响应信息

type PictureWithOCRInput added in v0.6.25

type PictureWithOCRInput struct {
	FileUploadInput
	ImageType uint64 `` /* 151-byte string literal not displayed */
}

PictureWithOCRInput 上传图片

type PlatUser

type PlatUser struct {
	UserID           int           `json:"userId" dc:"用户id"`
	UserNo           string        `json:"userNo" dc:"编号"`
	UserName         string        `json:"userName" dc:"用户名"`
	UserType         string        `json:"userType" dc:"用户类型"`
	Phone            interface{}   `json:"phone" dc:"电话"`
	TenantID         int           `json:"tenantId"`
	Status           string        `json:"status"`
	DeleteFlag       int           `json:"deleteFlag"`
	PwdUpdateDate    time.Time     `json:"pwdUpdateDate"`
	UserExtendMap    UserExtendMap `json:"userExtendMap"`
	Password         interface{}   `json:"password"`
	Salt             interface{}   `json:"salt"`
	CurrentLoginType string        `json:"currentLoginType"`
}

type QiniuOSS

type QiniuOSS struct {
	Zone          string `json:"zone"`          // 存储区域
	Bucket        string `json:"bucket"`        // 空间名称
	ImgPath       string `json:"imgPath"`       // CDN加速域名
	UseHTTPS      bool   `json:"useHTTPS"`      // 是否使用https
	AccessKey     string `json:"accessKey"`     // 秘钥AK
	SecretKey     string `json:"secretKey"`     // 秘钥SK
	UseCdnDomains bool   `json:"useCdnDomains"` // 上传是否使用CDN上传加速
}

type ReqCasbin

type ReqCasbin struct {
	UserId    int64  `p:"userId"`
	Domain    string `p:"domain"`
	Interface string `p:"i"`
	Action    string `p:"a"`
}

type RoleInfo

type RoleInfo sys_entity.SysRole

type SDKConfig added in v0.7.3

type SDKConfig struct {
	Identifier  string `json:"identifier" v:"required#业务标识符参数错误" dc:"业务标识符,唯一,且不可修改"`
	Description string `json:"description" dc:"描述"`
	AppID       string `json:"appID" v:"required#请输入 AppID" dc:"AppID"`
	AESKey      string `json:"aesKey" v:"required#请输入 AES Key" dc:"AES Key"`
	APIKey      string `json:"apiKey" v:"required#请输入 API Key" dc:"API Key"`
	SecretKey   string `json:"secretKey" v:"required#请输入 Secret Key" dc:"Secret Key"`
}

type SDKConfigRes added in v0.7.3

type SDKConfigRes struct {
	SDKConfig
}

func (*SDKConfigRes) Data added in v0.7.3

func (m *SDKConfigRes) Data()

type SessionContext

type SessionContext struct {
	JwtClaimsUser     *JwtCustomClaims // 上下文用户信息
	Ipv4              string           // 客户端IP地址
	SessionErrorQueue *garray.Array    // 会话错误队列
}

SessionContext 请求上下文结构

type SetAudit

type SetAudit struct {
	Id          int64  `json:"id"            description:"ID" v:"required#审核编号错误"`
	State       int    `json:"state"         description:"审核状态:-1不通过,1通过" v:"required|in:-1,1#审核状态错误"`
	Reply       string `json:"reply"        description:"不通过时回复的审核不通过原因"`
	UnionMainId int64  `json:"unionMainId"       description:"关联业务ID" v:"required#关联业务ID参数粗我"`
	Category    int    `` /* 142-byte string literal not displayed */
}

type SettlementRuleInfo added in v0.7.0

type SettlementRuleInfo struct {
	SettlementRuleID          int         `json:"settlement_rule_id"`
	MerchantCategory          int         `json:"merchant_category"`
	MerchantEntityType        int         `json:"merchant_entity_type"`
	SettlementRuleDesc        string      `json:"settlement_rule_desc"`
	CashFlow                  int         `json:"cash_flow"`
	RateTemplateID            interface{} `json:"rate_template_id"`
	RateDesc                  string      `json:"rate_desc"`
	Rate                      int         `json:"rate"`
	BillingCycleDesc          string      `json:"billing_cycle_desc"`
	LimitType                 int         `json:"limit_type"`
	CreditCardRestrictions    int         `json:"credit_card_restrictions"`
	SpecialMerchantType       int         `json:"special_merchant_type"`
	SettlementPackageID       string      `json:"settlement_package_id"`
	IndustryOverview          string      `json:"industry_overview"`
	IndustryCategory          int         `json:"industry_category"`
	RateDecimal               string      `json:"rate_decimal"`
	MerchantSpecialAttributes int         `json:"merchant_special_attributes"`
}

type SysConfig added in v0.7.3

type SysConfig struct {
	Name  string `json:"name"      description:"配置名称"`
	Value string `json:"value"     description:"配置信息"`
}

type SysConfigListRes added in v0.7.3

type SysConfigListRes base_model.CollectRes[sys_entity.SysConfig]

type SysConfigRes added in v0.7.3

type SysConfigRes sys_entity.SysConfig

type SysIndustry added in v0.7.0

type SysIndustry struct {
	Id           int64   `json:"id"        dc:"ID,ID值为0时则新增菜单" v:"min:0#ID不能小于0"`
	CategoryId   *int64  `json:"categoryId" description:"行业ID"`
	CategoryName *string `json:"categoryName"       description:"行业名称"`
	CategoryDesc *string `json:"categoryDesc"       description:"行业描述"`
	Rate         *int    `json:"rate"       description:"费率"`
	ParentId     *int64  `json:"parentId"  dc:"所属父级" v:"integer|min:0#父级ID参数错误|父级ID不能小于0" default:"0"`
	Sort         *int    `json:"sort"      dc:"排序" v:"integer#排序参数错误"`
	State        *int    `json:"state"    dc:"状态:0隐藏,1显示" v:"in:0,1#请选择状态类型" default:"1"`
}

type SysIndustryListRes added in v0.7.0

type SysIndustryListRes base_model.CollectRes[*sys_entity.SysIndustry]

type SysIndustryRes added in v0.7.0

type SysIndustryRes sys_entity.SysIndustry

type SysIndustryTreeListRes added in v0.7.0

type SysIndustryTreeListRes []*SysIndustryTreeRes

type SysIndustryTreeRes added in v0.7.0

type SysIndustryTreeRes struct {
	*sys_entity.SysIndustry
	Children []*SysIndustryTreeRes `json:"children" dc:"行业类别子级"`
}

type SysMenu

type SysMenu struct {
	Id           int64   `json:"id"        dc:"ID,ID值为0时则新增菜单" v:"min:0#ID不能小于0"`
	Path         *string `json:"path"      dc:"路径" v:"max-length:128#路径最大长度请不要超过128字符"`
	Name         *string `json:"name"      dc:"名称" v:"required|max-length:128#请输入名称|名称最大长度请不要超过128字符"`
	Redirect     *string `json:"redirect"  dc:"跳转" v:"max-length:128#跳转URL最大长度请不要超过128字符"`
	RedirectType *int    `json:"redirectType" description:"跳转类型:1当前页面打开、 2新的标签页打开"`
	Type         *int    `json:"type"         description:"类型:1菜单、2按钮" v:"required|in:1,2#请选择类型|类型数据范围错误"`
	Title        *string `json:"title"     dc:"标题" v:"required|max-length:64#请输入标题|标题最大长度请不要超过128字符"`
	Icon         *string `json:"icon"      dc:"图标" v:"max-length:128#图标名称最大长度请不要超过128字符"`
	IconUrl      *string `json:"iconUrl"     description:"图标URL"`
	Component    *string `json:"component" dc:"组件" v:"max-length:128#组件地址最大长度请不要超过128字符"`
	ParentId     *int64  `json:"parentId"  dc:"所属父级" v:"integer|min:0#父级ID参数错误|父级ID不能小于0" default:"0"`
	Sort         *int    `json:"sort"      dc:"排序" v:"integer#排序参数错误"`
	State        *int    `json:"state"    dc:"状态:0隐藏,1显示" v:"in:0,1#请选择状态类型" default:"1"`
	Description  *string `json:"description" description:"描述"`
}

type SysMenuListRes added in v0.4.3

type SysMenuListRes base_model.CollectRes[*sys_entity.SysMenu]

type SysMenuRes added in v0.4.3

type SysMenuRes sys_entity.SysMenu

type SysMenuTreeListRes added in v0.5.15

type SysMenuTreeListRes []*SysMenuTreeRes

type SysMenuTreeRes added in v0.4.3

type SysMenuTreeRes struct {
	*sys_entity.SysMenu
	Children []*SysMenuTreeRes `json:"children" dc:"菜单子级"`
}

type SysMessage added in v0.7.2

type SysMessage struct {
	Title     string  `json:"title"        description:"标题" v:"required#标题不能为空"`
	Summary   string  `json:"summary"      description:"摘要" `
	Content   string  `json:"content"      description:"内容" v:"required#内容不能为空"`
	Type      int     `json:"type"         description:"类型:1系统消息"  v:"required#请限定消息类型"`
	Link      string  `json:"link"           description:"跳转链接"`
	ToUserIds []int64 `json:"toUserIds"     description:"接收者UserIds,允许有多个接收者" v:"required#接收者id不能为空"`
	//ToUserType   int    `json:"toUserType"   description:"接收者类型" v:"required#接收者类型不能为空"`
	FromUserId     int64  `json:"fromUserId"   description:"发送者id"`
	FromUserType   int    `json:"fromUserType" description:"发送者用户类型,和UserType保持一致"`
	ExtJson        string `json:"extJson"      description:"拓展数据Json"`
	DataIdentifier string `json:"dataIdentifier" description:"数据标识"`
}

type SysMessageListRes added in v0.7.2

type SysMessageListRes base_model.CollectRes[SysMessageRes]

type SysMessageRes added in v0.7.2

type SysMessageRes struct {
	Id             int64       `json:"id"             description:"ID"`
	Title          string      `json:"title"          description:"标题"`
	Summary        string      `json:"summary"        description:"摘要"`
	Content        string      `json:"content"        description:"内容"`
	Type           int         `json:"type"           description:"消息类型: 1系统消息,支持自定义"`
	Link           string      `json:"link"           description:"跳转链接"`
	ToUserIds      string      `json:"toUserIds"      description:"接收者UserIds,允许有多个接收者"`
	ToUserType     int         `json:"toUserType"     description:"接收者类型用户类型,和UserType保持一致"`
	FromUserId     int64       `json:"fromUserId"     description:"发送者ID,为-1代表系统消息"`
	FromUserType   int         `json:"fromUserType"   description:"发送者类型"`
	SendAt         *gtime.Time `json:"sendAt"         description:"发送时间"`
	ExtJson        string      `json:"extJson"        description:"拓展数据Json"`
	ReadUserIds    string      `json:"readUserIds"    description:"已读用户UserIds"`
	DataIdentifier string      `json:"dataIdentifier" description:"关联的数据标识"`
	CreatedAt      *gtime.Time `json:"createdAt"      description:""`
	UpdatedAt      *gtime.Time `json:"updatedAt"      description:""`
	DeletedAt      *gtime.Time `json:"deletedAt"      description:""`
}

type SysOrganizationInfo

type SysOrganizationInfo struct {
	Id          int64  `json:"id"          dc:""`
	Name        string `json:"name"        dc:"名称" v:"required|length:2,32#名称不能为空|名称长度仅限2~32个字符"`
	ParentId    int64  `json:"parentId"    dc:"父级ID" v:"min:0"`
	Description string `json:"description" dc:"描述"`
}

type SysOrganizationTree

type SysOrganizationTree struct {
	SysOrganizationInfo
	CascadeDeep int                    `json:"cascadeDeep" dc:"级联深度" v:"min:0"`
	Children    []*SysOrganizationTree `json:"children" orm:"-" dc:"下级组织架构"`
}

type SysPermission

type SysPermission struct {
	Id          int64  `json:"id"             dc:"ID" v:"integer"`
	ParentId    int64  `json:"parentId"       dc:"父级ID" v:"min:0#必须是正整数,该属性创建后不支持修改"`
	Name        string `json:"name"           dc:"名称" v:"max-length:64#仅支持最大字符长度64"`
	Description string `json:"description"    dc:"描述" v:"max-length:128#仅支持最大字符长度128"`
	Identifier  string `json:"identifier"     dc:"标识符"`
	Type        int    `json:"type"           dc:"类型:1api、2menu"`
	MatchMode   int    `json:"matchMode"      dc:"匹配模式:ID:0,标识符:1"`
	IsShow      int    `json:"isShow"         dc:"是否显示:0不显示 1显示"`
	Sort        int    `json:"sort"           dc:"排序"`
}

type SysPermissionInfoRes

type SysPermissionInfoRes sys_entity.SysPermission

type SysPermissionInfoTreeRes

type SysPermissionInfoTreeRes []base_permission.IPermission

type SysPermissionTree

type SysPermissionTree struct {
	*sys_entity.SysPermission
	Children []base_permission.IPermission `json:"children"       dc:"下级权限"`
}

func (*SysPermissionTree) GetData added in v0.5.0

func (d *SysPermissionTree) GetData() interface{}

func (*SysPermissionTree) GetDescription added in v0.5.0

func (d *SysPermissionTree) GetDescription() string

func (*SysPermissionTree) GetId added in v0.5.0

func (d *SysPermissionTree) GetId() int64

func (*SysPermissionTree) GetIdentifier added in v0.5.0

func (d *SysPermissionTree) GetIdentifier() string

func (*SysPermissionTree) GetIsEqual added in v0.4.23

func (*SysPermissionTree) GetIsShow added in v0.5.0

func (d *SysPermissionTree) GetIsShow() int

func (*SysPermissionTree) GetItems added in v0.5.0

func (*SysPermissionTree) GetMatchMode added in v0.5.0

func (d *SysPermissionTree) GetMatchMode() int

func (*SysPermissionTree) GetName added in v0.5.0

func (d *SysPermissionTree) GetName() string

func (*SysPermissionTree) GetParentId added in v0.5.0

func (d *SysPermissionTree) GetParentId() int64

func (*SysPermissionTree) GetSort added in v0.5.0

func (d *SysPermissionTree) GetSort() int

func (*SysPermissionTree) GetType added in v0.5.0

func (d *SysPermissionTree) GetType() int

func (*SysPermissionTree) RetFather added in v0.4.22

func (d *SysPermissionTree) RetFather(father base_permission.IPermission) bool

func (*SysPermissionTree) SetChild added in v0.4.22

func (d *SysPermissionTree) SetChild(father base_permission.IPermission, branchArr []base_permission.IPermission)

func (*SysPermissionTree) SetDescription added in v0.5.0

func (d *SysPermissionTree) SetDescription(val string) base_permission.IPermission

func (*SysPermissionTree) SetId added in v0.5.0

func (*SysPermissionTree) SetIdentifier added in v0.5.0

func (d *SysPermissionTree) SetIdentifier(val string) base_permission.IPermission

func (*SysPermissionTree) SetIsShow added in v0.5.0

func (*SysPermissionTree) SetItems added in v0.5.0

func (*SysPermissionTree) SetMatchMode added in v0.5.0

func (d *SysPermissionTree) SetMatchMode(val int) base_permission.IPermission

func (*SysPermissionTree) SetName added in v0.5.0

func (*SysPermissionTree) SetParentId added in v0.5.0

func (d *SysPermissionTree) SetParentId(val int64) base_permission.IPermission

func (*SysPermissionTree) SetSort added in v0.5.0

func (*SysPermissionTree) SetType added in v0.5.0

type SysRole

type SysRole struct {
	Id          int64  `p:"id"         dc:"ID"`
	Name        string `p:"name"       v:"required|length:1,16#请输入角色名称|角色名称长度限定1~16字符" dc:"角色名称"`
	IsSystem    bool   `json:"isSystem"    dc:"是否默认角色,true仅能修改名称,不允许删除和修改"`
	Description string `p:"description"       v:"max-length:128#角色描述长度限定128字符" dc:"角色描述"`
	UnionMainId int64  `json:"-"  dc:"主体id"`
}

type SysSettingListRes added in v0.4.2

type SysSettingListRes base_model.CollectRes[sys_entity.SysSettings]

type SysSettings added in v0.4.2

type SysSettings struct {
	Name        string `json:"name"        dc:"配置名称"`
	Values      string `json:"values"      dc:"配置信息JSON格式"`
	Desc        string `json:"desc"        dc:"描述"`
	UnionMainId int64  `json:"unionMainId" dc:"关联的主体id,为0代表是平台配置"`
}

type SysSettingsRes added in v0.4.2

type SysSettingsRes sys_entity.SysSettings

type SysUser

type SysUser struct {
	*sys_entity.SysUser
	Detail    *sys_entity.SysUserDetail `json:"detail"`
	RoleNames []string                  `json:"roleNames" dc:"所属角色"`
}

type SysUserListRes

type SysUserListRes base_model.CollectRes[*SysUser]

type SysUserRegister

type SysUserRegister struct {
	Username        string `json:"username" v:"required|length:4,30#请输入用户名称|用户名称长度非法"  dc:"登陆账号"`
	Password        string `json:"password" v:"required|password#请输入密码|密码长度非法"  dc:"密码" v:"min-length:6#密码最短为6位"`
	ConfirmPassword string `` /* 160-byte string literal not displayed */
	Captcha         string `json:"captcha" v:"required" dc:"验证码"`
	InviteCode      string `json:"inviteCode" dc:"邀约码"`
}

type SysUserRegisterByMobileOrMail added in v0.4.17

type SysUserRegisterByMobileOrMail struct {
	Username        string `json:"username" v:"required|length:4,30#请输入用户名称|用户名称长度非法"  dc:"登陆账号"`
	Password        string `json:"password" v:"required|password#请输入密码|密码长度非法"  dc:"密码" v:"min-length:6#密码最短为6位"`
	ConfirmPassword string `` /* 160-byte string literal not displayed */

	MobileOrMail string `json:"mobileOrMail" v:"required-with:phone|required-with:email#邮箱或手机号至少写一个" dc:"邮箱或手机号"`
	Captcha      string `json:"captcha" v:"required" dc:"验证码"`
	InviteCode   string `json:"inviteCode" dc:"邀约码"`
}

type SysUserRegisterRes

type SysUserRegisterRes struct {
	UserInfo     SysUser               `json:"userInfo" dc:"用户信息"`
	RoleInfoList []*sys_entity.SysRole `json:"roleInfoList" dc:"角色信息列表"`
}

type TableCacheConf

type TableCacheConf struct {
	TableName     string `json:"name" yaml:"name" v:"required"`
	ExpireSeconds int    `json:"seconds" yaml:"seconds" v:"required"`
	Force         bool   `json:"force" yaml:"force" def:"false"`
}

type TencentAccessToken

type TencentAccessToken struct {
	TencentToken TencentToken `json:"response" dc:"token信息"`
}

TencentAccessToken 腾讯平台返回的Token

type TencentOSS

type TencentOSS struct {
	Bucket     string `json:"bucket"`
	Region     string `json:"region"`
	BaseURL    string `json:"baseURL"`
	SecretID   string `json:"secretID"`
	SecretKey  string `json:"secretKey"`
	PathPrefix string `json:"pathPrefix"`
}

type TencentSdkConf

type TencentSdkConf struct {
	Identifier  string `json:"identifier" v:"required#业务标识符参数错误" dc:"业务标识符,唯一,且不可修改"`
	Description string `json:"description" dc:"描述"`
	AppID       string `json:"appID" v:"required#请输入 AppID" dc:"AppID"`      // APPID
	AESKey      string `json:"aesKey" v:"required#请输入 AES Key" dc:"AES Key"` // SecretId
	APIKey      string `json:"apiKey" v:"required#请输入 API Key" dc:"API Key"`
	SecretKey   string `json:"secretKey" v:"required#请输入 Secret Key" dc:"Secret Key"` // SecretKey

	Active  string `json:"active" v:"required#公共参数" dc:"代表应用接口的值"`
	Version string `json:"version" v:"required#公共参数" dc:"接口版本"`
	Region  string `json:"region" dc:"代表请求的地域,公共参数"`
}

type TencentSdkConfList

type TencentSdkConfList base_model.CollectRes[*TencentSdkConf]

type TencentSdkConfToken

type TencentSdkConfToken struct {
	TencentSdkConf
	TencentAccessToken
}

TencentSdkConfToken 配置信息 + Token信息

type TencentToken

type TencentToken struct {
	ExpireTime string `json:"expire_time" dc:"Access Token的有效期"`
	RequestId  string `json:"request_id" dc:"唯一请求 ID" `
	Token      string `json:"token" dc:"请求分配的Token值"`
}

type TokenInfo

type TokenInfo struct {
	Token    string    `json:"token" dc:"Token"`
	ExpireAt time.Time `json:"expireAt" dc:"Expire"`
}

type UpdateSysIndustry added in v0.7.0

type UpdateSysIndustry struct {
	Id           int64   `json:"id"        dc:"ID,ID值为0时则新增菜单" v:"min:0#ID不能小于0"`
	CategoryId   *int64  `json:"categoryId" description:"行业ID"`
	CategoryName *string `json:"categoryName"       description:"行业名称"`
	CategoryDesc *string `json:"categoryDesc"       description:"行业描述"`
	Rate         *int    `json:"rate"       description:"费率"`
	ParentId     *int64  `json:"parentId"  dc:"所属父级" v:"integer|min:0#父级ID参数错误|父级ID不能小于0" default:"0"`
	Sort         *int    `json:"sort"      dc:"排序" v:"integer#排序参数错误"`
	State        *int    `json:"state"    dc:"状态:0隐藏,1显示" v:"in:0,1#请选择状态类型" default:"1"`
}

type UpdateSysMenu added in v0.4.3

type UpdateSysMenu struct {
	Id           int64   `json:"id"        dc:"ID,ID值为0时则新增菜单" v:"required|min:0#ID不能为空|ID不能小于0" `
	Path         *string `json:"path"      dc:"路径" v:"max-length:128#路径最大长度请不要超过128字符"`
	Name         *string `json:"name"      dc:"名称" v:"max-length:128#请输入名称|名称最大长度请不要超过128字符"`
	Redirect     *string `json:"redirect"  dc:"跳转" v:"max-length:128#跳转URL最大长度请不要超过128字符"`
	RedirectType *int    `json:"redirectType" description:"跳转类型:1当前页面打开、 2新的标签页打开"`
	Type         *int    `json:"type"         description:"类型:1菜单、2按钮" v:"required|in:1,2#请选择类型|类型数据范围错误"`
	Title        *string `json:"title"     dc:"标题" v:"max-length:64#请输入标题|标题最大长度请不要超过128字符"`
	Icon         *string `json:"icon"      dc:"图标" v:"max-length:128#图标名称最大长度请不要超过128字符"`
	IconUrl      *string `json:"iconUrl"     description:"图标URL"`
	Component    *string `json:"component" dc:"组件" v:"max-length:128#组件地址最大长度请不要超过128字符"`
	Sort         *int    `json:"sort"      dc:"排序" v:"integer#排序参数错误"`
	State        *int    `json:"state"    dc:"状态:0隐藏,1显示" v:"in:0,1#请选择状态类型"`
	Description  *string `json:"description" description:"描述"`
}

type UpdateSysMessage added in v0.7.2

type UpdateSysMessage struct {
	Title     *string `json:"title"        description:"标题" `
	Summary   *string `json:"summary"      description:"摘要" `
	Content   *string `json:"content"      description:"内容" `
	Type      *int    `json:"type"         description:"类型:1系统消息"  `
	Link      *string `json:"link"           description:"跳转链接"`
	ToUserIds []int64 `json:"toUserId"     description:"接收者UserIds,允许有多个接收者" `
	//ToUserType   int    `json:"toUserType"   description:"接收者类型" v:"required#接收者类型不能为空"`
	ExtJson        string  `json:"extJson"      description:"拓展数据Json"`
	DataIdentifier *string `json:"dataIdentifier" description:"数据标识"`
}

type UpdateSysPermission added in v0.5.25

type UpdateSysPermission struct {
	Id          int64   `json:"id"             dc:"ID" v:"required#ID不能为空"`
	Name        *string `json:"name"           dc:"名称" v:"max-length:64#仅支持最大字符长度64"`
	Description *string `json:"description"    dc:"描述" v:"max-length:128#仅支持最大字符长度128"`
	Identifier  *string `json:"identifier"     dc:"标识符"`
	Type        *int    `json:"type"           dc:"类型:1api、2menu"`
	MatchMode   *int    `json:"matchMode"      dc:"匹配模式:ID:0,标识符:1"`
	IsShow      *int    `json:"isShow"         dc:"是否显示:0不显示 1显示"`
	Sort        *int    `json:"sort"           dc:"排序"`
}

type UpdateUserPassword

type UpdateUserPassword struct {
	OldPassword     string `json:"oldPassword" v:"required#请输入原始密码" dc:"旧密码" v:"min-length:6#密码最短为6位"`
	Password        string `json:"password" v:"required#请输入新密码" dc:"新密码" v:"min-length:6#密码最短为6位"`
	ConfirmPassword string `json:"confirmPassword" v:"required#请确认密码" dc:"确认密码" v:"min-length:6#密码最短为6位"`
}

type UploadFile

type UploadFile sys_entity.SysFile

type UserExtendMap

type UserExtendMap struct {
	ClientID string `json:"clientId" dc:"客户端秘钥"`
}

type UserInfo

type UserInfo SysUser

type UserInfoList

type UserInfoList base_model.CollectRes[*SysUser]

type UserInnerRegister

type UserInnerRegister struct {
	Username        string  `json:"username" v:"required|length:4,30#请输入用户名称|用户名称长度非法"  dc:"登陆账号"`
	Password        string  `json:"password" v:"required|password#请输入密码|密码长度非法"  dc:"密码" v:"min-length:6#密码最短为6位"`
	ConfirmPassword string  `` /* 160-byte string literal not displayed */
	RoleIds         []int64 `json:"roleIds" dc:"所属角色,多个用逗号隔开"`
	Mobile          string  `json:"mobile"    dc:"手机号"`
	Email           string  `json:"email"     description:"邮箱"`
	InviteCode      string  `json:"inviteCode" dc:"邀约码"`
}

Jump to

Keyboard shortcuts

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