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 ¶
- func CancelTemp(c_temp *ParamCancelTemplate, claims *middleware.CustomClaims) reterror.ErrModel
- func CreateNewTemplate(t *AddTmp, claims *middleware.CustomClaims) reterror.ErrModel
- func DisableTemplateByUserName(user *db.Account, operator string) error
- func FindTemplateById(tempVo *TemplateVo, accountId int) reterror.ErrModel
- func FlowHashAddToVoucher(flow_content, flow_hash string, arr_temp_opt []db.TemplateOper, data_type int) (*voucher.VoucherStatus, *voucher.GrpcClient, int)
- func TempStatistics(account string) reterror.ErrModel
- func TemplateList(types int, userType int, accountId int) reterror.ErrModel
- func TemplateListTransfer(coinId int) reterror.ErrModel
- func TxNumByTempID(tempID string) reterror.ErrModel
- func VerifyTemplate(tempVo *TemplateVo, claims *middleware.CustomClaims) reterror.ErrModel
- type AddTmp
- type FlowSign
- type ParamCancelTemplate
- type TemplateVo
- type VoucherSigns
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 ¶
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 ¶
TempStatistics get template include account
func TemplateList ¶
TemplateList get template list
func TemplateListTransfer ¶
TemplateListTransfer get template list
func TxNumByTempID ¶
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 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"` }