libservice

package
v0.0.0-...-b941d56 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: AGPL-3.0 Imports: 15 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HandOutExecTime = int64(0)
View Source
var Pay = &payService{}
View Source
var Shop = &shopService{}
View Source
var User = &userService{}
View Source
var Wallet = &walletService{}

Functions

This section is empty.

Types

type ChangeLevelParams

type ChangeLevelParams struct {
	UserId          int64
	NewLevelId      int
	LevelExpireDate *gtime.Time
	AdminName       string
	Remark          string
}

type ChangeWalletParam

type ChangeWalletParam struct {
	UserId     int64
	WalletType string
	Amount     int
	Remark     string
	TargetType string
	TargetID   int64
	AdminName  string // 如果不是管理员操作,留空
}

ChangeWalletParam 改变会员钱包余额的参数

type ConfigPay

type ConfigPay struct {
	Id                  int                     `json:"id"`
	ApiName             string                  `json:"api_name"`
	Params              []*ConfigPayParamsItem  `json:"params"`
	PayChannel          []*ConfigPayChannelItem `json:"pay_channel"`
	FrontendDescription string                  `json:"frontend_description"`
	BackendDescription  string                  `json:"backend_description"`
	Status              int                     `json:"status"`
	CreatedAt           int                     `json:"created_at"`
	UpdatedAt           int                     `json:"updated_at"`
}

type ConfigPayChannelItem

type ConfigPayChannelItem struct {
	Id          int    `json:"id"`
	Channel     string `json:"channel"`
	ChannelName string `json:"channel_name"`
	Status      int    `json:"status"`
}

ConfigPayChannelItem 渠道类型

type ConfigPayParamsItem

type ConfigPayParamsItem struct {
	Param     string `json:"param"`
	ParamName string `json:"param_name"`
	Value     string `json:"value"`
}

ConfigPayParamsItem 配置参数

type GetBalanceParams

type GetBalanceParams struct {
	UserId     int64
	WalletType string
}

GetBalanceParams 获取钱包余额的参数

Jump to

Keyboard shortcuts

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