dto

package
v1.1.34 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseReq

type BaseReq struct {
	Context Context `json:"-"` // 這個字段不能修改偏移值 ⚠️ 必须保持第一位

	// 字符串字段(16字节)
	Cmd string `json:"cmd"`

	// 数值字段(8字节对齐)
	PrevID int64 `json:"prevID"`
	LastID int64 `json:"lastID"`
	Offset int64 `json:"offset"`
	Limit  int64 `json:"limit"`

	// bool字段(1字节)
	CountQ bool `json:"countQ"`
}

func GetBasePtrReq

func GetBasePtrReq(ptr uintptr) *BaseReq

type Context

type Context struct {
	// 8字节字段组 (4个字段)
	Identify *Identify // 8字节 - 指针字段
	System   *System   // 8字节 - 指针字段
	Path     string    // 16字节 - 字符串字段
}

type Identify

type Identify struct {
	// 接口字段(16字节)
	ID interface{}
}

func (*Identify) Int64

func (s *Identify) Int64() int64

func (*Identify) String

func (s *Identify) String() string

type System

type System struct {
	// 字符串字段(16字节对齐)
	Name    string // 系统名
	Version string // 系统版本
}

Jump to

Keyboard shortcuts

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