api

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

code by liangliangit

通过chatGPT辅助 实现了模型与增删改查列表的分离 可以为模型增加增删改查接口

Index

Constants

View Source
const (
	CRUD_FLAG_CREATE = "CRUD_FLAG_CREATE"
	CRUD_FLAG_DELETE = "CRUD_FLAG_DELETE"
	CRUD_FLAG_UPDATE = "CRUD_FLAG_UPDATE"
	CRUD_FLAG_DETAIL = "CRUD_FLAG_DETAIL"
	CRUD_FLAG_LIST   = "CRUD_FLAG_LIST"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Crud

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

func NewCRUDJsonrpcAPI

func NewCRUDJsonrpcAPI(baseMethod string, modelObject, modelObjects interface{}) *Crud

func (*Crud) RegAPI

func (c *Crud) RegAPI(CRUD_FLAG ...string)

reg jsonrpc method if CRUD_FLAG is null ,Will Reg All Method

type MyKey

type MyKey string

Jump to

Keyboard shortcuts

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