message

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: 7 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.

Index

Constants

View Source
const (
	VoucherRetTempFailMsgType int = iota
	VoucherRetTransFailMsgType
)
View Source
const (
	ZhMsgFilePath     = "./static/lang/message/message_zh.toml"
	EnMsgFilePath     = "./static/lang/message/message_en.toml"
	MsgAccountTypeTag = "accountType"
	MsgTitleTag       = "title"
	MsgContentTag     = "content"
)

Variables

View Source
var (
	MsgContentTempMap = make(map[string]map[string]interface{})
	MsgAccountTypeMap = make(map[string]map[string]interface{})
	MsgTitleTempMap   = make(map[string]map[string]interface{})
)

Functions

func AddAdmin

func AddAdmin(add string, accountId int) error

AddAdmin send message when add admin

func AddAuth

func AddAuth(add, authId []int, userType int, account string) error

AddAuth send message when add auth to account

func AysncBlockChainStatus

func AysncBlockChainStatus(types int)

同步节点状态 -- 1.恢复正常 2。异常

func CancelTemplate

func CancelTemplate(opername, userAccount, name, id string) error

CancelTemplate send message when disable template

func CancelTransfer

func CancelTransfer(ApplyerId int, CoinName, Amount, id string, isCancelUser bool) error

CancelTransfer send message when disable transfer

func ChangeNode

func ChangeNode() error

ChangeNode send message when node changed

func DelAdmin

func DelAdmin(accountID, id int) error

DelAdmin send message when delete admin

func DelAuth

func DelAuth(id, accountId, userType int, account string) error

DelAuth send message when delete auth from account

func FailVerifyTemp

func FailVerifyTemp(opername, name, id string, creatorId int) error

FailVerifyTemp send message when verify template failed

func FailVerifyTrans

func FailVerifyTrans(id, reason string) error

FailVerifyTrans send message when verify transfer failed

func SuccessVerifyTemp

func SuccessVerifyTemp(name, id string, creatorId int) error

SuccessVerifyTemp send message when verify template

func SuccessVerifyTrans

func SuccessVerifyTrans(id string) error

SuccessVerifyTrans send message when verify transfer

func TransferApprovalTimeOut

func TransferApprovalTimeOut(CoinName, Amount, TransferId string, ApplyerId int) error

func TransferFail

func TransferFail(CoinName, Amount, TransferId string, ApplyerId int) error

TransferFail send message when transfer failed

func TransferFailOutOfDate

func TransferFailOutOfDate(CoinName, Amount, TransferId string, ApplyerId int) error

TransferFail send message when transfer failed cause out of date

func TransferPartialSuccessful

func TransferPartialSuccessful(coinName, amount, orderId string, applyerId int) error

func TransferSuccess

func TransferSuccess(CoinName, Amount, TransferId string, ApplyerId int) error

TransferSuccess send message when transfer success

func VoucherFail

func VoucherFail(msgType, vRes int, tempInfo *db.Template, transApply *db.TransferSend) error

发送签名机异常站内信

func VoucherWarn

func VoucherWarn(msgCount, receiverAccId, pageType int, param string) (*db.Message, error)

签名机报警

Types

type AccountTypeName

type AccountTypeName struct {
	AdminType string
	OwnerType string
}

type MessageTitleAndContent

type MessageTitleAndContent struct {
	OperAccountType  string
	OperAccountName  string
	AdminAccount     string
	AuthName         string
	TemplateName     string
	DisabledAccount  string
	TransOrderName   string
	VoucherWarnCount int
}

Jump to

Keyboard shortcuts

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