controllers

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: 14 Imported by: 0

Documentation

Overview

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

** @Desc : c file for ...
** @Time : 2019/8/19 18:13
** @Author : yuebin
** @File : add
** @Last Modified by : yuebin
** @Last Modified time: 2019/8/19 18:13
** @Software: GoLand

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

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

** @Desc : c file for ...
** @Time : 2019/8/13 18:09
** @Author : yuebin
** @File : base_controller
** @Last Modified by : yuebin
** @Last Modified time: 2019/8/13 18:09
** @Software: GoLand

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

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

** @Desc : c file for ...
** @Time : 2019/8/16 10:03
** @Author : yuebin
** @File : datas
** @Last Modified by : yuebin
** @Last Modified time: 2019/8/16 10:03
** @Software: GoLand

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

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

** @Desc : c file for ...
** @Time : 2019/8/21 16:51
** @Author : yuebin
** @File : delete
** @Last Modified by : yuebin
** @Last Modified time: 2019/8/21 16:51
** @Software: GoLand

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

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

** @Desc : 过滤功能
** @Time : 2019/8/8 16:10
** @Author : yuebin
** @File : filter
** @Last Modified by : yuebin
** @Last Modified time: 2019/8/8 16:10
** @Software: GoLand

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

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

** @Desc : c file for ...
** @Time : 2019/8/21 11:18
** @Author : yuebin
** @File : get
** @Last Modified by : yuebin
** @Last Modified time: 2019/8/21 11:18
** @Software: GoLand

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

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

** @Desc : c file for ...
** @Time : 2019/10/23 15:20
** @Author : yuebin
** @File : page_controller
** @Last Modified by : yuebin
** @Last Modified time: 2019/10/23 15:20
** @Software: GoLand

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

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

** @Desc : This file for ...
** @Time : 2019/11/6 14:03
** @Author : yuebin
** @File : query.go
** @Last Modified by : yuebin
** @Last Modified time: 2019/11/6 14:03
** @Software: GoLand

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

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

** @Desc : This file for ...
** @Time : 2019/12/8 22:15
** @Author : yuebin
** @File : send_notify_merchant
** @Last Modified by : yuebin
** @Last Modified time: 2019/12/8 22:15
** @Software: GoLand

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

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

** @Desc : c file for ...
** @Time : 2019/9/20 14:38
** @Author : yuebin
** @File : test
** @Last Modified by : yuebin
** @Last Modified time: 2019/9/20 14:38
** @Software: GoLand

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

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

** @Desc : c file for ...
** @Time : 2019/8/16 9:49
** @Author : yuebin
** @File : update
** @Last Modified by : yuebin
** @Last Modified time: 2019/8/16 9:49
** @Software: GoLand

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

Index

Constants

View Source
const HOST = "https://gw.open.icbc.com.cn/ui/b2c/pay/transfer/V2"

Variables

View Source
var FilterLogin = func(ctx *context.Context) {
	userID, ok := ctx.Input.Session("userID").(string)
	if !ok || userID == "" {
		if !strings.Contains(ctx.Request.RequestURI, "/login.html") &&
			!strings.Contains(ctx.Request.RequestURI, "/getVerifyImg") &&
			!strings.Contains(ctx.Request.RequestURI, "/favicon.ico") &&
			!ctx.Input.IsAjax() {
			ctx.Redirect(302, "/login.html")
		}
	} else {
		if strings.Contains(ctx.Request.RequestURI, "/login.html") {
			ctx.Redirect(302, "/")
		}
	}
}

Functions

func OrderQuery

func OrderQuery(bankOrderId string) string

func SortFirstMenuOrder

func SortFirstMenuOrder()

* 对一级菜单重新进行排序

func SortSecondMenuOrder

func SortSecondMenuOrder(firstMenuInfo models.MenuInfo)

* 对二级菜单分配顺序号

Types

type AccountDataJSON

type AccountDataJSON struct {
	Msg          string
	Code         int
	StartIndex   int
	DisplayCount int
	CurrentPage  int
	TotalPage    int
	AccountList  []models.AccountInfo
}

type AccountHistoryDataJSON

type AccountHistoryDataJSON struct {
	Msg                string
	Code               int
	StartIndex         int
	DisplayCount       int
	CurrentPage        int
	TotalPage          int
	AccountHistoryList []models.AccountHistoryInfo
}

type AddController

type AddController struct {
	BaseController
}

func (*AddController) AddAgent

func (this *AddController) AddAgent()

* 添加代理信息

func (*AddController) AddBankCard

func (this *AddController) AddBankCard()

* 添加银行卡

func (*AddController) AddMenu

func (c *AddController) AddMenu()

* 添加一级菜单

func (*AddController) AddMerchant

func (this *AddController) AddMerchant()

func (*AddController) AddMerchantDeploy

func (this *AddController) AddMerchantDeploy()

* 添加商戶支付配置參數

func (*AddController) AddMerchantPayType

func (this *AddController) AddMerchantPayType()

func (*AddController) AddOperator

func (this *AddController) AddOperator()

* 添加操作员

func (*AddController) AddPayFor

func (c *AddController) AddPayFor()

*后台提交的下发记录

func (*AddController) AddPower

func (c *AddController) AddPower()

* 添加权限项的处理函数

func (*AddController) AddRoad

func (this *AddController) AddRoad()

* 添加通道

func (*AddController) AddRoadPool

func (this *AddController) AddRoadPool()

func (*AddController) AddRole

func (this *AddController) AddRole()

* 添加权限角色

func (*AddController) AddSecondMenu

func (c *AddController) AddSecondMenu()

* 添加二级菜单

func (*AddController) AddSelfPayFor

func (c *AddController) AddSelfPayFor()

func (*AddController) SavePower

func (this *AddController) SavePower()

func (*AddController) SaveRoadUid

func (this *AddController) SaveRoadUid()

* 添加或者更新通道池中的通道

type AgentDataJSON

type AgentDataJSON struct {
	Msg          string
	Code         int
	StartIndex   int
	DisplayCount int
	CurrentPage  int
	TotalPage    int
	AgentList    []models.AgentInfo
}

type BalanceDataJSON

type BalanceDataJSON struct {
	Msg     string
	Code    int
	Balance float64
}

type BankCardDataJSON

type BankCardDataJSON struct {
	Msg              string
	Code             int
	StartIndex       int
	DisplayCount     int
	CurrentPage      int
	TotalPage        int
	BankCardInfoList []models.BankCardInfo
}

type BaseController

type BaseController struct {
	beego.Controller
}

func (*BaseController) GenerateJSON

func (c *BaseController) GenerateJSON(dataJSON interface{})

func (*BaseController) Prepare

func (c *BaseController) Prepare()

func (*BaseController) Test

func (c *BaseController) Test()

type BaseDataJSON

type BaseDataJSON struct {
	Msg  string
	Code int
}

type Deletecontroller

type Deletecontroller struct {
	BaseController
}

func (*Deletecontroller) DeleteAccount

func (c *Deletecontroller) DeleteAccount()

* 删除账户

func (*Deletecontroller) DeleteAgent

func (c *Deletecontroller) DeleteAgent()

func (*Deletecontroller) DeleteAgentRelation

func (c *Deletecontroller) DeleteAgentRelation()

func (*Deletecontroller) DeleteBankCardRecord

func (c *Deletecontroller) DeleteBankCardRecord()

func (*Deletecontroller) DeleteMenu

func (c *Deletecontroller) DeleteMenu()

func (*Deletecontroller) DeleteMerchant

func (c *Deletecontroller) DeleteMerchant()

* 删除商户

func (*Deletecontroller) DeleteOperator

func (c *Deletecontroller) DeleteOperator()

* 删除操作员

func (*Deletecontroller) DeletePowerItem

func (c *Deletecontroller) DeletePowerItem()

* 删除权限项

func (*Deletecontroller) DeleteRoad

func (c *Deletecontroller) DeleteRoad()

* 删除通道操作

func (*Deletecontroller) DeleteRoadPool

func (c *Deletecontroller) DeleteRoadPool()

* 删除通道池

func (*Deletecontroller) DeleteRole

func (c *Deletecontroller) DeleteRole()

* 删除角色

func (*Deletecontroller) DeleteSecondMenu

func (c *Deletecontroller) DeleteSecondMenu()

func (*Deletecontroller) Finish

func (c *Deletecontroller) Finish()

type DeployTreeJSON

type DeployTreeJSON struct {
	Msg               string
	Code              int
	Key               string
	AllFirstMenu      []models.MenuInfo
	ShowFirstMenuUid  map[string]bool
	AllSecondMenu     []models.SecondMenuInfo
	ShowSecondMenuUid map[string]bool
	AllPower          []models.PowerInfo
	ShowPowerUid      map[string]bool
}

type EditOperatorDataJSON

type EditOperatorDataJSON struct {
	Code         int
	Msg          string
	OperatorList []models.UserInfo
	RoleList     []models.RoleInfo
}

type FilterController

type FilterController struct {
	beego.Controller
}

func (*FilterController) Filter

func (c *FilterController) Filter()

jsonp请求过来的函数

type GetController

type GetController struct {
	BaseController
	DisplayCount int
	CurrentPage  int
	TotalPage    int
	JumpPage     int
	Offset       int
}

func (*GetController) GetAccount

func (c *GetController) GetAccount()

func (*GetController) GetAccountHistory

func (c *GetController) GetAccountHistory()

func (*GetController) GetAgent

func (c *GetController) GetAgent()

func (*GetController) GetAgentToMerchant

func (c *GetController) GetAgentToMerchant()

func (*GetController) GetAllAccount

func (c *GetController) GetAllAccount()

func (*GetController) GetAllAgent

func (c *GetController) GetAllAgent()

func (*GetController) GetAllMerchant

func (c *GetController) GetAllMerchant()

func (*GetController) GetAllRoad

func (c *GetController) GetAllRoad()

func (*GetController) GetAllRole

func (c *GetController) GetAllRole()

func (*GetController) GetAllRollPool

func (c *GetController) GetAllRollPool()

func (*GetController) GetBalance

func (c *GetController) GetBalance()

func (*GetController) GetBankCard

func (c *GetController) GetBankCard()

func (*GetController) GetCutPage

func (c *GetController) GetCutPage(l int)

* 处理分页的函数

func (*GetController) GetDeployTree

func (c *GetController) GetDeployTree()

func (*GetController) GetEditOperator

func (c *GetController) GetEditOperator()

func (*GetController) GetFirstMenu

func (c *GetController) GetFirstMenu()

func (*GetController) GetMenu

func (c *GetController) GetMenu()

func (*GetController) GetMerchant

func (c *GetController) GetMerchant()

func (*GetController) GetNotifyBankOrderIdList

func (c *GetController) GetNotifyBankOrderIdList()

func (*GetController) GetOneAccount

func (c *GetController) GetOneAccount()

func (*GetController) GetOneBankCard

func (c *GetController) GetOneBankCard()

func (*GetController) GetOneMenu

func (c *GetController) GetOneMenu()

func (*GetController) GetOneMerchant

func (c *GetController) GetOneMerchant()

func (*GetController) GetOneMerchantDeploy

func (c *GetController) GetOneMerchantDeploy()

func (*GetController) GetOneOperator

func (c *GetController) GetOneOperator()

func (*GetController) GetOneOrder

func (c *GetController) GetOneOrder()

func (*GetController) GetOnePayFor

func (c *GetController) GetOnePayFor()

func (*GetController) GetOneRoad

func (c *GetController) GetOneRoad()

* 获取单个通道

func (*GetController) GetOperator

func (c *GetController) GetOperator()

* 获取操作员列表

func (*GetController) GetOrder

func (c *GetController) GetOrder()

* 获取订单数据

func (*GetController) GetOrderProfit

func (c *GetController) GetOrderProfit()

func (*GetController) GetPayFor

func (c *GetController) GetPayFor()

func (*GetController) GetPowerItem

func (c *GetController) GetPowerItem()

func (*GetController) GetProduct

func (c *GetController) GetProduct()

func (*GetController) GetProfit

func (c *GetController) GetProfit()

* 获取利润表

func (*GetController) GetRoad

func (c *GetController) GetRoad()

* 获取通道

func (*GetController) GetRoadPool

func (c *GetController) GetRoadPool()

func (*GetController) GetRole

func (c *GetController) GetRole()

func (*GetController) GetSecondMenu

func (c *GetController) GetSecondMenu()

*获取所有的二级菜单

func (*GetController) GetSecondMenus

func (c *GetController) GetSecondMenus()

type KeyDataJSON

type KeyDataJSON struct {
	Msg  string
	Code int
	Key  string
}

type ListDataJSON

type ListDataJSON struct {
	Msg            string
	Code           int
	StartIndex     int
	DisplayCount   int
	CurrentPage    int
	TotalPage      int
	List           []models.OrderProfitInfo
	AllAmount      float64
	SupplierProfit float64
	AgentProfit    float64
	PlatformProfit float64
}

type LoginController

type LoginController struct {
	beego.Controller
}

func (*LoginController) GetVerifyImg

func (c *LoginController) GetVerifyImg()

* 验证码获取,如果获取成功,并将验证码存到session中

func (*LoginController) Login

func (c *LoginController) Login()

func (*LoginController) Logout

func (c *LoginController) Logout()

func (*LoginController) Prepare

func (c *LoginController) Prepare()
type MenuDataJSON struct {
	StartIndex   int
	DisplayCount int
	CurrentPage  int
	TotalPage    int
	Code         int
	Msg          string
	MenuList     []models.MenuInfo
}

type MerchantDataJSON

type MerchantDataJSON struct {
	Msg          string
	Code         int
	StartIndex   int
	DisplayCount int
	CurrentPage  int
	TotalPage    int
	MerchantList []models.MerchantInfo
}

type MerchantDeployDataJSON

type MerchantDeployDataJSON struct {
	Code           int
	Msg            string
	MerchantDeploy models.MerchantDeployInfo
}

type NotifyBankOrderIdListJSON

type NotifyBankOrderIdListJSON struct {
	Msg          string
	Code         int
	NotifyIdList []string
}

type OperatorDataJSON

type OperatorDataJSON struct {
	Msg          string
	Code         int
	StartIndex   int
	DisplayCount int
	CurrentPage  int
	TotalPage    int
	OperatorList []models.UserInfo
}

type OrderDataJSON

type OrderDataJSON struct {
	Msg          string
	Code         int
	StartIndex   int
	DisplayCount int
	CurrentPage  int
	TotalPage    int
	OrderList    []models.OrderInfo
	AllAmount    float64
	SuccessRate  string
	NotifyUrl    string
}

type PageController

type PageController struct {
	beego.Controller
}

func (*PageController) AccountHistoryPage

func (c *PageController) AccountHistoryPage()

func (*PageController) AccountPage

func (c *PageController) AccountPage()

func (*PageController) AgentProfitPage

func (c *PageController) AgentProfitPage()

func (*PageController) AgentToMerchantPage

func (c *PageController) AgentToMerchantPage()

func (*PageController) BankCardPage

func (c *PageController) BankCardPage()

func (*PageController) ConfirmPage

func (c *PageController) ConfirmPage()

func (*PageController) CreateAgentPage

func (c *PageController) CreateAgentPage()

func (*PageController) EditRolePage

func (c *PageController) EditRolePage()

func (*PageController) FirstMenuPage

func (c *PageController) FirstMenuPage()

func (*PageController) Index

func (c *PageController) Index()

func (*PageController) LoginPage

func (c *PageController) LoginPage()

func (*PageController) MainPage

func (c *PageController) MainPage()

func (*PageController) MenuPage

func (c *PageController) MenuPage()

func (*PageController) MerchantPage

func (c *PageController) MerchantPage()

func (*PageController) MerchantPayforPage

func (c *PageController) MerchantPayforPage()

func (*PageController) OperatorPage

func (c *PageController) OperatorPage()

func (*PageController) OrderInfoPage

func (c *PageController) OrderInfoPage()

func (*PageController) OrderProfitPage

func (c *PageController) OrderProfitPage()

func (*PageController) PayforRecordPage

func (c *PageController) PayforRecordPage()

func (*PageController) PlatFormProfitPage

func (c *PageController) PlatFormProfitPage()

func (*PageController) PowerPage

func (c *PageController) PowerPage()

func (*PageController) RoadPage

func (c *PageController) RoadPage()

func (*PageController) RoadPoolPage

func (c *PageController) RoadPoolPage()

func (*PageController) RoadProfitPage

func (c *PageController) RoadProfitPage()

func (*PageController) RolePage

func (c *PageController) RolePage()

func (*PageController) SecondMenuPage

func (c *PageController) SecondMenuPage()

func (*PageController) SelfNotifyPage

func (c *PageController) SelfNotifyPage()

func (*PageController) SelfPayforPage

func (c *PageController) SelfPayforPage()

func (*PageController) SelfPlusSubPage

func (c *PageController) SelfPlusSubPage()

type PayForDataJSON

type PayForDataJSON struct {
	Msg          string
	Code         int
	StartIndex   int
	DisplayCount int
	CurrentPage  int
	TotalPage    int
	PayForList   []models.PayforInfo
}

type PowerItemDataJSON

type PowerItemDataJSON struct {
	StartIndex    int
	DisplayCount  int
	CurrentPage   int
	TotalPage     int
	Code          int
	Msg           string
	PowerItemList []models.PowerInfo
}

type ProductDataJSON

type ProductDataJSON struct {
	Msg        string
	Code       int
	ProductMap map[string]string
}

type ProfitListJSON

type ProfitListJSON struct {
	TotalAmount         float64
	PlatformTotalProfit float64
	AgentTotalProfit    float64
	Msg                 string
	Code                int
	ProfitList          []models.PlatformProfit
}

type RoadDataJSON

type RoadDataJSON struct {
	Msg          string
	Code         int
	StartIndex   int
	DisplayCount int
	CurrentPage  int
	TotalPage    int
	RoadInfoList []models.RoadInfo
	RoadPool     models.RoadPoolInfo
}

type RoadPoolDataJSON

type RoadPoolDataJSON struct {
	Msg              string
	Code             int
	StartIndex       int
	DisplayCount     int
	CurrentPage      int
	TotalPage        int
	RoadPoolInfoList []models.RoadPoolInfo
}

type RoleInfoDataJSON

type RoleInfoDataJSON struct {
	StartIndex   int
	DisplayCount int
	CurrentPage  int
	TotalPage    int
	Code         int
	Msg          string
	RoleInfoList []models.RoleInfo
}

type SecondMenuDataJSON

type SecondMenuDataJSON struct {
	StartIndex     int
	DisplayCount   int
	CurrentPage    int
	TotalPage      int
	Code           int
	Msg            string
	SecondMenuList []models.SecondMenuInfo
}

type SendNotify

type SendNotify struct {
	beego.Controller
}

func (*SendNotify) SelfSendNotify

func (c *SendNotify) SelfSendNotify()

func (*SendNotify) SendNotifyToMerchant

func (c *SendNotify) SendNotifyToMerchant()

type SupplierQuery

type SupplierQuery struct {
	beego.Controller
}

func (*SupplierQuery) SupplierOrderQuery

func (c *SupplierQuery) SupplierOrderQuery()

func (*SupplierQuery) SupplierPayForQuery

func (c *SupplierQuery) SupplierPayForQuery()

* 向上游查询代付结果

type UpdateController

type UpdateController struct {
	BaseController
}

func (*UpdateController) ChoosePayForRoad

func (c *UpdateController) ChoosePayForRoad()

* 手动选择了打款通道

func (*UpdateController) DownMenu

func (c *UpdateController) DownMenu()

func (*UpdateController) DownSecondMenu

func (c *UpdateController) DownSecondMenu()

* 降低二级菜单的顺序号

func (*UpdateController) EditOperator

func (c *UpdateController) EditOperator()

func (*UpdateController) FreezeOperator

func (c *UpdateController) FreezeOperator()

func (*UpdateController) OperatorAccount

func (c *UpdateController) OperatorAccount()

func (*UpdateController) ResetAgentPassword

func (c *UpdateController) ResetAgentPassword()

func (*UpdateController) ResultPayFor

func (c *UpdateController) ResultPayFor()

* 处理打款结果的处理

func (*UpdateController) UnfreezeOperator

func (c *UpdateController) UnfreezeOperator()

func (*UpdateController) UpMenu

func (c *UpdateController) UpMenu()

* 更新菜单的排列顺序

func (*UpdateController) UpSecondMenu

func (c *UpdateController) UpSecondMenu()

* 提升二级菜单的顺序号

func (*UpdateController) UpdateAccountStatus

func (c *UpdateController) UpdateAccountStatus()

* 更新账户的状态

func (*UpdateController) UpdateAgentStatus

func (c *UpdateController) UpdateAgentStatus()

func (*UpdateController) UpdateMerchantStatus

func (c *UpdateController) UpdateMerchantStatus()

* 冻结商户

func (*UpdateController) UpdateOrderStatus

func (c *UpdateController) UpdateOrderStatus()

func (*UpdateController) UpdatePassword

func (c *UpdateController) UpdatePassword()

*更新密码

func (*UpdateController) UpdateRoadStatus

func (c *UpdateController) UpdateRoadStatus()

* 更新通道的状态

Jump to

Keyboard shortcuts

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