service

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: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckUserDeliveryInfo

func CheckUserDeliveryInfo(ctx context.Context, req *users.CheckUserDeliveryInfoRequest) (retCode int)

func CheckUserExist

func CheckUserExist(ctx context.Context, countryCode, phone string) (bool, int)

func CheckUserIdentity

func CheckUserIdentity(ctx context.Context, req *users.CheckUserIdentityRequest) int

func CheckUserState

func CheckUserState(ctx context.Context, req *users.CheckUserStateRequest) (retCode int)

func FindUserInfo

func FindUserInfo(ctx context.Context, req *users.FindUserInfoRequest) (result []*users.UserInfoMain, retCode int)

func GenAccountId

func GenAccountId() string

func GenInviterCode

func GenInviterCode() string

func GetMerchantsMaterial

func GetMerchantsMaterial(ctx context.Context, req *users.GetMerchantsMaterialRequest) (*mysql.Merchant, int)

func GetUserAccountId

func GetUserAccountId(ctx context.Context, req *users.GetUserAccountIdRequest) (result []*users.UserAccountInfo, retCode int)

func GetUserInfo

func GetUserInfo(ctx context.Context, uid int) (*mysql.User, int)

func GetUserInfoByInviteCode

func GetUserInfoByInviteCode(ctx context.Context, inviteCode string) (*mysql.User, int)

func GetUserInfoByPhone

func GetUserInfoByPhone(ctx context.Context, countryCode, phone string) (*mysql.User, int)

func ListUserInfo

func ListUserInfo(ctx context.Context, req *users.ListUserInfoRequest) (result []*users.MobilePhone, retCode int)

func LoginUser

func LoginUser(ctx context.Context, req *users.LoginUserRequest) (string, int)

func MerchantsMaterial

func MerchantsMaterial(ctx context.Context, req *users.MerchantsMaterialRequest) (int, int)

func ModifyUserDeliveryInfo

func ModifyUserDeliveryInfo(ctx context.Context, req *users.ModifyUserDeliveryInfoRequest) int

func PasswordReset

func PasswordReset(ctx context.Context, req *users.PasswordResetRequest) int

func RegisterUser

func RegisterUser(ctx context.Context, req *users.RegisterRequest) (args.RegisterResult, int)

func UpdateUserLoginState

func UpdateUserLoginState(ctx context.Context, req *users.UpdateUserLoginStateRequest) int

func UserAccountCharge

func UserAccountCharge(ctx context.Context, req *users.UserAccountChargeRequest) (retCode int)

Types

type PushMsgTag

type PushMsgTag struct {
	DeliveryTag    string
	DeliveryErrTag string
	RetryCount     int
	RetryTimeout   int
}

type PushNoticeService

type PushNoticeService struct {
	// contains filtered or unexported fields
}

func NewPushNoticeService

func NewPushNoticeService(server *queue.MachineryQueue, tag PushMsgTag) *PushNoticeService

func (*PushNoticeService) GetTaskState

func (p *PushNoticeService) GetTaskState(taskId string) (*tasks.TaskState, error)

func (*PushNoticeService) PushMessage

func (p *PushNoticeService) PushMessage(ctx context.Context, args interface{}) (string, int)

Jump to

Keyboard shortcuts

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