classes

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataModel

type DataModel struct {
	Id   int
	Name string
}

func NewDataModel

func NewDataModel(id int, name string) *DataModel

type IndexClass

type IndexClass struct {
	MyTest  *Services.TestService `inject:"-"`
	MyTest2 *Services.TestService
	Age     *goft.Value `prefix:"user.age"`
}

func NewIndexClass

func NewIndexClass() *IndexClass

func (*IndexClass) Build

func (this *IndexClass) Build(goft *goft.Goft)

func (*IndexClass) GetIndex

func (this *IndexClass) GetIndex(ctx *gin.Context) string

func (*IndexClass) IndexVoid

func (this *IndexClass) IndexVoid(c *gin.Context) (void goft.Void)

func (*IndexClass) Name

func (this *IndexClass) Name() string

func (*IndexClass) Test

func (this *IndexClass) Test(ctx *gin.Context) goft.Json

func (*IndexClass) TestA

func (this *IndexClass) TestA(c *gin.Context) goft.Json

func (*IndexClass) TestUserDetail

func (this *IndexClass) TestUserDetail(ctx *gin.Context) goft.Json

func (*IndexClass) TestUsers

func (this *IndexClass) TestUsers(ctx *gin.Context) goft.Query

type MyError

type MyError struct {
	Code    int
	Message string
}

func NewMyError

func NewMyError(code int, message string) *MyError

func (*MyError) Name

func (*MyError) Name() string

Jump to

Keyboard shortcuts

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