corptp

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: May 28, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	Agentid       int64     `json:"agentid"`
	Name          string    `json:"name"`
	RoundLogoUrl  string    `json:"round_logo_url"`
	SquareLogoUrl string    `json:"square_logo_url"`
	Appid         int64     `json:"appid"`
	Privilege     Privilege `json:"privilege"`
}

type AuthConfig

type AuthConfig struct {
	WechatCorpTpPreAuthCodeURL              string
	WechatCorpTpPermanentCodeURL            string
	WechatCorpTpAuthTokenURL                string
	WechatCorpTpPermanentCodeLifeSpan       gokits.Duration
	WechatCorpTpAuthTokenMaxLifeSpan        gokits.Duration
	WechatCorpTpAuthTokenExpireCriticalSpan gokits.Duration
}

type AuthCorpInfo

type AuthCorpInfo struct {
	Corpid            string `json:"corpid"`
	CorpName          string `json:"corp_name"`
	CorpType          string `json:"corp_type"`
	CorpSquareLogoUrl string `json:"corp_square_logo_url"`
	CorpUserMax       int    `json:"corp_user_max"`
	CorpAgentMax      int    `json:"corp_agent_max"`
	CorpFullName      string `json:"corp_full_name"`
	VerifiedEndTime   int64  `json:"verified_end_time"`
	SubjectType       int    `json:"subject_type"`
	CorpWxqrcode      string `json:"corp_wxqrcode"`
	CorpScale         string `json:"corp_scale"`
	CorpIndustry      string `json:"corp_industry"`
	CorpSubIndustry   string `json:"corp_sub_industry"`
	Location          string `json:"location"`
}

type AuthInfo

type AuthInfo struct {
	Agent []Agent `json:"agent"`
}

type AuthResponse

type AuthResponse struct {
	Errcode     int    `json:"errcode"`
	Errmsg      string `json:"errmsg"`
	AccessToken string `json:"access_token"`
	ExpiresIn   int    `json:"expires_in"`
}

type AuthUserInfo

type AuthUserInfo struct {
	Userid string `json:"userid"`
	Name   string `json:"name"`
	Avatar string `json:"avatar"`
}

type Config

type Config struct {
	WechatCorpTpTokenURL                string
	WechatCorpTpConfigLifeSpan          gokits.Duration
	WechatCorpTpCryptorLifeSpan         gokits.Duration
	WechatCorpTpTokenMaxLifeSpan        gokits.Duration
	WechatCorpTpTokenExpireCriticalSpan gokits.Duration
}

type Privilege

type 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"`
}

type QueryWechatCorpTpAuthToken

type QueryWechatCorpTpAuthToken struct {
	WechatCorpTpAuthToken
	ExpireTime int64
}

type QueryWechatCorpTpToken

type QueryWechatCorpTpToken struct {
	WechatCorpTpToken
	ExpireTime int64
}

func (*QueryWechatCorpTpToken) GetExpireTime

func (q *QueryWechatCorpTpToken) GetExpireTime() int64

type Response

type Response struct {
	Errcode          int    `json:"errcode"`
	Errmsg           string `json:"errmsg"`
	SuiteAccessToken string `json:"suite_access_token"`
	ExpiresIn        int    `json:"expires_in"`
}

type WechatCorpTpAuthKey

type WechatCorpTpAuthKey struct {
	CodeName string
	CorpId   string
}

type WechatCorpTpAuthToken

type WechatCorpTpAuthToken struct {
	SuiteId         string `json:"suiteId"`
	CorpId          string `json:"corpId"`
	CorpAccessToken string `json:"token"`
}

type WechatCorpTpConfig

type WechatCorpTpConfig struct {
	SuiteId     string
	SuiteSecret string
	Token       string
	AesKey      string
	RedirectURL string
}

type WechatCorpTpInfoData

type WechatCorpTpInfoData struct {
	XMLName     xml.Name `xml:"xml"`
	SuiteId     string   `xml:"SuiteId"`
	InfoType    string   `xml:"InfoType"`
	TimeStamp   string   `xml:"TimeStamp"`
	SuiteTicket string   `xml:"SuiteTicket"`
	AuthCode    string   `xml:"AuthCode"`
	AuthCorpId  string   `xml:"AuthCorpId"`
	EchoStr     string
}

type WechatCorpTpPermanentCode

type WechatCorpTpPermanentCode struct {
	SuiteId       string
	CorpId        string
	PermanentCode string
}

type WechatCorpTpPermanentCodeResponse

type WechatCorpTpPermanentCodeResponse struct {
	Errcode       int          `json:"errcode"`
	Errmsg        string       `json:"errmsg"`
	AccessToken   string       `json:"access_token"`
	ExpiresIn     int          `json:"expires_in"`
	PermanentCode string       `json:"permanent_code"`
	AuthCorpInfo  AuthCorpInfo `json:"auth_corp_info"`
	AuthInfo      AuthInfo     `json:"auth_info"`
	AuthUserInfo  AuthUserInfo `json:"auth_user_info"`
}

type WechatCorpTpPreAuthCodeResponse

type WechatCorpTpPreAuthCodeResponse struct {
	Errcode     int    `json:"errcode"`
	Errmsg      string `json:"errmsg"`
	PreAuthCode string `json:"pre_auth_code"`
	ExpiresIn   int    `json:"expires_in"`
}

type WechatCorpTpToken

type WechatCorpTpToken struct {
	SuiteId     string
	AccessToken string
}

Jump to

Keyboard shortcuts

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