service

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyLogistics

func ApplyLogistics(ctx context.Context, req *args.ApplyLogisticsArgs) (result *args.ApplyLogisticsRsp, retCode int)

func CreateOrderComments

func CreateOrderComments(ctx context.Context, req *args.CreateOrderCommentsArgs) (retCode int)

func CreateUser

func CreateUser(ctx context.Context, req *args.RegisterUserArgs) (*args.RegisterUserRsp, int)

func GenAccountId

func GenAccountId() string

func GenExcelFile

func GenExcelFile(req *ExcelDataArgs) error

func GenInviterCode

func GenInviterCode() string

func GenOrderCode

func GenOrderCode(ctx context.Context, uid int64) (string, int)

func GenVerifyCode

func GenVerifyCode(ctx context.Context, req *args.GenVerifyCodeArgs) (retCode int, verifyCode string)

func GetCommentsTagsList

func GetCommentsTagsList(ctx context.Context, req *args.GetCommentsTagsListArgs) (result []args.CommentsTags, retCode int)

func GetOrderCommentsList

func GetOrderCommentsList(ctx context.Context, req *args.GetShopCommentsListArgs) (result []args.OrderCommentsInfo, retCode int)

func GetSkuList

func GetSkuList(ctx context.Context, req *args.GetSkuListArgs) (*args.GetSkuListRsp, int)

func GetUserInfo

func GetUserInfo(ctx context.Context, uid int) (*args.UserInfoRsp, int)

func GetUserInfoByPhone added in v1.1.0

func GetUserInfoByPhone(ctx context.Context, countryCode, phone string) (*users.GetUserInfoByPhoneResponse, int)

func GetUserTrolleyList

func GetUserTrolleyList(ctx context.Context, uid int64) (*args.UserTrolleyListRsp, int)

func ListUserInfo added in v1.1.0

func ListUserInfo(ctx context.Context, req *args.ListUserInfoArgs) (result args.ListUserInfoRsp, retCode int)

func LoginUserWithPwd

func LoginUserWithPwd(ctx context.Context, req *args.LoginUserWithPwdArgs) (string, int)

func LoginUserWithVerifyCode

func LoginUserWithVerifyCode(ctx context.Context, req *args.LoginUserWithVerifyCodeArgs) (string, int)

func ModifyCommentsTags

func ModifyCommentsTags(ctx context.Context, req *args.ModifyCommentsTagsArgs) (retCode int)

func ModifyUserSettingAddress

func ModifyUserSettingAddress(ctx context.Context, req *args.UserSettingAddressPutArgs) int

func OrderTrade

func OrderTrade(ctx context.Context, req *args.OrderTradeArgs) (result *args.OrderTradeRsp, retCode int)

func PasswordReset

func PasswordReset(ctx context.Context, req *args.PasswordResetArgs) int

func SearchShop

func SearchShop(ctx context.Context, req *args.SearchShopArgs) (interface{}, int)

func SearchSkuInventory

func SearchSkuInventory(ctx context.Context, req *args.SearchSkuInventoryArgs) (interface{}, int)

func SkuSupplementProperty

func SkuSupplementProperty(ctx context.Context, req *args.SkuPropertyExArgs) (*args.SkuPropertyExRsp, int)

func UserAccountCharge

func UserAccountCharge(ctx context.Context, req *args.UserAccountChargeArgs) (retCode int)

Types

type ExcelDataArgs

type ExcelDataArgs struct {
	OutFilePath string           `json:"out_file_path"`
	Sheets      []ExcelDataSheet `json:"sheets"`
}

type ExcelDataSheet

type ExcelDataSheet struct {
	Rows  [][]string `json:"rows"`
	Sheet string     `json:"sheet"`
}

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