Documentation ¶
Overview ¶
Copyright 2018. bolaxy.org authors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2018. bolaxy.org authors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- func Apply(transferVo *TransferVo) reterror.ErrModel
- func BatchList(transferVo *TransferVo) reterror.ErrModel
- func Cancel(verifyApplyVo *VerifyApplyVo) reterror.ErrModel
- func FindApplyLog(orderId string) reterror.ErrModel
- func FindTranfersById(transfer *WebTransfer) reterror.ErrModel
- func Findapplybyid(id string) reterror.ErrModel
- func Findapplylist(types, accountId int, account string) reterror.ErrModel
- func GetCommitStatus(transfer *WebTransfer) reterror.ErrModel
- func GetTemplatebyHash(temHash string) reterror.ErrModel
- func GetWebRouter() reterror.ErrModel
- func TransferCommit(transfer *WebTransfer) reterror.ErrModel
- func Verify(verifyApplyVo *VerifyApplyVo) reterror.ErrModel
- type AddressJson
- type ApplyContent
- type ApplyMsg
- type ApplyVo
- type BatchOrder
- type BatchVerify
- type CountVo
- type TemplateVo
- type TransferInfo
- type TransferMsgJson
- type TransferOrder
- type TransferVo
- type VerifyApplyVo
- type WebTransfer
Constants ¶
const ( WebTransWaitingForQr int = iota + 1 WebTransSubmitted WebTransExpired )
返回网页转账状态
const WebPath = "webpage"
Variables ¶
This section is empty.
Functions ¶
func FindTranfersById ¶
func FindTranfersById(transfer *WebTransfer) reterror.ErrModel
FindTranfersById app获取转账信息
func Findapplylist ¶
Findapplylist 查询转账申请列表 types 1.全部 2.发起的 3.参与的 ,4.批量审批列表
func GetCommitStatus ¶
func GetCommitStatus(transfer *WebTransfer) reterror.ErrModel
GetCommitStatus web获取提交状态
func GetTemplatebyHash ¶
GetTemplatebyHash 通过模板hash查找模板
func TransferCommit ¶
func TransferCommit(transfer *WebTransfer) reterror.ErrModel
TransferCommit web提交转账
func Verify ¶
func Verify(verifyApplyVo *VerifyApplyVo) reterror.ErrModel
Verify 审批转账 transferVo 转账内容 Status:1.同意 2.拒绝 7.app验证签名错误
Types ¶
type AddressJson ¶
type AddressJson struct { Address string // contains filtered or unexported fields }
type ApplyContent ¶
type ApplyMsg ¶
type ApplyMsg struct { CoinName string `json:"coin_name"` TemHash string `json:"t_hash"` Reason string `json:"reason"` Deadline string `json:"deadline"` Miner string `json:"miner"` Timestamp int `json:"timestamp"` Amount string `json:"amount"` ApplyVos []ApplyVo `json:"applys"` CoinId int `json:"coin_id"` Token string `json:"token"` Currency string `json:"currency"` }
type BatchOrder ¶
type BatchOrder struct { OrderId string `json:"order_id"` Status int `json:"status"` TransferSign string `json:"transfer_sign"` AppName string }
批量审批专用
type BatchVerify ¶
批量审批专用
type CountVo ¶
type CountVo struct { AgreeNum int RefuseNum int TotalNum int RequireNum int NowLevel int TotalLevel int }
对当前层数的汇总
type TransferInfo ¶
type TransferMsgJson ¶
type TransferMsgJson struct { FromAddress AddressJson ToAddress AddressJson Token string }
转账数据库里msg 的json数据
type TransferOrder ¶
type TransferVo ¶
type TransferVo struct { AppId string `form:"app_id"` Account string `form:"account"` CoinId int `form:"coin_id"` TemplateId string `form:"template_id"` TemplateHash string Password string `form:"password"` OrderInfo string `form:"order_info"` Deadline time.Time `form:"deadline"` Fee string `form:"fee"` TransferInfoList []TransferInfo `form:"transferinfo_list"` TransferId string `form:"transfer_id"` ApplyMsg string `form:"apply_msg"` ApplySign string `form:"apply_sign"` ApplyerId int AppName string OrderIds string `form:"order_ids"` ArrOrderIds []string OrderId string `form:"order_id"` }