models

package
v0.0.0-...-314d69b Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

**************************************************

** @Desc : This file for ...
** @Time : 2019/10/16 11:11
** @Author : yuebin
** @File : account
** @Last Modified by : yuebin
** @Last Modified time: 2019/10/16 11:11
** @Software: GoLand

***************************************************

**************************************************

** @Desc : This file for ...
** @Time : 2019/10/19 14:56
** @Author : yuebin
** @File : account_history_info
** @Last Modified by : yuebin
** @Last Modified time: 2019/10/19 14:56
** @Software: GoLand

***************************************************

**************************************************

** @Desc : This file for ...
** @Time : 2019/9/19 14:41
** @Author : yuebin
** @File : agent_info
** @Last Modified by : yuebin
** @Last Modified time: 2019/9/19 14:41
** @Software: GoLand

***************************************************

**************************************************

** @Desc : This file for ...
** @Time : 2019/12/17 17:50
** @Author : yuebin
** @File : agent_profit
** @Last Modified by : yuebin
** @Last Modified time: 2019/12/17 17:50
** @Software: GoLand

***************************************************

**************************************************

** @Desc : This file for ...
** @Time : 2019/9/6 10:19
** @Author : yuebin
** @File : bank_card_info
** @Last Modified by : yuebin
** @Last Modified time: 2019/9/6 10:19
** @Software: GoLand

***************************************************

**************************************************

** @Desc : This file for ...
** @Time : 2019/8/9 13:48
** @Author : yuebin
** @File : init
** @Last Modified by : yuebin
** @Last Modified time: 2019/8/9 13:48
** @Software: GoLand

***************************************************

**************************************************

** @Desc : This file for ...
** @Time : 2019/8/21 9:33
** @Author : yuebin
** @File : menu_info
** @Last Modified by : yuebin
** @Last Modified time: 2019/8/21 9:33
** @Software: GoLand

***************************************************

**************************************************

** @Desc : This file for ...
** @Time : 2019/10/7 11:52
** @Author : yuebin
** @File : merchant_deploy_info
** @Last Modified by : yuebin
** @Last Modified time: 2019/10/7 11:52
** @Software: GoLand

***************************************************

**************************************************

** @Desc : This file for ...
** @Time : 2019/9/28 16:47
** @Author : yuebin
** @File : merchant_info
** @Last Modified by : yuebin
** @Last Modified time: 2019/9/28 16:47
** @Software: GoLand

***************************************************

**************************************************

** @Desc : This file for ...
** @Time : 2019/11/22 13:07
** @Author : yuebin
** @File : merchant_load_info
** @Last Modified by : yuebin
** @Last Modified time: 2019/11/22 13:07
** @Software: GoLand

***************************************************

**************************************************

** @Desc : This file for ...
** @Time : 2019/11/20 13:13
** @Author : yuebin
** @File : notify_info
** @Last Modified by : yuebin
** @Last Modified time: 2019/11/20 13:13
** @Software: GoLand

***************************************************

**************************************************

** @Desc : This file for ...
** @Time : 2019/10/28 10:15
** @Author : yuebin
** @File : order_info
** @Last Modified by : yuebin
** @Last Modified time: 2019/10/28 10:15
** @Software: GoLand

***************************************************

**************************************************

** @Desc : This file for ...
** @Time : 2019/10/30 11:44
** @Author : yuebin
** @File : order_profit_info
** @Last Modified by : yuebin
** @Last Modified time: 2019/10/30 11:44
** @Software: GoLand

***************************************************

**************************************************

** @Desc : This file for ...
** @Time : 2019/10/30 11:41
** @Author : yuebin
** @File : order_settle_info
** @Last Modified by : yuebin
** @Last Modified time: 2019/10/30 11:41
** @Software: GoLand

***************************************************

**************************************************

** @Desc : This file for ...
** @Time : 2019/11/25 14:32
** @Author : yuebin
** @File : payfor_info
** @Last Modified by : yuebin
** @Last Modified time: 2019/11/25 14:32
** @Software: GoLand

***************************************************

**************************************************

** @Desc : This file for ...
** @Time : 2019/12/17 17:50
** @Author : yuebin
** @File : platform_profit
** @Last Modified by : yuebin
** @Last Modified time: 2019/12/17 17:50
** @Software: GoLand

***************************************************

**************************************************

** @Desc : This file for ...
** @Time : 2019/8/28 17:59
** @Author : yuebin
** @File : power_info
** @Last Modified by : yuebin
** @Last Modified time: 2019/8/28 17:59
** @Software: GoLand

***************************************************

**************************************************

** @Desc : This file for ...
** @Time : 2019/9/8 12:09
** @Author : yuebin
** @File : road_info
** @Last Modified by : yuebin
** @Last Modified time: 2019/9/8 12:09
** @Software: GoLand

***************************************************

**************************************************

** @Desc : This file for ...
** @Time : 2019/9/9 16:35
** @Author : yuebin
** @File : road_pool_info
** @Last Modified by : yuebin
** @Last Modified time: 2019/9/9 16:35
** @Software: GoLand

***************************************************

**************************************************

** @Desc : This file for ...
** @Time : 2019/8/29 14:43
** @Author : yuebin
** @File : role_info
** @Last Modified by : yuebin
** @Last Modified time: 2019/8/29 14:43
** @Software: GoLand

***************************************************

**************************************************

** @Desc : This file for ...
** @Time : 2019/8/26 9:33
** @Author : yuebin
** @File : second_menu_info
** @Last Modified by : yuebin
** @Last Modified time: 2019/8/26 9:33
** @Software: GoLand

***************************************************

**************************************************

** @Desc : This file for ...
** @Time : 2019/10/19 14:17
** @Author : yuebin
** @File : transaction
** @Last Modified by : yuebin
** @Last Modified time: 2019/10/19 14:17
** @Software: GoLand

***************************************************

**************************************************

** @Desc : This file for ...
** @Time : 2019/8/9 14:02
** @Author : yuebin
** @File : user_info
** @Last Modified by : yuebin
** @Last Modified time: 2019/8/9 14:02
** @Software: GoLand

***************************************************

Index

Constants

View Source
const ACCOUNT_HISTORY_INFO = "account_history_info"
View Source
const ACCOUNT_INFO = "account_info"
View Source
const AGENT_INFO = "agent_info"
View Source
const BANK_CARD_INFO = "bank_card_info"
View Source
const MENUINFO = "menu_info"
View Source
const MERCHANT_DEPLOY_INFO = "merchant_deploy_info"
View Source
const MERCHANT_INFO = "merchant_info"
View Source
const MERCHANT_LOAD_INFO = "merchant_load_info"
View Source
const NOTIFYINFO = "notify_info"
View Source
const ORDER_INFO = "order_info"
View Source
const ORDER_PROFIT_INFO = "order_profit_info"
View Source
const ORDER_SETTLE_INFO = "order_settle_info"
View Source
const PAYFORINFO = "payfor_info"
View Source
const POWER_INFO = "power_info"
View Source
const ROAD_INFO = "road_info"
View Source
const ROAD_POOL_INFO = "road_pool_info"
View Source
const ROLE_INFO = "role_info"
View Source
const SECOND_MENU_INFO = "second_menu_info"
View Source
const (
	USERINFO = "user_info"
)

Variables

This section is empty.

Functions

func BankOrderIdIsEixst

func BankOrderIdIsEixst(bankOrderId string) bool

func DeleteAccountByUid

func DeleteAccountByUid(accountUid string) bool

func DeleteAgentByAgentUid

func DeleteAgentByAgentUid(agentUid string) bool

func DeleteBankCardByUid

func DeleteBankCardByUid(uid string) bool

func DeleteMenuInfo

func DeleteMenuInfo(menuUid string)

func DeleteMerchantByUid

func DeleteMerchantByUid(merchantUid string) bool

func DeleteMerchantDeployByUidAndPayType

func DeleteMerchantDeployByUidAndPayType(uid, payType string) bool

func DeletePowerBySecondUid

func DeletePowerBySecondUid(secondUid string) bool

func DeletePowerItemByPowerID

func DeletePowerItemByPowerID(powerID string) bool

func DeleteRoadByRoadUid

func DeleteRoadByRoadUid(roadUid string) bool

func DeleteRoadPoolByCode

func DeleteRoadPoolByCode(roadPoolCode string) bool

func DeleteRoleByRoleUid

func DeleteRoleByRoleUid(roleUid string) bool

func DeleteSecondMenuByFirstMenuUid

func DeleteSecondMenuByFirstMenuUid(firstMenuUid string) bool

func DeleteSecondMenuBySecondMenuUid

func DeleteSecondMenuBySecondMenuUid(secondMenuUid string) bool

func DeleteUserByUserId

func DeleteUserByUserId(userId string) bool

func FirstMenuIsExists

func FirstMenuIsExists(firstMenu string) bool

func FirstMenuUidIsExists

func FirstMenuUidIsExists(firstMenUid string) bool

func ForUpdatePayFor

func ForUpdatePayFor(payFor PayforInfo) bool

func GetAccountHistoryLenByMap

func GetAccountHistoryLenByMap(params map[string]string) int

func GetAccountLenByMap

func GetAccountLenByMap(params map[string]string) int

func GetAgentInfoLenByMap

func GetAgentInfoLenByMap(params map[string]string) int

func GetAllAmountByMap

func GetAllAmountByMap(params map[string]string) float64

func GetBankCardLenByMap

func GetBankCardLenByMap(params map[string]string) int

func GetMenuLen

func GetMenuLen() int

func GetMenuLenByMap

func GetMenuLenByMap(params map[string]string) int

func GetMerchantDeployLenByMap

func GetMerchantDeployLenByMap(params map[string]string) int

func GetMerchantLenByMap

func GetMerchantLenByMap(params map[string]string) int

func GetMerchantLenByParams

func GetMerchantLenByParams(params map[string]string) int

func GetNotifyBankOrderIdListByParams

func GetNotifyBankOrderIdListByParams(params map[string]string) []string

func GetOperatorLenByMap

func GetOperatorLenByMap(params map[string]string) int

func GetOrderLenByMap

func GetOrderLenByMap(params map[string]string) int

func GetOrderProfitLenByMap

func GetOrderProfitLenByMap(params map[string]string) int

func GetPayForLenByMap

func GetPayForLenByMap(params map[string]string) int

func GetPowerItemLenByMap

func GetPowerItemLenByMap(params map[string]string) int

func GetRoadLenByMap

func GetRoadLenByMap(params map[string]string) int

func GetRoadPoolLenByMap

func GetRoadPoolLenByMap(params map[string]string) int

func GetRoleLenByMap

func GetRoleLenByMap(params map[string]string) int

func GetSecondMenuLen

func GetSecondMenuLen() int

func GetSecondMenuLenByFirstMenuUid

func GetSecondMenuLenByFirstMenuUid(firstMenuUid string) int

func GetSecondMenuLenByMap

func GetSecondMenuLenByMap(params map[string]string) int

func GetSuccessRateByMap

func GetSuccessRateByMap(params map[string]string) string

func Init

func Init()

func InsertAccountHistory

func InsertAccountHistory(accountHistory AccountHistoryInfo) bool

func InsertAgentInfo

func InsertAgentInfo(agentInfo AgentInfo) bool

func InsertBankCardInfo

func InsertBankCardInfo(bankCardInfo BankCardInfo) bool

func InsertMenu

func InsertMenu(menuInfo MenuInfo) bool

func InsertMerchantDeployInfo

func InsertMerchantDeployInfo(merchantDeployInfo MerchantDeployInfo) bool

func InsertMerchantInfo

func InsertMerchantInfo(merchantInfo MerchantInfo) bool

func InsertNotifyInfo

func InsertNotifyInfo(notifyInfo NotifyInfo) bool

func InsertOrder

func InsertOrder(orderInfo OrderInfo) bool

func InsertPayfor

func InsertPayfor(payFor PayforInfo) bool

func InsertPowerInfo

func InsertPowerInfo(powerInfo PowerInfo) bool

func InsertRoadInfo

func InsertRoadInfo(roadInfo RoadInfo) bool

func InsertRoadPool

func InsertRoadPool(roadPool RoadPoolInfo) bool

func InsertRole

func InsertRole(roleInfo RoleInfo) bool

func InsertSecondMenu

func InsertSecondMenu(secondMenuInfo SecondMenuInfo) bool

func InsertUser

func InsertUser(userInfo UserInfo) bool

func InsetAcount

func InsetAcount(account AccountInfo) bool

func IsEixstByAgentName

func IsEixstByAgentName(agentName string) bool

func IsEixstByAgentPhone

func IsEixstByAgentPhone(agentPhone string) bool

func IsExistByAgentUid

func IsExistByAgentUid(uid string) bool

func IsExistByMerchantName

func IsExistByMerchantName(merchantName string) bool

func IsExistByMerchantPhone

func IsExistByMerchantPhone(phone string) bool

func IsExistByMerchantUid

func IsExistByMerchantUid(uid string) bool

func IsExistByUidAndPayType

func IsExistByUidAndPayType(uid, payType string) bool

func IsExistMerchantByAgentUid

func IsExistMerchantByAgentUid(uid string) bool

func IsExistMerchantLoadByParams

func IsExistMerchantLoadByParams(params map[string]string) bool

func IsExistPayForByBankOrderId

func IsExistPayForByBankOrderId(bankOrderId string) bool

func IsExistPayForByMerchantOrderId

func IsExistPayForByMerchantOrderId(merchantOrderId string) bool
func MenuOrderIsExists(menuOrder int) bool

func NickIsExist

func NickIsExist(nick string) bool

func NotifyInfoExistByBankOrderId

func NotifyInfoExistByBankOrderId(bankOrderId string) bool

func OperatorAccount

func OperatorAccount(accountUid, operatorType string, amount float64) (string, bool)

func OrderNoIsEixst

func OrderNoIsEixst(orderId string) bool

func PowerUidExists

func PowerUidExists(powerUid string) bool

func RoadInfoExistByRoadUid

func RoadInfoExistByRoadUid(roadUid string) bool

func RoleNameExists

func RoleNameExists(roleName string) bool

func SecondMenuExistByMenuOrder

func SecondMenuExistByMenuOrder(menuOrder int) bool

func SecondMenuIsExists

func SecondMenuIsExists(seconfMenu string) bool

func SecondMenuUidIsExists

func SecondMenuUidIsExists(secondMenuUid string) bool

func SecondRouterExists

func SecondRouterExists(secondRouter string) bool

func UpdateAccount

func UpdateAccount(account AccountInfo) bool

func UpdateAgentInfo

func UpdateAgentInfo(agentInfo AgentInfo) bool

func UpdateBankCard

func UpdateBankCard(bankCard BankCardInfo) bool

func UpdateMenuInfo

func UpdateMenuInfo(menuInfo MenuInfo)

func UpdateMerchant

func UpdateMerchant(merchantInfo MerchantInfo) bool

func UpdateMerchantDeploy

func UpdateMerchantDeploy(merchantDeploy MerchantDeployInfo) bool

func UpdateNotifyInfo

func UpdateNotifyInfo(notifyInfo NotifyInfo) bool

func UpdatePayFor

func UpdatePayFor(payFor PayforInfo) bool

func UpdateRoadInfo

func UpdateRoadInfo(roadInfo RoadInfo) bool

func UpdateRoadPool

func UpdateRoadPool(roadPool RoadPoolInfo) bool

func UpdateRoleInfo

func UpdateRoleInfo(roleInfo RoleInfo) bool

func UpdateSecondMenu

func UpdateSecondMenu(secondMenu SecondMenuInfo)

func UpdateSecondMenuOrderBySecondUid

func UpdateSecondMenuOrderBySecondUid(secondUid string, order int)

func UpdateStauts

func UpdateStauts(status, userId string) bool

func UpdateUserInfo

func UpdateUserInfo(userInfo UserInfo)

func UpdateUserInfoIP

func UpdateUserInfoIP(userInfo UserInfo)

func UpdateUserInfoPassword

func UpdateUserInfoPassword(userInfo UserInfo)

func UserInfoExistByUserId

func UserInfoExistByUserId(userId string) bool

Types

type AccountHistoryInfo

type AccountHistoryInfo struct {
	Id          int
	AccountUid  string
	AccountName string
	Type        string
	Amount      float64
	Balance     float64
	UpdateTime  string
	CreateTime  string
}

func GetAccountHistoryByMap

func GetAccountHistoryByMap(params map[string]string, displayCount, offset int) []AccountHistoryInfo

type AccountInfo

type AccountInfo struct {
	Id           int
	Status       string
	AccountUid   string
	AccountName  string
	Balance      float64 //账户总余额
	SettleAmount float64 //已经结算的金额
	LoanAmount   float64 //账户押款金额
	FreezeAmount float64 //账户冻结金额
	WaitAmount   float64 //待结算资金
	PayforAmount float64 //代付在途金额
	//AbleBalance  float64 //账户可用金额
	UpdateTime string
	CreateTime string
}

func GetAccountByMap

func GetAccountByMap(params map[string]string, displayCount, offset int) []AccountInfo

func GetAccountByUid

func GetAccountByUid(accountUid string) AccountInfo

func GetAllAccount

func GetAllAccount() []AccountInfo

type AgentInfo

type AgentInfo struct {
	Id            int
	Status        string
	AgentName     string
	AgentPassword string
	PayPassword   string
	AgentRemark   string
	AgentUid      string
	AgentPhone    string
	UpdateTime    string
	CreateTime    string
}

func GetAgentInfoByAgentUid

func GetAgentInfoByAgentUid(agentUid string) AgentInfo

func GetAgentInfoByMap

func GetAgentInfoByMap(params map[string]string, displayCount, offset int) []AgentInfo

func GetAgentInfoByPhone

func GetAgentInfoByPhone(phone string) AgentInfo

func GetAllAgentByMap

func GetAllAgentByMap(parmas map[string]string) []AgentInfo

type AgentProfit

type AgentProfit struct {
}

type BankCardInfo

type BankCardInfo struct {
	Id              int
	Uid             string
	UserName        string
	BankName        string
	BankCode        string
	BankAccountType string
	AccountName     string
	BankNo          string
	IdentifyCard    string
	CertificateNo   string
	PhoneNo         string
	BankAddress     string
	UpdateTime      string
	CreateTime      string
}

func GetBankCardByMap

func GetBankCardByMap(params map[string]string, displayCount, offset int) []BankCardInfo

func GetBankCardByUid

func GetBankCardByUid(uid string) BankCardInfo
type MenuInfo struct {
	Id         int
	MenuOrder  int
	MenuUid    string
	FirstMenu  string
	SecondMenu string
	Creater    string
	Status     string
	CreateTime string
	UpdateTime string
}

func GetMenuAll

func GetMenuAll() []MenuInfo

func GetMenuInfoByMenuOrder

func GetMenuInfoByMenuOrder(menuOrder int) MenuInfo

func GetMenuInfoByMenuUid

func GetMenuInfoByMenuUid(menuUid string) MenuInfo

func GetMenuInfosByMenuUids

func GetMenuInfosByMenuUids(menuUids []string) []MenuInfo

func GetMenuOffset

func GetMenuOffset(displayCount, offset int) []MenuInfo

func GetMenuOffsetByMap

func GetMenuOffsetByMap(params map[string]string, displayCount, offset int) []MenuInfo
type MenuInfoSlice []MenuInfo

实现排序的三个接口函数

func (m MenuInfoSlice) Len() int
func (m MenuInfoSlice) Less(i, j int) bool
func (m MenuInfoSlice) Swap(i, j int)

type MerchantDeployInfo

type MerchantDeployInfo struct {
	Id                     int
	Status                 string
	MerchantUid            string
	PayType                string
	SingleRoadUid          string
	SingleRoadName         string
	SingleRoadPlatformRate float64
	SingleRoadAgentRate    float64
	RollRoadCode           string
	RollRoadName           string
	RollRoadPlatformRate   float64
	RollRoadAgentRate      float64
	IsLoan                 string
	LoanRate               float64
	LoanDays               int
	UnfreezeHour           int
	WaitUnfreezeAmount     float64
	LoanAmount             float64
	UpdateTime             string
	CreateTime             string
}

func GetMerchantDeployByHour

func GetMerchantDeployByHour(hour int) []MerchantDeployInfo

func GetMerchantDeployByUid

func GetMerchantDeployByUid(uid string) (ms []MerchantDeployInfo)

func GetMerchantDeployByUidAndPayType

func GetMerchantDeployByUidAndPayType(uid, payType string) MerchantDeployInfo

func GetMerchantDeployListByMap

func GetMerchantDeployListByMap(params map[string]string, displayCount, offset int) (md []MerchantDeployInfo)

type MerchantInfo

type MerchantInfo struct {
	Id                   int
	Status               string
	BelongAgentUid       string
	BelongAgentName      string
	MerchantName         string
	MerchantUid          string
	MerchantKey          string
	MerchantSecret       string
	LoginPassword        string
	LoginAccount         string
	AutoSettle           string
	AutoPayFor           string
	WhiteIps             string
	Remark               string
	SinglePayForRoadUid  string
	SinglePayForRoadName string
	RollPayForRoadCode   string
	RollPayForRoadName   string
	PayforFee            float64
	UpdateTime           string
	CreateTime           string
}

func GetAllMerchant

func GetAllMerchant() []MerchantInfo

func GetMerchantByParams

func GetMerchantByParams(params map[string]string, displayCount, offset int) []MerchantInfo

func GetMerchantByPaykey

func GetMerchantByPaykey(payKey string) MerchantInfo

func GetMerchantByPhone

func GetMerchantByPhone(phone string) (m MerchantInfo)

func GetMerchantByUid

func GetMerchantByUid(merchantUid string) MerchantInfo

func GetMerchantListByMap

func GetMerchantListByMap(params map[string]string, displayCount, offset int) []MerchantInfo

type MerchantLoadInfo

type MerchantLoadInfo struct {
	Id          int
	Status      string
	MerchantUid string
	RoadUid     string
	LoadDate    string
	LoadAmount  float64
	UpdateTime  string
	CreateTime  string
}

func GetMerchantLoadInfoByMap

func GetMerchantLoadInfoByMap(params map[string]string) []MerchantLoadInfo

type NotifyInfo

type NotifyInfo struct {
	Id              int
	Type            string //订单-order,代付-payfor
	BankOrderId     string
	MerchantOrderId string
	Status          string
	Times           int
	Url             string
	Response        string
	UpdateTime      string
	CreateTime      string
}

func GetNotifyInfoByBankOrderId

func GetNotifyInfoByBankOrderId(bankOrderId string) NotifyInfo

func GetNotifyInfosNotSuccess

func GetNotifyInfosNotSuccess(params map[string]interface{}) []NotifyInfo

type OrderInfo

type OrderInfo struct {
	Id              int
	ShopName        string  //商品名称
	OrderPeriod     string  //订单有效时间
	MerchantOrderId string  //商户订单id
	BankOrderId     string  //本系统订单id
	BankTransId     string  //上游流水id
	OrderAmount     float64 //订单提交的金额
	ShowAmount      float64 //待支付的金额
	FactAmount      float64 //用户实际支付金额
	RollPoolCode    string  //轮询池编码
	RollPoolName    string  //轮询池名臣
	RoadUid         string  //通道标识
	RoadName        string  //通道名称
	PayProductName  string  //上游支付公司的名称
	PayProductCode  string  //上游支付公司的编码代号
	PayTypeCode     string  //支付产品编码
	PayTypeName     string  //支付产品名称
	OsType          string  //操作系统类型
	Status          string  //订单支付状态
	Refund          string  //退款状态
	RefundTime      string  //退款操作时间
	Freeze          string  //冻结状态
	FreezeTime      string  //冻结时间
	Unfreeze        string  //是否已经解冻
	UnfreezeTime    string  //解冻时间
	ReturnUrl       string  //支付完跳转地址
	NotifyUrl       string  //下游回调地址
	MerchantUid     string  //商户id
	MerchantName    string  //商户名称
	AgentUid        string  //该商户所属代理
	AgentName       string  //该商户所属代理名称
	UpdateTime      string
	CreateTime      string
}

func GetOneOrder

func GetOneOrder(bankOrderId string) OrderInfo

func GetOrderByBankOrderId

func GetOrderByBankOrderId(bankOrderId string) OrderInfo

func GetOrderByMap

func GetOrderByMap(params map[string]string, display, offset int) []OrderInfo

func GetOrderByMerchantOrderId

func GetOrderByMerchantOrderId(merchantOrderId string) OrderInfo

type OrderProfitInfo

type OrderProfitInfo struct {
	Id              int
	MerchantName    string
	MerchantUid     string
	AgentName       string
	AgentUid        string
	PayProductCode  string
	PayProductName  string
	PayTypeCode     string
	PayTypeName     string
	Status          string
	MerchantOrderId string
	BankOrderId     string
	BankTransId     string
	OrderAmount     float64
	ShowAmount      float64
	FactAmount      float64
	UserInAmount    float64
	SupplierRate    float64
	PlatformRate    float64
	AgentRate       float64
	AllProfit       float64
	SupplierProfit  float64
	PlatformProfit  float64
	AgentProfit     float64
	UpdateTime      string
	CreateTime      string
}

func GetOrderProfitByBankOrderId

func GetOrderProfitByBankOrderId(bankOrderId string) OrderProfitInfo

func GetOrderProfitByMap

func GetOrderProfitByMap(params map[string]string, display, offset int) []OrderProfitInfo

type OrderSettleInfo

type OrderSettleInfo struct {
	Id               int
	PayProductCode   string
	PayProductName   string
	PayTypeCode      string
	RoadUid          string
	PayTypeName      string
	MerchantUid      string
	MerchantName     string
	MerchantOrderId  string
	BankOrderId      string
	SettleAmount     float64
	IsAllowSettle    string
	IsCompleteSettle string
	UpdateTime       string
	CreateTime       string
}

func GetOrderSettleListByParams

func GetOrderSettleListByParams(params map[string]string) []OrderSettleInfo

type PayforInfo

type PayforInfo struct {
	Id                 int
	PayforUid          string
	MerchantUid        string
	MerchantName       string
	MerchantOrderId    string
	BankOrderId        string
	BankTransId        string
	RoadUid            string
	RoadName           string
	RollPoolCode       string
	RollPoolName       string
	PayforFee          float64
	PayforAmount       float64
	PayforTotalAmount  float64
	BankCode           string
	BankName           string
	BankAccountName    string
	BankAccountNo      string
	BankAccountType    string
	Country            string
	City               string
	Ares               string
	BankAccountAddress string
	PhoneNo            string
	GiveType           string
	Type               string
	NotifyUrl          string
	Status             string
	IsSend             string
	RequestTime        string
	ResponseTime       string
	ResponseContext    string
	Remark             string
	CreateTime         string
	UpdateTime         string
}

func GetPayForByBankOrderId

func GetPayForByBankOrderId(bankOrderId string) PayforInfo

func GetPayForByMap

func GetPayForByMap(params map[string]string, displayCount, offset int) []PayforInfo

func GetPayForByMerchantOrderId

func GetPayForByMerchantOrderId(merchantOrderId string) PayforInfo

func GetPayForListByParams

func GetPayForListByParams(params map[string]string) []PayforInfo

type PlatformProfit

type PlatformProfit struct {
	MerchantName   string
	AgentName      string
	SupplierName   string
	PayTypeName    string
	OrderAmount    float64
	OrderCount     int
	PlatformProfit float64
	AgentProfit    float64
}

func GetPlatformProfitByMap

func GetPlatformProfitByMap(params map[string]string) []PlatformProfit

type PowerInfo

type PowerInfo struct {
	Id            int
	FirstMenuUid  string
	SecondMenuUid string
	SecondMenu    string
	PowerId       string
	PowerItem     string
	Creater       string
	Status        string
	CreateTime    string
	UpdateTime    string
}

func GetPower

func GetPower() []PowerInfo

func GetPowerById

func GetPowerById(powerId string) PowerInfo

func GetPowerByIds

func GetPowerByIds(powerIds []string) []PowerInfo

func GetPowerItemByMap

func GetPowerItemByMap(params map[string]string, displpay, offset int) []PowerInfo

type PowerInfoSlice

type PowerInfoSlice []PowerInfo

func (PowerInfoSlice) Len

func (sm PowerInfoSlice) Len() int

func (PowerInfoSlice) Less

func (sm PowerInfoSlice) Less(i, j int) bool

func (PowerInfoSlice) Swap

func (sm PowerInfoSlice) Swap(i, j int)

type RoadInfo

type RoadInfo struct {
	Id             int
	Status         string
	RoadName       string
	RoadUid        string
	Remark         string
	ProductName    string
	ProductUid     string
	PayType        string
	BasicFee       float64
	SettleFee      float64
	TotalLimit     float64
	TodayLimit     float64
	SingleMinLimit float64
	SingleMaxLimit float64
	StarHour       int
	EndHour        int
	Params         string
	TodayIncome    float64
	TotalIncome    float64
	TodayProfit    float64
	TotalProfit    float64
	Balance        float64
	RequestAll     int
	RequestSuccess int
	UpdateTime     string
	CreateTime     string
}

func GetAllRoad

func GetAllRoad(params map[string]string) []RoadInfo

func GetRoadInfoByMap

func GetRoadInfoByMap(params map[string]string, displayCount, offset int) []RoadInfo

func GetRoadInfoByName

func GetRoadInfoByName(roadName string) RoadInfo

func GetRoadInfoByRoadUid

func GetRoadInfoByRoadUid(roadUid string) RoadInfo

func GetRoadInfosByRoadUids

func GetRoadInfosByRoadUids(roadUids []string) []RoadInfo

type RoadPoolInfo

type RoadPoolInfo struct {
	Id           int
	Status       string
	RoadPoolName string
	RoadPoolCode string
	RoadUidPool  string
	UpdateTime   string
	CreateTime   string
}

func GetAllRollPool

func GetAllRollPool(params map[string]string) []RoadPoolInfo

func GetRoadPoolByMap

func GetRoadPoolByMap(params map[string]string, displayCount, offset int) []RoadPoolInfo

func GetRoadPoolByName

func GetRoadPoolByName(roadPoolName string) RoadPoolInfo

func GetRoadPoolByRoadPoolCode

func GetRoadPoolByRoadPoolCode(roadPoolCode string) RoadPoolInfo

type RoleInfo

type RoleInfo struct {
	Id             int
	RoleName       string
	RoleUid        string
	ShowFirstMenu  string
	ShowFirstUid   string
	ShowSecondMenu string
	ShowSecondUid  string
	ShowPower      string
	ShowPowerUid   string
	Creater        string
	Status         string
	Remark         string
	CreateTime     string
	UpdateTime     string
}

func GetRole

func GetRole() []RoleInfo

func GetRoleByMap

func GetRoleByMap(params map[string]string, display, offset int) []RoleInfo

func GetRoleByRoleUid

func GetRoleByRoleUid(roleUid string) RoleInfo

type SecondMenuInfo

type SecondMenuInfo struct {
	Id             int
	FirstMenuOrder int
	FirstMenuUid   string
	FirstMenu      string
	MenuOrder      int
	SecondMenuUid  string
	SecondMenu     string
	SecondRouter   string
	Creater        string
	Status         string
	CreateTime     string
	UpdateTime     string
}

func GetSecondMenuByMap

func GetSecondMenuByMap(params map[string]string, displayCount, offset int) []SecondMenuInfo

func GetSecondMenuInfoByMenuOrder

func GetSecondMenuInfoByMenuOrder(menuOrder int, firstMenuUid string) SecondMenuInfo

func GetSecondMenuInfoBySecondMenuUid

func GetSecondMenuInfoBySecondMenuUid(secondMenuUid string) SecondMenuInfo

func GetSecondMenuInfoBySecondMenuUids

func GetSecondMenuInfoBySecondMenuUids(secondMenuUids []string) []SecondMenuInfo

func GetSecondMenuList

func GetSecondMenuList() []SecondMenuInfo

func GetSecondMenuListByFirstMenuUid

func GetSecondMenuListByFirstMenuUid(firstMenuUid string) []SecondMenuInfo

type SecondMenuSlice

type SecondMenuSlice []SecondMenuInfo

func (SecondMenuSlice) Len

func (sm SecondMenuSlice) Len() int

func (SecondMenuSlice) Less

func (sm SecondMenuSlice) Less(i, j int) bool

func (SecondMenuSlice) Swap

func (sm SecondMenuSlice) Swap(i, j int)

type UserInfo

type UserInfo struct {
	Id         int
	UserId     string
	Passwd     string
	Nick       string
	Remark     string
	Ip         string
	Status     string
	Role       string
	RoleName   string
	CreateTime string
	UpdateTime string
}

func GetOperatorByMap

func GetOperatorByMap(params map[string]string, displayCount, offset int) []UserInfo

func GetUserInfoByUserID

func GetUserInfoByUserID(userID string) UserInfo

Jump to

Keyboard shortcuts

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