template

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

This section is empty.

Variables

This section is empty.

Functions

func CancelTemp

func CancelTemp(c_temp *ParamCancelTemplate, claims *middleware.CustomClaims) reterror.ErrModel

CancelTemp disabled template

func CreateNewTemplate

func CreateNewTemplate(t *AddTmp, claims *middleware.CustomClaims) reterror.ErrModel

func DisableTemplateByUserName

func DisableTemplateByUserName(user *db.Account, operator string) error

DisableTemplateByUserName get template by user name

func FindTemplateById

func FindTemplateById(tempVo *TemplateVo, accountId int) reterror.ErrModel

FindTemplateById get template by id

func FlowHashAddToVoucher

func FlowHashAddToVoucher(flow_content, flow_hash string, arr_temp_opt []db.TemplateOper, data_type int) (*voucher.VoucherStatus, *voucher.GrpcClient, int)

FlowHashAddToVoucher request template hash add to chain(include availaible and unavailable)

func TempStatistics

func TempStatistics(account string) reterror.ErrModel

TempStatistics get template include account

func TemplateList

func TemplateList(types int, userType int, accountId int) reterror.ErrModel

TemplateList get template list

func TemplateListTransfer

func TemplateListTransfer(coinId int) reterror.ErrModel

TemplateListTransfer get template list

func TxNumByTempID

func TxNumByTempID(tempID string) reterror.ErrModel

TxNumByTempID get transfer amount by template id

func VerifyTemplate

func VerifyTemplate(tempVo *TemplateVo, claims *middleware.CustomClaims) reterror.ErrModel

VerifyTemplate verify template 1.passed 2.rejected

Types

type AddTmp

type AddTmp struct {
	Content      string `form:"content"`
	TemplateSign string `form:"template_sign"`
	Types        int    `form:"types"` // 获取列表的类型 0.全部  1.等待审批

}

type FlowSign

type FlowSign struct {
	AppId string
	Sign  string
}

type ParamCancelTemplate

type ParamCancelTemplate struct {
	TemplateId   string `form:"template_id"`
	TemplateSign string `form:"template_sign"`
	Timestamp    int64  `form:"timestamp"`
	Sign         string `form:"sign"`
	Pwd          string `form:"pwd"`
}

作废审批流模板

type TemplateVo

type TemplateVo struct {
	Id          string `form:"template_id"`
	AdminStatus int    `form:"status"`
	AccountId   int

	AppId        string `form:"app_id"`
	AppName      string `form:"app_name"`
	KeyLine      string `form:"key_kine"`
	Timestamp    int64  `form:"timestamp"`
	Sign         string `form:"sign"`
	TemplateSign string `form:"template_sign"`
	Aeskey       string `form:"aeskey"`
	Msg          string `form:"msg"`
	Reason       string `form:"reason"`
}

type VoucherSigns

type VoucherSigns struct {
	AppID   string
	AppName string
	Status  int
	Sign    string
}

Jump to

Keyboard shortcuts

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