model

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package model 管理数据模型

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Models

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

Models 数据模型管理

func NewModels

func NewModels(e core.Engine) *Models

NewModels 声明 Models 变量

func (*Models) Clear

func (ms *Models) Clear()

Clear 清除所有的 Model 缓存

func (*Models) New

func (ms *Models) New(obj interface{}) (*core.Model, error)

New 从一个 obj 声明一个 Model 实例

obj 可以是一个 struct 实例或是指针。

Jump to

Keyboard shortcuts

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