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 ActiveRecovery(voucherVo *VoucherVo) reterror.ErrModel
- func AddAdmin(add string, accountID int) reterror.ErrModel
- func DelAdmin(accountID, id int) reterror.ErrModel
- func DelayTaskNum(account string, usertype, accountID int) reterror.ErrModel
- func DisableAcc(accID int, adminAcc string) reterror.ErrModel
- func FindUserStatus(userVo *UserVo) reterror.ErrModel
- func GetAccountsByType(userType int) reterror.ErrModel
- func GetAllUsers() reterror.ErrModel
- func GetBlockHeight() reterror.ErrModel
- func GetPubkeys(account string) reterror.ErrModel
- func GetRegList() reterror.ErrModel
- func GetUserByID(id int) reterror.ErrModel
- func GetVersion() reterror.ErrModel
- func HasRecovery(account string) reterror.ErrModel
- func InsideLetter(lang string, accountId, userType, page int) reterror.ErrModel
- func Login(user *UserVo) reterror.ErrModel
- func ModifyPassword(mp *ModifyPSD, name string) reterror.ErrModel
- func ReSignUp(appID string) reterror.ErrModel
- func ReadLetter(accountId, id int) reterror.ErrModel
- func RecoveryList(account string, pubkey string) reterror.ErrModel
- func RecoveryOwner(user *UserVo) reterror.ErrModel
- func RecoveryResult(regID int, appID string) reterror.ErrModel
- func RegList(userVo *UserVo) reterror.ErrModel
- func ResetRecovery(account string) reterror.ErrModel
- func Scan(userVo *UserVo) reterror.ErrModel
- func SetUser(user *PAccount, operatorId int) reterror.ErrModel
- func Signup(user *UserVo) reterror.ErrModel
- func SubRecovery(appID string, account string, regID int, operator string) reterror.ErrModel
- func UserTree(userPubKey string) reterror.ErrModel
- func VerifyPwd(pwd string, account string, id int) reterror.ErrModel
- func VerifyRecovery(account string, voucherVo *VoucherVo) reterror.ErrModel
- func VerifyUser(userVo *UserVo) reterror.ErrModel
- func VoucherVerifyRecovery(account string, voucherVo *VoucherVo) reterror.ErrModel
- type AccountTree
- type AccountTreeWithCoreInfo
- type Letter
- type ModifyPSD
- type PAccount
- type UserVo
- type VoucherPubkeyInfo
- type VoucherVo
Constants ¶
const ( VerifyOwnerApprove int = iota + 1 VerifyOwnerReject )
认证股东
const TOKEN_EXP = 24
Variables ¶
This section is empty.
Functions ¶
func ActiveRecovery ¶
ActiveRecovery active new owner account
func DelayTaskNum ¶
DelayTaskNum get to-do tasks
func DisableAcc ¶
DisableAcc disable account
func FindUserStatus ¶
FindUserStatus check user registered status
func GetAccountsByType ¶
GetAccountsByType get users by user type
func HasRecovery ¶
HasRecovery check if owner has recovery apply
func InsideLetter ¶
InsideLetter send message
func ModifyPassword ¶
ModifyPassword modify password
func ReadLetter ¶
ReadLetter mark message as readed
func RecoveryList ¶
RecoveryList list of recovery account
func RecoveryOwner ¶
RecoveryOwner owner account recovery
func RecoveryResult ¶
RecoveryResult get recovery result
func ResetRecovery ¶
ResetRecovery reset owner recovery
func SubRecovery ¶
SubRecovery submit recovery account info
func VerifyRecovery ¶
VerifyRecovery verify owner
Types ¶
type AccountTree ¶
type AccountTreeWithCoreInfo ¶
type AccountTreeWithCoreInfo struct { AccTree []AccountTree `json:"trees"` Voucher VoucherPubkeyInfo `json:"voucher"` }
type UserVo ¶
type UserVo struct { ID int `form:"account_id"` Name string `form:"name"` AppId string `form:"app_id"` PubKey string `form:"pub_key"` Pwd string `form:"pwd"` Msg string `form:"msg"` NewAppId string `form:"new_app_id"` Status int `form:"status"` // 2.approval 3.reject RefuseReason string `form:"refuse_reason"` UserType int `form:"user_type"` AuthID string `form:"auth_id"` Add string `form:"add"` DepID int `form:"dep_id"` RegID int `form:"reg_id"` Level int }
type VoucherPubkeyInfo ¶
type VoucherVo ¶
type VoucherVo struct { AppId string `form:"app_id"` AppName string `form:"name"` AesKey string `form:"aeskey"` PubKey string `form:"pub_key"` Pwd string `form:"pwd"` Msg string `form:"msg"` Sign string `form:"sign"` Timestamp int64 `form:"timestamp"` Password string `form:"string"` BakAction string `form:"bak_action"` Status int `form:"status"` RegId int `form:"reg_id"` Replaced string `form:"replaced"` }