_domain

package
v0.0.0-...-5746ace Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArithArgs

type ArithArgs struct {
	A int
	B int
}

type ArithReply

type ArithReply struct {
	C int
}

type Boolean

type Boolean bool

func (*Boolean) Scan

func (b *Boolean) Scan(src interface{}) error

type RemoteReq

type RemoteReq struct {
	ComputerIp   string
	ComputerPort int

	ApiPath   string
	ApiMethod string
	Data      interface{}
}

type RemoteResp

type RemoteResp struct {
	Code    consts.ResultCode `json:"code"`
	Msg     string            `json:"msg"`
	Payload interface{}       `json:"payload"`
}

func (*RemoteResp) Fail

func (result *RemoteResp) Fail(msg string)

func (*RemoteResp) Failf

func (result *RemoteResp) Failf(str string, args ...interface{})

func (*RemoteResp) IsSuccess

func (result *RemoteResp) IsSuccess() bool

func (*RemoteResp) Pass

func (result *RemoteResp) Pass(msg string)

func (*RemoteResp) Passf

func (result *RemoteResp) Passf(str string, args ...interface{})

type Request

type Request struct {
	PageSize int `json:"pageSize"`
	PageNo   int `json:"pageNo"`
}

type Response

type Response struct {
	Code consts.ResultCode `json:"code"` // Enums consts.ResultCode
	Msg  string            `json:"msg,omitempty"`
	Data interface{}       `json:"data,omitempty"`
}

type ResponsePage

type ResponsePage struct {
	Response

	PageSize   int   `json:"pageSize"`
	PageNo     int   `json:"pageNo"`
	TotalCount int64 `json:"totalCount"`
	TotalPage  int64 `json:"totalPage"`
}

Jump to

Keyboard shortcuts

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