repository

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckUserExistById

func CheckUserExistById(id int) (exist bool, err error)

func CheckUserExistByPhone

func CheckUserExistByPhone(countryCode, phone string) (exist bool, err error)

func CheckUserLogisticsDelivery

func CheckUserLogisticsDelivery(uid int64, ids []int32) ([]mysql.UserLogisticsDelivery, error)

func CreateAccount

func CreateAccount(model *mysql.Account) (err error)

func CreateMerchantsMaterial

func CreateMerchantsMaterial(model *mysql.Merchant) (err error)

func CreateUser

func CreateUser(user *mysql.User) (err error)

func CreateUserLogisticsDelivery

func CreateUserLogisticsDelivery(model *mysql.UserLogisticsDelivery) error

func CreateUserLogisticsDeliveryByTx

func CreateUserLogisticsDeliveryByTx(tx *xorm.Session, model *mysql.UserLogisticsDelivery) error

func CreateVerifyCodeRecord

func CreateVerifyCodeRecord(record *mysql.VerifyCodeRecord) (err error)

func FindUserInfo

func FindUserInfo(sqlSelect string, uidList []int64) ([]mysql.User, error)

func GetMerchantIdByUid

func GetMerchantIdByUid(uid int) (*mysql.Merchant, error)

func GetMerchantsMaterial

func GetMerchantsMaterial(merchantId int) (*mysql.Merchant, error)

func GetUserByEmail

func GetUserByEmail(sqlSelect, email string) (*mysql.User, error)

func GetUserByInviteCode

func GetUserByInviteCode(inviteCode string) (*mysql.User, error)

func GetUserByPhone

func GetUserByPhone(sqlSelect, countryCode, phone string) (*mysql.User, error)

func GetUserByUid

func GetUserByUid(uid int) (*mysql.User, error)

func GetUserLogisticsDelivery

func GetUserLogisticsDelivery(sqlSelect string, id int64) (*mysql.UserLogisticsDelivery, error)

func GetUserLogisticsDeliveryList

func GetUserLogisticsDeliveryList(sqlSelect string, uid int64) ([]mysql.UserLogisticsDelivery, error)

func GetVerifyCode

func GetVerifyCode(businessType int, countryCode, phone, verifyCode string) (*mysql.VerifyCodeRecord, error)

func ListUserInfo

func ListUserInfo(sqlSelect string, pageSize, pageNum int) (result []mysql.User, err error)

func UpdateMerchantsMaterial

func UpdateMerchantsMaterial(query, maps map[string]interface{}) (err error)

func UpdateUserInfo

func UpdateUserInfo(query, maps interface{}) (err error)

func UpdateUserLogisticsDelivery

func UpdateUserLogisticsDelivery(where, maps interface{}) (int64, error)

func UpdateUserLogisticsDeliveryByTx

func UpdateUserLogisticsDeliveryByTx(tx *xorm.Session, where, maps interface{}) (int64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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