transfer

package
v0.0.0-...-7cf6ef0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

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

View Source
const (
	WebTransWaitingForQr int = iota + 1
	WebTransSubmitted
	WebTransExpired
)

返回网页转账状态

View Source
const WebPath = "webpage"

Variables

This section is empty.

Functions

func Apply

func Apply(transferVo *TransferVo) reterror.ErrModel

Apply 申请转账

func BatchList

func BatchList(transferVo *TransferVo) reterror.ErrModel

BatchList 审批列表

func Cancel

func Cancel(verifyApplyVo *VerifyApplyVo) reterror.ErrModel

Cancel 撤销转账

func FindApplyLog

func FindApplyLog(orderId string) reterror.ErrModel

FindApplyLog 查询转账log

func FindTranfersById

func FindTranfersById(transfer *WebTransfer) reterror.ErrModel

FindTranfersById app获取转账信息

func Findapplybyid

func Findapplybyid(id string) reterror.ErrModel

Findapplybyid 通过订单id 查询明细

func Findapplylist

func Findapplylist(types, accountId int, account string) reterror.ErrModel

Findapplylist 查询转账申请列表 types 1.全部 2.发起的 3.参与的 ,4.批量审批列表

func GetCommitStatus

func GetCommitStatus(transfer *WebTransfer) reterror.ErrModel

GetCommitStatus web获取提交状态

func GetTemplatebyHash

func GetTemplatebyHash(temHash string) reterror.ErrModel

GetTemplatebyHash 通过模板hash查找模板

func GetWebRouter

func GetWebRouter() reterror.ErrModel

GetWebRouter

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 ApplyContent struct {
	Amount      string `form:"amount"`
	Coin        string `form:"coin_name"`
	Info        string `form:"info"`
	Miner       string `form:"miner"`
	Destination string `form:"destination"`
	Timestamp   int64  `form:"timestamp"`
	FlowHash    string `form:"flow_hash"`
	Sign        string `form:"sign"`
}

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 ApplyVo

type ApplyVo struct {
	ToAddress string   `json:"to_address"`
	Tag       string   `json:"tag"`
	Amount    []string `json:"amount"`
}

type BatchOrder

type BatchOrder struct {
	OrderId      string `json:"order_id"`
	Status       int    `json:"status"`
	TransferSign string `json:"transfer_sign"`
	AppName      string
}

批量审批专用

type BatchVerify

type BatchVerify struct {
	OrderIds string `form:"order_ids"`
	Reason   string `form:"reason"`
}

批量审批专用

type CountVo

type CountVo struct {
	AgreeNum   int
	RefuseNum  int
	TotalNum   int
	RequireNum int
	NowLevel   int
	TotalLevel int
}

对当前层数的汇总

type TemplateVo

type TemplateVo struct {
	CoinId int `form:"coin_id"`
}

通过币种查询模板

type TransferInfo

type TransferInfo struct {
	Amount  string `form:"amount"`
	Address string `form:"address"`
	// contains filtered or unexported fields
}

type TransferMsgJson

type TransferMsgJson struct {
	FromAddress AddressJson
	ToAddress   AddressJson
	Token       string
}

转账数据库里msg 的json数据

type TransferOrder

type TransferOrder struct {
	Id   string `form:"id"`
	Sort int    `form:"sort"`
	Hash string `form:"hash"`
}

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"`
}

type VerifyApplyVo

type VerifyApplyVo struct {
	Status       int    `form:"status"`
	OrderId      string `form:"order_id"`
	AppName      string
	TransferSign string `form:"transfer_sign"`
	Reason       string `form:"reason"`
	AccountId    int
	OrderIds     string `form:"order_ids"`
	ArrOrderIds  []string
	TemHash      string `form:"tem_hash"`
	TemInfo      string
}

type WebTransfer

type WebTransfer struct {
	Id          string `form:"id"`
	Msg         string `form:"msg"`
	CreatedTime int64  `form:"createdtime"`
}

Jump to

Keyboard shortcuts

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