dongfeng-pay/boss/datas/datas.go

234 lines
4.3 KiB
Go
Raw Normal View History

2021-11-11 10:30:43 +08:00
package datas
import (
"boss/models/accounts"
"boss/models/agent"
"boss/models/merchant"
"boss/models/order"
"boss/models/payfor"
"boss/models/road"
"boss/models/system"
"boss/models/user"
)
2021-04-27 15:33:49 +08:00
type BaseDataJSON struct {
Msg string
Code int
}
type KeyDataJSON struct {
Msg string
Code int
Key string
}
type MenuDataJSON struct {
StartIndex int
DisplayCount int
CurrentPage int
TotalPage int
Code int
Msg string
2021-11-11 10:30:43 +08:00
MenuList []system.MenuInfo
2021-04-27 15:33:49 +08:00
}
type SecondMenuDataJSON struct {
StartIndex int
DisplayCount int
CurrentPage int
TotalPage int
Code int
Msg string
2021-11-11 10:30:43 +08:00
SecondMenuList []system.SecondMenuInfo
2021-04-27 15:33:49 +08:00
}
type PowerItemDataJSON struct {
StartIndex int
DisplayCount int
CurrentPage int
TotalPage int
Code int
Msg string
2021-11-11 10:30:43 +08:00
PowerItemList []system.PowerInfo
2021-04-27 15:33:49 +08:00
}
type RoleInfoDataJSON struct {
StartIndex int
DisplayCount int
CurrentPage int
TotalPage int
Code int
Msg string
2021-11-11 10:30:43 +08:00
RoleInfoList []system.RoleInfo
2021-04-27 15:33:49 +08:00
}
type DeployTreeJSON struct {
Msg string
Code int
Key string
2021-11-11 10:30:43 +08:00
AllFirstMenu []system.MenuInfo
2021-04-27 15:33:49 +08:00
ShowFirstMenuUid map[string]bool
2021-11-11 10:30:43 +08:00
AllSecondMenu []system.SecondMenuInfo
2021-04-27 15:33:49 +08:00
ShowSecondMenuUid map[string]bool
2021-11-11 10:30:43 +08:00
AllPower []system.PowerInfo
2021-04-27 15:33:49 +08:00
ShowPowerUid map[string]bool
}
type OperatorDataJSON struct {
Msg string
Code int
StartIndex int
DisplayCount int
CurrentPage int
TotalPage int
2021-11-11 10:30:43 +08:00
OperatorList []user.UserInfo
2021-04-27 15:33:49 +08:00
}
type EditOperatorDataJSON struct {
Code int
Msg string
2021-11-11 10:30:43 +08:00
OperatorList []user.UserInfo
RoleList []system.RoleInfo
2021-04-27 15:33:49 +08:00
}
type BankCardDataJSON struct {
Msg string
Code int
StartIndex int
DisplayCount int
CurrentPage int
TotalPage int
2021-11-11 10:30:43 +08:00
BankCardInfoList []system.BankCardInfo
2021-04-27 15:33:49 +08:00
}
type RoadDataJSON struct {
Msg string
Code int
StartIndex int
DisplayCount int
CurrentPage int
TotalPage int
2021-11-11 10:30:43 +08:00
RoadInfoList []road.RoadInfo
RoadPool road.RoadPoolInfo
2021-04-27 15:33:49 +08:00
}
type RoadPoolDataJSON struct {
Msg string
Code int
StartIndex int
DisplayCount int
CurrentPage int
TotalPage int
2021-11-11 10:30:43 +08:00
RoadPoolInfoList []road.RoadPoolInfo
2021-04-27 15:33:49 +08:00
}
type MerchantDataJSON struct {
Msg string
Code int
StartIndex int
DisplayCount int
CurrentPage int
TotalPage int
2021-11-11 10:30:43 +08:00
MerchantList []merchant.MerchantInfo
2021-04-27 15:33:49 +08:00
}
type MerchantDeployDataJSON struct {
Code int
Msg string
2021-11-11 10:30:43 +08:00
MerchantDeploy merchant.MerchantDeployInfo
2021-04-27 15:33:49 +08:00
}
type AccountDataJSON struct {
Msg string
Code int
StartIndex int
DisplayCount int
CurrentPage int
TotalPage int
2021-11-11 10:30:43 +08:00
AccountList []accounts.AccountInfo
2021-04-27 15:33:49 +08:00
}
type AccountHistoryDataJSON struct {
Msg string
Code int
StartIndex int
DisplayCount int
CurrentPage int
TotalPage int
2021-11-11 10:30:43 +08:00
AccountHistoryList []accounts.AccountHistoryInfo
2021-04-27 15:33:49 +08:00
}
type AgentDataJSON struct {
Msg string
Code int
StartIndex int
DisplayCount int
CurrentPage int
TotalPage int
2021-11-11 10:30:43 +08:00
AgentList []agent.AgentInfo
2021-04-27 15:33:49 +08:00
}
type ProductDataJSON struct {
Msg string
Code int
ProductMap map[string]string
}
type OrderDataJSON struct {
Msg string
Code int
StartIndex int
DisplayCount int
CurrentPage int
TotalPage int
2021-11-11 10:30:43 +08:00
OrderList []order.OrderInfo
2021-04-27 15:33:49 +08:00
AllAmount float64
SuccessRate string
NotifyUrl string
}
type ListDataJSON struct {
Msg string
Code int
StartIndex int
DisplayCount int
CurrentPage int
TotalPage int
2021-11-11 10:30:43 +08:00
List []order.OrderProfitInfo
2021-04-27 15:33:49 +08:00
AllAmount float64
SupplierProfit float64
AgentProfit float64
PlatformProfit float64
}
type PayForDataJSON struct {
Msg string
Code int
StartIndex int
DisplayCount int
CurrentPage int
TotalPage int
2021-11-11 10:30:43 +08:00
PayForList []payfor.PayforInfo
2021-04-27 15:33:49 +08:00
}
type BalanceDataJSON struct {
Msg string
Code int
Balance float64
}
type NotifyBankOrderIdListJSON struct {
Msg string
Code int
NotifyIdList []string
}
type ProfitListJSON struct {
TotalAmount float64
PlatformTotalProfit float64
AgentTotalProfit float64
Msg string
Code int
2021-11-11 10:30:43 +08:00
ProfitList []order.PlatformProfit
2021-04-27 15:33:49 +08:00
}