res

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ZZSTATFail    = "E"
	ZZSTATSuccess = "S"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ESRESPONSERes

type ESRESPONSERes struct {
	Text     string         `xml:",chardata"`
	ESRETURN ESRETURNPubRes `xml:"ES_RETURN"`
	ETRESULT ETRESULTPubRes `xml:"ET_RESULT"`
}

type ESRETURNPubRes

type ESRETURNPubRes struct {
	Text      string `xml:",chardata"`
	ZINSTID   string `xml:"ZINSTID"`
	ZZRESTIME string `xml:"ZZRESTIME"`
	ZZSTAT    string `xml:"ZZSTAT"`
	ZZMSG     string `xml:"ZZMSG"`
	ZZATTR1   string `xml:"ZZATTR1"`
	ZZATTR2   string `xml:"ZZATTR2"`
	ZZATTR3   string `xml:"ZZATTR3"`
}

type ETRESULTPubRes

type ETRESULTPubRes struct {
	Text string       `xml:",chardata"`
	Item []ItemPubRes `xml:"item"` // 数组
}

type ItemPubRes

type ItemPubRes struct {
	Text     string `xml:",chardata"`
	ZZSERIAL string `xml:"ZZSERIAL"`
	ZZSTAT   string `xml:"ZZSTAT"`
	ZZMSG    string `xml:"ZZMSG"`
}

type Items

type Items struct {
	// contains filtered or unexported fields
}

func NewItemRes

func NewItemRes(len int) *Items

func (*Items) Append

func (i *Items) Append(zZSerial string, err error) *Items

func (*Items) Finish

func (i *Items) Finish() []ItemPubRes

type MainDataMarJsonResponse

type MainDataMarJsonResponse struct {
	RETURNCODE string `json:"RETURN_CODE"`
	RETURNDESC string `json:"RETURN_DESC"`
}

type MainDataMarXmlResponse

type MainDataMarXmlResponse struct {
	XMLName    xml.Name      `xml:"importCrcResponse"`
	Text       string        `xml:",chardata"`
	Prx        string        `xml:"prx,attr"`
	N0         string        `xml:"n0,attr"`
	ESRESPONSE ESRESPONSERes `xml:"ES_RESPONSE"`
}

ImportCrcResponse was generated 2024-06-28 14:54:59 by https://xml-to-go.github.io/ in Ukraine.

func RetMainDataMarJsonResponse

func RetMainDataMarJsonResponse[T any](req req.MainDataManagerPubReqOfJSON[T], err error, items []ItemPubRes) MainDataMarXmlResponse

func RetMainDataMarXmlResponse

func RetMainDataMarXmlResponse[T any](req req.MainDataManagerPubReqOfXML[T], err error, items []ItemPubRes) MainDataMarXmlResponse

Jump to

Keyboard shortcuts

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