FinanceDeposit2

package
v5.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	//OpenAnalysis 是否启动analysis
	OpenAnalysis = false
)

Functions

func GetOrgDepositPriceByOrgID

func GetOrgDepositPriceByOrgID(orgID int64) (price int64)

func GetOrgDepositTotalPrice

func GetOrgDepositTotalPrice() (price int64)

GetOrgDepositTotalPrice 获取当前储蓄总额

func GetOrgSavingPriceByOrgID

func GetOrgSavingPriceByOrgID(orgID int64) (price int64)

func GetOrgSavingTotalPrice

func GetOrgSavingTotalPrice() (price int64)

GetOrgSavingTotalPrice 获取当前储蓄总额

func GetUserDepositPriceByOrgID

func GetUserDepositPriceByOrgID(orgID int64, userID int64) (price int64)

func GetUserDepositTotalPriceByOrgID

func GetUserDepositTotalPriceByOrgID(orgID int64) (price int64)

GetUserDepositTotalPriceByOrgID 获取当前储蓄总额

func GetUserFreePriceByOrgID

func GetUserFreePriceByOrgID(orgID int64, userID int64) (price int64)

func GetUserFreeTotalPriceByOrgID

func GetUserFreeTotalPriceByOrgID(orgID int64) (price int64)

GetUserFreeTotalPriceByOrgID 获取当前储蓄总额

func GetUserSavingPriceByOrgID

func GetUserSavingPriceByOrgID(orgID int64, userID int64) (price int64)

func GetUserSavingTotalPriceByOrgID

func GetUserSavingTotalPriceByOrgID(orgID int64) (price int64)

GetUserSavingTotalPriceByOrgID 获取当前储蓄总额

func Init

func Init()

func SetOrgDeposit

func SetOrgDeposit(hash string, orgID int64, addPrice int64) (errCode string, err error)

SetOrgDeposit 变更组织押金

func SetOrgSaving

func SetOrgSaving(hash string, orgID int64, addPrice int64) (errCode string, err error)

SetOrgSaving 变更组织押金

func SetUserDeposit

func SetUserDeposit(hash string, orgID int64, userID int64, addPrice int64) (errCode string, err error)

SetUserDeposit 变更组织押金

func SetUserFree

func SetUserFree(hash string, orgID int64, userID int64, addPrice int64) (errCode string, err error)

SetUserFree 变更组织押金

func SetUserSaving

func SetUserSaving(hash string, orgID int64, userID int64, addPrice int64) (errCode string, err error)

SetUserSaving 变更组织押金

Types

type FieldsOrgDeposit

type FieldsOrgDeposit struct {
	//ID
	ID int64 `db:"id" json:"id"`
	//创建时间
	CreateAt time.Time `db:"create_at" json:"createAt"`
	//更新时间
	UpdateAt time.Time `db:"update_at" json:"updateAt"`
	//哈希值在每次更新数据前必须拉取,作为预备验证单元
	UpdateHash string `db:"update_hash" json:"updateHash"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//储蓄金额
	Price int64 `db:"price" json:"price"`
}

FieldsOrgDeposit 组织押金

func GetOrgDepositByOrgID

func GetOrgDepositByOrgID(orgID int64) (data FieldsOrgDeposit)

GetOrgDepositByOrgID 获取组织押金

type FieldsOrgSaving

type FieldsOrgSaving struct {
	//ID
	ID int64 `db:"id" json:"id"`
	//创建时间
	CreateAt time.Time `db:"create_at" json:"createAt"`
	//更新时间
	UpdateAt time.Time `db:"update_at" json:"updateAt"`
	//哈希值在每次更新数据前必须拉取,作为预备验证单元
	UpdateHash string `db:"update_hash" json:"updateHash"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//储蓄金额
	Price int64 `db:"price" json:"price"`
}

FieldsOrgSaving 组织储蓄

func GetOrgSavingByOrgID

func GetOrgSavingByOrgID(orgID int64) (data FieldsOrgSaving)

GetOrgSavingByOrgID 获取组织押金

type FieldsUserDeposit

type FieldsUserDeposit struct {
	//ID
	ID int64 `db:"id" json:"id"`
	//创建时间
	CreateAt time.Time `db:"create_at" json:"createAt"`
	//更新时间
	UpdateAt time.Time `db:"update_at" json:"updateAt"`
	//哈希值在每次更新数据前必须拉取,作为预备验证单元
	UpdateHash string `db:"update_hash" json:"updateHash"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//用户ID
	UserID int64 `db:"user_id" json:"userID" check:"id"`
	//储蓄金额
	Price int64 `db:"price" json:"price"`
}

FieldsUserDeposit 用户押金

func GetUserDepositByOrgID

func GetUserDepositByOrgID(orgID int64, userID int64) (data FieldsUserDeposit)

GetUserDepositByOrgID 获取组织押金

type FieldsUserFree

type FieldsUserFree struct {
	//ID
	ID int64 `db:"id" json:"id"`
	//创建时间
	CreateAt time.Time `db:"create_at" json:"createAt"`
	//更新时间
	UpdateAt time.Time `db:"update_at" json:"updateAt"`
	//哈希值在每次更新数据前必须拉取,作为预备验证单元
	UpdateHash string `db:"update_hash" json:"updateHash"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//用户ID
	UserID int64 `db:"user_id" json:"userID" check:"id"`
	//储蓄金额
	Price int64 `db:"price" json:"price"`
}

FieldsUserFree 用户免费赠送储蓄

func GetUserFreeByOrgID

func GetUserFreeByOrgID(orgID int64, userID int64) (data FieldsUserFree)

GetUserFreeByOrgID 获取组织押金

type FieldsUserSaving

type FieldsUserSaving struct {
	//ID
	ID int64 `db:"id" json:"id"`
	//创建时间
	CreateAt time.Time `db:"create_at" json:"createAt"`
	//更新时间
	UpdateAt time.Time `db:"update_at" json:"updateAt"`
	//哈希值在每次更新数据前必须拉取,作为预备验证单元
	UpdateHash string `db:"update_hash" json:"updateHash"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//用户ID
	UserID int64 `db:"user_id" json:"userID" check:"id"`
	//储蓄金额
	Price int64 `db:"price" json:"price"`
}

FieldsUserSaving 用户储蓄

func GetUserSavingByOrgID

func GetUserSavingByOrgID(orgID int64, userID int64) (data FieldsUserSaving)

GetUserSavingByOrgID 获取组织押金

Jump to

Keyboard shortcuts

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