user

package
v0.2.16 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindEmail

func BindEmail(ctx iris.Context)

func BindPhone

func BindPhone(ctx iris.Context)

func BindUser

func BindUser(ctx iris.Context)

func GetSocialAccountByAccountId

func GetSocialAccountByAccountId(id int) (info model.SocialAccount, err error)

func GetSocialAccountById

func GetSocialAccountById(socialAccountId, category string, uid int) (info model.SocialAccount, err error)

func GetTenantAccountByUid

func GetTenantAccountByUid(uid int) (info model.TenantAccount, err error)

func GetTenantById

func GetTenantById(id int) (info model.Tenant, err error)

func GetUserInfo

func GetUserInfo(ctx iris.Context)

func GetUserInfoByCode

func GetUserInfoByCode(code string) (info model.Account, err error)

func GetUserInfoById

func GetUserInfoById(id int) (info model.Account, err error)

func GetUserInfoByName

func GetUserInfoByName(name string) (info model.Account, err error)

func GetUserInfoByThree

func GetUserInfoByThree(name, mobile, email string) (info model.Account, err error)

func GetUserInfoByUserName

func GetUserInfoByUserName(userName string) (info model.Account, err error)

func InsertSocialAccount

func InsertSocialAccount(socialAccount model.SocialAccount) (info model.SocialAccount, err error)

func Route

func Route(root iris.Party)

func UpAccount

func UpAccount(ori model.Account, cols ...string) (info model.Account, err error)

Types

type BindEmailReq

type BindEmailReq struct {
	Email string `json:"email,omitempty"`
	Code  string `json:"code,omitempty"`
}

type BindPhoneReq

type BindPhoneReq struct {
	Mobile string `json:"mobile,omitempty"`
	Code   string `json:"code,omitempty"`
}

type SocialReq

type SocialReq struct {
	SocialAccountId string `json:"socialAccountId,omitempty"`
	SocialGroupId   string `json:"socialGroupId,omitempty"`
	Category        string `json:"category,omitempty"`
}

type UserInfo

type UserInfo struct {
	Id     int    `json:"id,omitempty"`
	Name   string `json:"name,omitempty"`
	Email  string `json:"email,omitempty"`
	Active int    `json:"active,omitempty"`
	IsOrg  int    `json:"isOrg,omitempty"`
	IsBind int    `json:"isBind,omitempty"`
}

type UserResp

type UserResp struct {
	app.Response
	Item UserInfo `json:"item"`
}

Jump to

Keyboard shortcuts

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