abiao пре 5 година
родитељ
комит
02230ad7ec

+ 15 - 0
go/gopath/src/fohow.com/apps/controllers/balance_controller/balance_controller.go

@@ -182,6 +182,21 @@ func (self *BalanceController) TakeCash() {
 	self.ServeJSON()
 }
 
+//获取提现限额
+func (self *BalanceController) GetTakeCashLimit() {
+	type LimitInfo struct {
+		MinLimitCash int64 `json:"min_limit_cash"` //提现限额
+		MaxLimitCash int64 `json:"max_limit_cash"` //提现限额
+	}
+	limitInfo := new(LimitInfo)
+
+	limitInfo.MaxLimitCash = TAKE_CASH_AMOUNT_LIMIT_MAX
+	limitInfo.MinLimitCash = TAKE_CASH_AMOUNT_LIMIT_MIN
+
+	self.Data["json"] = limitInfo
+	self.ServeJSON()
+}
+
 //提现流列表
 func (self *BalanceController) GetTakeCashOrders() {
 

+ 1 - 1
go/gopath/src/fohow.com/apps/controllers/balance_controller/init.go

@@ -16,7 +16,7 @@ import (
 
 var (
 	//需要校验用户登录的Action
-	exceptCheckUserLoginAction   = []string{"GetCashBalanceList", "GetCashBalanceInfo", "GetBalanceInfo", "GetBalanceDetail", "GetBalanceList", "GetTakeCashOrders"}
+	exceptCheckUserLoginAction   = []string{"GetTakeCashLimit", "GetCashBalanceList", "GetCashBalanceInfo", "GetBalanceInfo", "GetBalanceDetail", "GetBalanceList", "GetTakeCashOrders"}
 	exceptCheckWxUserLoginAction = []string{""}
 )
 

+ 2 - 0
go/gopath/src/fohow.com/routers/routes.go

@@ -181,6 +181,8 @@ func init() {
 	beego.Router("/v1/user/takecash", &balance_controller.BalanceController{}, "post:TakeCash")
 	//提现流
 	beego.Router("/v1/user/takecash/flow", &balance_controller.BalanceController{}, "get:GetTakeCashOrders")
+	//提现限额
+	beego.Router("/v1/user/takecash/limit", &balance_controller.BalanceController{}, "get:GetTakeCashLimit")
 
 	// //充值订单创建
 	// beego.Router("/v1/balance/order", &balance_controller.BalanceController{}, "post:CreateBalanceOrder")