-精简HTML结构,优化`account.html`,`apple-card/account.html`,和`t-mall-game/account.html`中iframe的布局。 - 调整CSS样式,以增强用户界面的一致性和可读性。 - 优化`account_history.html`中的表格和搜索栏的样式与对齐。 fix(controller): 修正新增控制器参数顺序 - 修正`addController.go`中的参数顺序,确保交易类型正确传递给服务层。 - 更新数据库插入操作,确保UUID正确分配给新记录,防止SQL错误。
256 lines
5.0 KiB
Go
256 lines
5.0 KiB
Go
package datas
|
|
|
|
import (
|
|
"boss/internal/models/accounts"
|
|
"boss/internal/models/agent"
|
|
"boss/internal/models/merchant"
|
|
"boss/internal/models/order"
|
|
"boss/internal/models/payfor"
|
|
"boss/internal/models/road"
|
|
"boss/internal/models/system"
|
|
"boss/internal/models/user"
|
|
)
|
|
|
|
type BaseDataJSON struct {
|
|
Msg string
|
|
Code int
|
|
}
|
|
|
|
type KeyDataJSON struct {
|
|
Msg string
|
|
Code int
|
|
Key string
|
|
}
|
|
|
|
type KeyDataJSON2 struct {
|
|
KeyDataJSON
|
|
Data interface{}
|
|
}
|
|
|
|
type MenuDataJSON struct {
|
|
StartIndex int
|
|
DisplayCount int
|
|
CurrentPage int
|
|
TotalPage int
|
|
Code int
|
|
Msg string
|
|
MenuList []system.MenuInfo
|
|
}
|
|
|
|
type SecondMenuDataJSON struct {
|
|
StartIndex int
|
|
DisplayCount int
|
|
CurrentPage int
|
|
TotalPage int
|
|
Code int
|
|
Msg string
|
|
SecondMenuList []system.SecondMenuInfo
|
|
}
|
|
|
|
type PowerItemDataJSON struct {
|
|
StartIndex int
|
|
DisplayCount int
|
|
CurrentPage int
|
|
TotalPage int
|
|
Code int
|
|
Msg string
|
|
PowerItemList []system.PowerInfo
|
|
}
|
|
|
|
type RoleInfoDataJSON struct {
|
|
StartIndex int
|
|
DisplayCount int
|
|
CurrentPage int
|
|
TotalPage int
|
|
Code int
|
|
Msg string
|
|
RoleInfoList []system.RoleInfo
|
|
}
|
|
|
|
type DeployTreeJSON struct {
|
|
Msg string
|
|
Code int
|
|
Key string
|
|
AllFirstMenu []system.MenuInfo
|
|
ShowFirstMenuUid map[string]bool
|
|
AllSecondMenu []system.SecondMenuInfo
|
|
ShowSecondMenuUid map[string]bool
|
|
AllPower []system.PowerInfo
|
|
ShowPowerUid map[string]bool
|
|
}
|
|
|
|
type OperatorDataJSON struct {
|
|
Msg string
|
|
Code int
|
|
StartIndex int
|
|
DisplayCount int
|
|
CurrentPage int
|
|
TotalPage int
|
|
OperatorList []user.UserInfo
|
|
}
|
|
|
|
type EditOperatorDataJSON struct {
|
|
Code int
|
|
Msg string
|
|
OperatorList []user.UserInfo
|
|
RoleList []system.RoleInfo
|
|
}
|
|
|
|
type BankCardDataJSON struct {
|
|
Msg string
|
|
Code int
|
|
StartIndex int
|
|
DisplayCount int
|
|
CurrentPage int
|
|
TotalPage int
|
|
BankCardInfoList []system.BankCardInfo
|
|
}
|
|
|
|
type RoadDataJSON struct {
|
|
Msg string
|
|
Code int
|
|
StartIndex int
|
|
DisplayCount int
|
|
CurrentPage int
|
|
TotalPage int
|
|
RoadInfoList []road.RoadInfo
|
|
RoadPool road.RoadPoolInfo
|
|
}
|
|
|
|
type RoadPoolDataJSON struct {
|
|
Msg string
|
|
Code int
|
|
StartIndex int
|
|
DisplayCount int
|
|
CurrentPage int
|
|
TotalPage int
|
|
RoadPoolInfoList []road.RoadPoolInfo
|
|
}
|
|
|
|
type MerchantDataJSON struct {
|
|
Msg string
|
|
Code int
|
|
StartIndex int
|
|
DisplayCount int
|
|
CurrentPage int
|
|
TotalPage int
|
|
MerchantList []merchant.MerchantInfo
|
|
}
|
|
|
|
type MerchantDeployDataJSON struct {
|
|
Code int
|
|
Msg string
|
|
MerchantDeploy merchant.MerchantDeployInfo
|
|
}
|
|
|
|
type AccountDataJSON struct {
|
|
Msg string
|
|
Code int
|
|
StartIndex int
|
|
DisplayCount int
|
|
CurrentPage int
|
|
TotalPage int
|
|
AccountList []accounts.AccountInfo
|
|
}
|
|
|
|
type AccountHistoryDataJSON struct {
|
|
Msg string
|
|
Code int
|
|
StartIndex int
|
|
DisplayCount int
|
|
CurrentPage int
|
|
TotalPage int
|
|
AccountHistoryList []accounts.AccountHistoryInfo
|
|
}
|
|
|
|
type AgentDataJSON struct {
|
|
Msg string
|
|
Code int
|
|
StartIndex int
|
|
DisplayCount int
|
|
CurrentPage int
|
|
TotalPage int
|
|
AgentList []agent.AgentInfo
|
|
}
|
|
|
|
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
|
|
OrderList []order.OrderInfo
|
|
//AllAmount float64
|
|
//SuccessRate string
|
|
NotifyUrl string
|
|
}
|
|
|
|
type OrderDataSummaryJSON struct {
|
|
//AllAmount float64
|
|
//SuccessRate string
|
|
OrderProfitSummary order.ProfitSummary `json:"OrderProfitSummary"`
|
|
}
|
|
|
|
type ListDataJSON struct {
|
|
Msg string
|
|
Code int
|
|
StartIndex int
|
|
DisplayCount int
|
|
CurrentPage int
|
|
TotalPage int
|
|
List []order.OrderProfitInfo
|
|
AllAmount float64
|
|
SupplierProfit float64
|
|
AgentProfit float64
|
|
PlatformProfit float64
|
|
|
|
TotalNum int // 付款总量
|
|
SucceedNum int // 成功付款总量
|
|
SucceedPaidAmount float64 // 支付订单总金额
|
|
|
|
TadayAllAmount float64
|
|
TadaySupplierProfit float64
|
|
TadayAgentProfit float64
|
|
TadayPlatformProfit float64
|
|
TadaySuccessNum int //今日成功笔数
|
|
TadayAllNum int //今日总订单数据
|
|
}
|
|
|
|
type PayForDataJSON struct {
|
|
Msg string
|
|
Code int
|
|
StartIndex int
|
|
DisplayCount int
|
|
CurrentPage int
|
|
TotalPage int
|
|
PayForList []payfor.PayforInfo
|
|
}
|
|
|
|
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
|
|
ProfitList []order.PlatformProfit
|
|
}
|