models

package
v1.5.7 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent added in v1.4.4

type Agent struct {
	Id               uint   `gorm:"primaryKey;autoIncrement;column:fi_corp_access_token_id"`
	CorpId           uint   `json:"corp_id" gorm:"column:fi_corp_auth_id"`
	AgentId          int    `json:"agentid" gorm:"column:fi_agent_id"`
	AuthCorpId       string `json:"auth_corp_id" gorm:"column:fs_corp_app_id"`
	PermanentCode    string `json:"permanent_code" gorm:"column:fs_permanent_code;varchar(512)"`
	Name             string `json:"name" gorm:"column:fs_name;varchar(200)"`
	RoundLogoURL     string `json:"round_logo_url" gorm:"column:fs_round_logo_url;varchar(255)"`
	SquareLogoURL    string `json:"square_logo_url" gorm:"column:fs_square_logo_url;varchar(255)"`
	AuthMode         int    `json:"auth_mode,omitempty" gorm:"column:fi_auth_mode;int(2)"`
	IsCustomizedApp  bool   `json:"is_customized_app,omitempty" gorm:"column:fi_is_customized_app"`
	AuthFromThirdapp bool   `json:"auth_from_thirdapp,omitempty" gorm:"column:fi_auth_from_thirdapp"`
	Privilege        struct {
		Level      int      `json:"level"`
		AllowParty []int    `json:"allow_party"`
		AllowUser  []string `json:"allow_user"`
		AllowTag   []int    `json:"allow_tag"`
		ExtraParty []int    `json:"extra_party"`
		ExtraUser  []string `json:"extra_user"`
		ExtraTag   []int    `json:"extra_tag"`
	} `json:"privilege,omitempty" gorm:"-"` //TODO:授权信息处理
	SharedFrom struct {
		Corpid    string `json:"corpid"`
		ShareType int    `json:"share_type"`
	} `json:"shared_from" gorm:"-"` //TODO:授权信息处理
}

func (Agent) TableName added in v1.4.4

func (Agent) TableName() string

type BizModel

type BizModel struct {
	CreatedAt time.Time      `gorm:"column:ft_create_time"`
	UpdatedAt time.Time      `gorm:"column:ft_update_time"`
	DeletedAt gorm.DeletedAt `gorm:"index;column:ft_delete_time"`
}

type CorpAccessToken

type CorpAccessToken struct {
	ID          uint   `gorm:"primaryKey;autoIncrement;column:fi_corp_access_token_id"`
	CorpId      uint   `json:"corp_id" gorm:"column:fi_corp_auth_id"`
	AccessToken string `json:"access_token" gorm:"column:fs_access_token"`
	ExpiresIn   int    `json:"expires_in" gorm:"column:fi_expires_in"`
	BizModel
}

CorpAccessToken 授权企业 access token Deprecated: 由缓存接管,不存数据库

func (CorpAccessToken) TableName

func (CorpAccessToken) TableName() string

type CorpAuthInfo

type CorpAuthInfo struct {
	ID                uint   `gorm:"primaryKey;autoIncrement;column:fi_corp_auth_id"`
	CorpId            string `json:"corp_id" gorm:"column:fs_corp_app_id"`
	CorpType          string `json:"corp_type" gorm:"column:fs_corp_type;varchar(20)"`
	CorpSquareLogoUrl string `json:"corp_square_logo_url" gorm:"column:fs_corp_square_logo_url;varchar(255)"`
	CorpUserMax       uint   `json:"corp_user_max" gorm:"column:fi_corp_user_max"`
	CorpAgentMax      uint   `json:"corp_agent_max" gorm:"column:fi_corp_agent_max"`
	CorpFullName      string `json:"corp_full_name" gorm:"column:fs_corp_full_name;varchar(255)"`
	VerifiedEndTime   uint64 `json:"verified_end_time" gorm:"column:fi_verified_end_time"`
	SubjectType       int    `json:"subject_type" gorm:"column:fi_subject_type"`
	CorpWxQrcode      string `json:"corp_wxqrcode" gorm:"column:fs_corp_wxqrcode;varchar(255)"`
	CorpScale         string `json:"corp_scale" gorm:"column:fs_corp_scale;varchar(200)"`
	CorpIndustry      string `json:"corp_industry" gorm:"column:fs_corp_industry;varchar(200)"`
	CorpSubIndustry   string `json:"corp_sub_industry" gorm:"column:fs_corp_sub_industry;varchar(200)"`
	BizModel
}

CorpAuthInfo 授权企业信息表

func (CorpAuthInfo) TableName

func (CorpAuthInfo) TableName() string

type CorpAuthUserInfo

type CorpAuthUserInfo struct {
	ID         uint   `gorm:"primaryKey;autoIncrement;column:fi_corp_user_auth_id"`
	CorpId     uint   `json:"corp_id" gorm:"column:fi_corp_auth_id"`
	UserId     string `json:"userid" gorm:"column:fs_user_id;varchar(255)"`
	OpenUserId string `json:"open_userid" gorm:"column:fs_open_user_id;varchar(255)"`
	Name       string `json:"name" gorm:"column:fs_name;varchar(200)"`
	Avatar     string `json:"avatar" gorm:"column:fs_avatar;varchar(255)"`
	BizModel
}

CorpAuthUserInfo 授权应用管理员信息

func (CorpAuthUserInfo) TableName

func (CorpAuthUserInfo) TableName() string

type CorpPermanentCode

type CorpPermanentCode struct {
	Id              uint   `gorm:"primaryKey;autoIncrement;column:fi_corp_access_token_id"`
	CorpId          uint   `json:"corp_id" gorm:"column:fi_corp_auth_id"`
	AuthCorpId      string `json:"auth_corp_id" gorm:"column:fs_corp_app_id"`
	PermanentCode   string `json:"permanent_code" gorm:"column:fs_permanent_code;varchar(512)"`
	IsCustomizedApp bool   `json:"is_customized_app" gorm:"column:fi_is_customized_app"`
	BizModel
}

CorpPermanentCode 授权企业永久授权码 Deprecated

func (CorpPermanentCode) TableName

func (CorpPermanentCode) TableName() string

Jump to

Keyboard shortcuts

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