BaseWeixinApp

package
v5.1.34 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UserLogin

func UserLogin(args *ArgsUserLogin) (isNewUser bool, userData UserCore.FieldsUserType, errCode string, err error)

UserLogin 用户登陆和授权接口处理

Types

type ArgsUserLogin

type ArgsUserLogin struct {
	//组织ID
	// 可以留空,则表明为平台
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//编码
	Code string `json:"code"`
	//推荐人手机号
	ReferrerNationCode string `db:"referrer_nation_code" json:"referrerNationCode" check:"nationCode" empty:"true"`
	ReferrerPhone      string `json:"referrerPhone" check:"phone" empty:"true"`
}

ArgsUserLogin 用户登陆和授权接口处理参数

type DataGetOpenIDByCode

type DataGetOpenIDByCode struct {
	//OpenID
	OpenID string `json:"openid"`
	//UnionID
	UnionID string `json:"unionid"`
	//昵称
	Nickname string `json:"nickname"`
	//头像地址
	Headimgurl string `json:"headimgurl"`
}

DataGetOpenIDByCode 获取微信OpenID数据

func GetOpenIDByCode

func GetOpenIDByCode(orgID int64, code string) (result DataGetOpenIDByCode, errCode string, err error)

GetOpenIDByCode 获取微信OpenID

Jump to

Keyboard shortcuts

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