models

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Answer

type Answer struct {
	norm.VModel
	ID        int64 `norm:"id"`
	VoteUpCnt int64 `norm:"vote_up_cnt"`
}

func (*Answer) GetVid

func (a *Answer) GetVid() interface{}

GetVid 重定义获取 vid 的方法

func (*Answer) TagName

func (*Answer) TagName() string

type AnswerVoteUp

type AnswerVoteUp struct {
	norm.EModel
	VoteUpCnt int64 `norm:"vote_up_cnt"`
	Created   int64 `norm:"created"`
}

func (*AnswerVoteUp) EdgeName

func (*AnswerVoteUp) EdgeName() string

type User

type User struct {
	norm.VModel
	ID      int64 `norm:"id"`
	Created int64 `norm:"created"`
}

func (*User) TagName

func (*User) TagName() string

Jump to

Keyboard shortcuts

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