Documentation ¶
Index ¶
- type Health
- type Login
- type Response
- type VcInfo
- type VcPage
- type VctId
- type VctInfo
- func (v *VctInfo) GetAdditionalProperties() bool
- func (v *VctInfo) GetCreated() string
- func (v *VctInfo) GetCreator() string
- func (v *VctInfo) GetId() string
- func (v *VctInfo) GetName() string
- func (v *VctInfo) GetProperties() map[string]*request.Property
- func (v *VctInfo) GetRequired() []string
- func (v *VctInfo) GetSchema() string
- func (v *VctInfo) GetType() string
- func (v *VctInfo) GetVcType() string
- func (v *VctInfo) GetVersion() string
- type VctList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Health ¶
type Health struct { Version string `json:"version"` // 系统版本号 Name string `json:"name"` // 系统名称 BuildTime string `json:"buildTime"` // 编译时间 GitBranch string `json:"gitBranch"` // Git分支 GitCommit string `json:"gitCommit"` // Git提交号 StartTime string `json:"startTime"` // 服务启动时间 Now string `json:"now"` // 服务器当前时间 }
Health define the response structure of Health()
type Login ¶
type Login struct { AccessToken string `json:"accessToken"` // 访问令牌 ExpiresIn int `json:"expiresIn"` // 过期时间 UserId int `json:"userId"` Did string `json:"did"` UserName string `json:"userName"` EnterpriseCName string `json:"enterpriseCName"` MemberType int `json:"memberType"` IsOperatingCenter int `json:"isOperatingCenter"` IsFirst int `json:"isFirst"` OldAccessToken string `json:"access_token,omitempty"` // 访问令牌 OldExpiresIn int `json:"expires_in,omitempty"` // 过期时间 }
Login define the response structure of Login
func (*Login) GetAccessToken ¶
GetAccessToken return access token
type Response ¶
type VcInfo ¶
type VcInfo struct { Vc *core.VerifiableCredential `json:"vc"` // 凭证 Status string `json:"status"` // 状态 }
VcInfo define the response structure of VcGet
func (*VcInfo) GetVc ¶
func (vcInfo *VcInfo) GetVc() *core.VerifiableCredential
GetVc get vc of VcInfo
type VcPage ¶
type VcPage struct { VcList []*core.VerifiableCredential `json:"vcList"` // 凭证列表 Page *module.Page `json:"page"` // 分页结构 }
VcPage define the response structure of VcList
func (*VcPage) GetVcList ¶
func (v *VcPage) GetVcList() []*core.VerifiableCredential
GetVcList get vcList of VcPage
type VctId ¶
type VctId struct {
Id string `json:"id"`
}
VctId define the response structure of VctCreate
type VctInfo ¶
type VctInfo struct { Id string `json:"id"` // VCT ID Name string `json:"name"` // VCT名称 Type string `json:"type"` // VCT类型 VcType string `json:"vcType"` // VC类型 Schema string `json:"$schema"` // VCT Schema Created string `json:"created"` // 创建时间 Creator string `json:"creator"` // 创建者 Version string `json:"version"` // 版本 Required []string `json:"required"` // 必填字段 Properties map[string]*request.Property `json:"properties"` // 属性 AdditionalProperties bool `json:"additionalProperties"` // 是否允许额外属性 }
VctInfo define the structure of VctInfo
func (*VctInfo) GetAdditionalProperties ¶
GetAdditionalProperties get additional properties of VctInfo
func (*VctInfo) GetCreated ¶
GetCreated get created of VctInfo
func (*VctInfo) GetCreator ¶
GetCreator get creator of VctInfo
func (*VctInfo) GetProperties ¶
GetProperties get properties of VctInfo
func (*VctInfo) GetRequired ¶
GetRequired get required of VctInfo
Click to show internal directories.
Click to hide internal directories.