nvwa

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SPCreateReq

type SPCreateReq struct {
	Token string   `json:"token"`
	VN    string   `json:"vn"`
	Scope string   `json:"scope"`
	ID    string   `json:"id"`
	FQ    []*fq.FQ `json:"fq"`
}

type SPCreateResp

type SPCreateResp struct {
	VN         vn.ID   `json:"vn"`
	ID         sp.ID   `json:"id"`
	Link       []sp.ID `json:"link"`
	Originator ki.Ki   `json:"originator"`
	Guardian   ki.Ki   `json:"guardian"`
	Dob        int64   `json:"dob"`
}

type SPGetReq

type SPGetReq struct {
	By load.ByCode `json:"by"`
	ID sp.ID       `json:"id"`
}

type SPLoadReq

type SPLoadReq struct {
	IDs  []sp.ID    `json:"ids"`
	VNs  []vn.ID    `json:"vns"`
	Page *load.Page `json:"page"`
}

type SPLoadResp

type SPLoadResp struct {
	Paging *load.Paging `bson:"paging" json:"paging"`
	Items  []*sp.SP     `bson:"items" json:"items"`
}

type Service

type Service interface {
	VNCreate(req VNCreateReq) (*VNCreateResp, *errors.Error)
	SPCreate(req SPCreateReq) (*SPCreateResp, *errors.Error)

	VNGet(req VNGetReq) (*vn.VN, *errors.Error)
	VNLoad(req VNLoadReq) (*VNLoadResp, *errors.Error)
	SPGet(req SPGetReq) (*sp.SP, *errors.Error)
	SPLoad(req SPLoadReq) (*SPLoadResp, *errors.Error)
}

type VNCreateReq

type VNCreateReq struct {
	Token string `json:"token"`
	ID    string `json:"id"`
}

type VNCreateResp

type VNCreateResp struct {
	ID         string `json:"id"`
	Originator ki.Ki  `json:"originator"`
	Guardian   ki.Ki  `json:"guardian"`
	Dob        int64  `json:"dob"`
}

type VNGetReq

type VNGetReq struct {
	By load.ByCode `json:"by"`
	ID vn.ID       `json:"id"`
}

type VNLoadReq

type VNLoadReq struct {
	IDs  []vn.ID    `json:"ids"`
	Page *load.Page `json:"page"`
}

type VNLoadResp

type VNLoadResp struct {
	Paging *load.Paging `bson:"paging" json:"paging"`
	Items  []*vn.VN     `bson:"items" json:"items"`
}

Jump to

Keyboard shortcuts

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