define

package
v0.0.0-...-2d926ca Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: GPL-3.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

View Source
const (
	SaveData       = "SaveData"
	QueryData      = "QueryData"
	KeepaliveQuery = "KeepaliveQuery"
	CRYPTO_PATH    = "./crypto/"

	ErrRequestBody    = "request body error"
	ErrMarshalRequest = "marshaljson request error"
	ErrInvoke         = "invoke func error"
	ErrQuery          = "query func error"

	PeerFailed            = 601
	OrdererFailed         = 602
	KafkaNormal           = 603
	KafkaConfigFailed     = 604
	KafkaConnectionFailed = 605
	KafkaBrokerAbnormal   = 606
	LogModuleInvalid      = 607
	LogModuleSetError     = 608

	Success = "Success"

	ParameterError     = "901"
	PermissionNotFound = "902"
	ValueOfKeyNil      = "903"
	NoPermission       = "904"
	Other              = "905"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
	Key     string `json:"key" binding:"required"`   //业务key
	Value   string `json:"value" binding:"required"` // 业务数据
	Expand1 string `json:"expand1,omitempty"`        // 扩展字段1
	Expand2 string `json:"expand2,omitempty"`        // 扩展地段2
}

Factory struct

func (Factory) MarshalEasyJSON

func (v Factory) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Factory) MarshalJSON

func (v Factory) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Factory) UnmarshalEasyJSON

func (v *Factory) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Factory) UnmarshalJSON

func (v *Factory) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Page

type Page struct {
	CurrentPage  uint `json:"currentPage"`  //当前页码
	PageSize     uint `json:"pageSize"`     //每个页面显示个数
	TotalRecords uint `json:"totalRecords"` //总记录数
}

type QueryUserInfo

type QueryUserInfo struct {
	Key           string `json:"key"`           // 业务key
	BusinessType  string `json:"businessType"`  // 业务类型 默认Import0001
	DataType      string `json:"dataType"`      // 业务数据类型
	WriteRoleType string `json:"writeRoleType"` // 写入数据角色类型
	Reader        string `json:"reader"`        //读取人
}

type QueryUserInfoRespone

type QueryUserInfoRespone struct {
	UserInfo
	ResponseCode    string `json:"responsecode"`    //返回码
	ResponseExplain string `json:"responseexplain"` //返回码信息
}

type ResData

type ResData struct {
	ResCode int    `json:"resCode"` //错误码0:成功1:失败
	ResMsg  string `json:"resMsg"`  //错误信息
}

func (ResData) MarshalEasyJSON

func (v ResData) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ResData) MarshalJSON

func (v ResData) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ResData) UnmarshalEasyJSON

func (v *ResData) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ResData) UnmarshalJSON

func (v *ResData) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SaveUserInfoRespone

type SaveUserInfoRespone struct {
	UserBaseInfo
	ResponseCode    string `json:"responsecode"`    //返回码
	ResponseExplain string `json:"responseexplain"` //返回码信息
}

type UserBaseInfo

type UserBaseInfo struct {
	Key           string `json:"key"`           // 业务key
	BusinessType  string `json:"businessType"`  // 业务类型 默认Import0001
	DataType      string `json:"dataType"`      // 业务数据类型
	WriteRoleType string `json:"writeRoleType"` // 写入数据角色类型
	Writer        string `json:"writer"`        // 写入人id
	Version       string `json:"version"`       // 数据版本号
}

type UserInfo

type UserInfo struct {
	UserBaseInfo
	UserName string `json:"userName"` //用户名称
	UserID   string `json:"userID"`   //用户id
	UserType string `json:"userType"` //用户类型
	UserArea string `json:"userArea"` //用户区域
}

Jump to

Keyboard shortcuts

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