Documentation ¶
Index ¶
- Variables
- func GetOrgDepositPriceByOrgID(orgID int64) (price int64)
- func GetOrgDepositTotalPrice() (price int64)
- func GetOrgSavingPriceByOrgID(orgID int64) (price int64)
- func GetOrgSavingTotalPrice() (price int64)
- func GetUserDepositPriceByOrgID(orgID int64, userID int64) (price int64)
- func GetUserDepositTotalPriceByOrgID(orgID int64) (price int64)
- func GetUserFreePriceByOrgID(orgID int64, userID int64) (price int64)
- func GetUserFreeTotalPriceByOrgID(orgID int64) (price int64)
- func GetUserSavingPriceByOrgID(orgID int64, userID int64) (price int64)
- func GetUserSavingTotalPriceByOrgID(orgID int64) (price int64)
- func Init()
- func SetOrgDeposit(hash string, orgID int64, addPrice int64) (errCode string, err error)
- func SetOrgSaving(hash string, orgID int64, addPrice int64) (errCode string, err error)
- func SetUserDeposit(hash string, orgID int64, userID int64, addPrice int64) (errCode string, err error)
- func SetUserFree(hash string, orgID int64, userID int64, addPrice int64) (errCode string, err error)
- func SetUserSaving(hash string, orgID int64, userID int64, addPrice int64) (errCode string, err error)
- type FieldsOrgDeposit
- type FieldsOrgSaving
- type FieldsUserDeposit
- type FieldsUserFree
- type FieldsUserSaving
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //OpenAnalysis 是否启动analysis OpenAnalysis = false )
Functions ¶
func GetOrgDepositTotalPrice ¶
func GetOrgDepositTotalPrice() (price int64)
GetOrgDepositTotalPrice 获取当前储蓄总额
func GetOrgSavingTotalPrice ¶
func GetOrgSavingTotalPrice() (price int64)
GetOrgSavingTotalPrice 获取当前储蓄总额
func GetUserDepositTotalPriceByOrgID ¶
GetUserDepositTotalPriceByOrgID 获取当前储蓄总额
func GetUserFreePriceByOrgID ¶
func GetUserFreeTotalPriceByOrgID ¶
GetUserFreeTotalPriceByOrgID 获取当前储蓄总额
func GetUserSavingTotalPriceByOrgID ¶
GetUserSavingTotalPriceByOrgID 获取当前储蓄总额
func SetOrgDeposit ¶
SetOrgDeposit 变更组织押金
func SetOrgSaving ¶
SetOrgSaving 变更组织押金
func SetUserDeposit ¶
func SetUserDeposit(hash string, orgID int64, userID int64, addPrice int64) (errCode string, err error)
SetUserDeposit 变更组织押金
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 获取组织押金
Click to show internal directories.
Click to hide internal directories.