slot

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2025 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CodeAreaInfo      = "areaInfo"      //区域
	CodeUserSubscribe = "userSubscribe" //用户订阅
	CodeDataFilter    = "dataFilter"    //大数据过滤
	CodeDeviceSend    = "deviceSend"    //设备控制

	SubCodeCreate              = "create" //创建
	SubCodeDelete              = "delete" //创建
	SubCodePropertyControlSend = "propertyControlSend"
)
View Source
const (
	AuthTypeCore = "core"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Code     string            `json:"code"` // 鉴权的编码
	SubCode  string            `json:"subCode"`
	SlotCode string            `json:"slotCode"` //slot的编码
	Method   string            `json:"method"`   // 请求方式 GET  POST
	Uri      string            `json:"uri"`      // 参考: /api/v1/system/user/self/captcha?fwefwf=gwgweg&wefaef=gwegwe
	Hosts    []string          `json:"hosts"`    //访问的地址 host or host:port
	Body     string            `json:"body"`     // body 参数模板
	Handler  map[string]string `json:"handler"`  //http头
	AuthType string            `json:"authType"` //鉴权类型 core
}

type Infos

type Infos []*Info

func (Infos) Request

func (i Infos) Request(ctx context.Context, in any, retV any) error

Jump to

Keyboard shortcuts

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