js_dd

package
v0.0.0-...-eef8a56 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: EPL-1.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(L *lua.LState, data []byte) (lua.LValue, error)

Decode converts the JSON encoded data to Lua values.

func DecodeValue

func DecodeValue(L *lua.LState, value interface{}) lua.LValue

DecodeValue converts the value to a Lua value.

This function only converts values that the encoding/json package decodes to. All other values will return lua.LNil.

func Encode

func Encode(value lua.LValue) ([]byte, error)

Encode returns the JSON encoding of value.

func GetSetAgentId

func GetSetAgentId(L *lua.LState) int

Getter and setter for the Person#Name

func GetSetApprovers

func GetSetApprovers(L *lua.LState) int

func GetSetDeptId

func GetSetDeptId(L *lua.LState) int

Getter and setter for the Person#Name

func GetSetProcessCode

func GetSetProcessCode(L *lua.LState) int

Getter and setter for the Person#Name

func GetSetUserId

func GetSetUserId(L *lua.LState) int

Getter and setter for the Person#Name

func Loader

func Loader(L *lua.LState) int

Loader is the module loader function.

func NewGinModule

func NewGinModule(c *gin.Context) *ginModule

func NewHttpModule

func NewHttpModule(client *http.Client) *httpModule

func NewHttpModuleWithDo

func NewHttpModuleWithDo(do func(req *http.Request) (*http.Response, error)) *httpModule

func Preload

func Preload(L *lua.LState)

Preload adds json to the given Lua state's package.preload table. After it has been preloaded, it can be loaded using require:

local json = require("json")

func Require

func Require(runtime *goja.Runtime, module *goja.Object)

Types

type Approvers

type Approvers struct {
	Task_action_type string   `json:"task_action_type"` //会签:AND 或签:OR 单人:NONE
	User_ids         []string `json:"user_ids"`         //会签/或签列表长度必须大于1	非会签/或签列表长度只能为1
}

type DD_VALUE

type DD_VALUE struct {
	Name  interface{} `json:"name"`
	Value interface{} `json:"value"`
}

type Util

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

Jump to

Keyboard shortcuts

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