discuzx

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CasdoorOrganization = ""
	CasdoorApplication  = ""
)
View Source
var MaxTopTime = "9999-00-00T00:00:00+08:00"

Functions

func InitAdapter

func InitAdapter()

Types

type Adapter

type Adapter struct {
	Engine *xorm.Engine
	// contains filtered or unexported fields
}

Adapter represents the MySQL adapter for policy storage.

func NewAdapter

func NewAdapter(driverName string, dataSourceName string, dbName string) *Adapter

NewAdapter is the constructor for Adapter.

type Attachment

type Attachment struct {
	Tid         int
	Pid         int
	Uid         int
	Dateline    int
	Filename    string
	Filesize    int
	Attachment  string
	Description string
	Isimage     int
	Width       int
}

type Class

type Class struct {
	Typeid       int
	Fid          int
	Name         string
	Displayorder int
}

type Field

type Field struct {
	Fid         int
	Description string
	Icon        string
	Moderators  string
	Rules       string
}

type Forum

type Forum struct {
	Fid          int
	Fup          int
	Type         string
	Name         string
	Status       int
	Displayorder int
	Threads      int

	Forums []*Forum `xorm:"-"`
	Parent *Forum   `xorm:"-"`
}

type Member

type Member struct {
	Uid              int
	Email            string
	Username         string
	Password         string
	Status           int
	Emailstatus      int
	Avatarstatus     int
	Videophotostatus int
	Adminid          int
	Groupid          int
	Groupexpiry      int
	Extgroupids      string
	Regdate          int
	Credits          int
	Allowadmincp     int
}

type MemberEx

type MemberEx struct {
	*Member
	*Profile
	*UcenterMember
}

type Post

type Post struct {
	Pid       int
	Tid       int
	First     int
	Author    string
	Subject   string
	Dateline  int
	Message   string
	Useip     string
	Invisible int

	UploadFileRecords []*object.UploadFileRecord `xorm:"-"`
}

type Profile

type Profile struct {
	Uid             int
	Realname        string
	Gender          int
	Birthyear       int
	Birthmonth      int
	Birthday        int
	Mobile          string
	Idcardtype      string
	Idcard          string
	Address         string
	Resideprovince  string
	Residecity      string
	Residedist      string
	Residecommunity string
	Education       string
	Occupation      string
	Position        string
	Site            string
	Bio             string
	Interest        string
}

type Thread

type Thread struct {
	Tid          int
	Fid          int
	Typeid       int
	Author       string
	Subject      string
	Dateline     int
	Lastpost     int
	Lastposter   string
	Views        int
	Replies      int
	Displayorder int
	RecommendAdd int
	RecommendSub int
	Heats        int
	Favtimes     int

	Posts []*Post `xorm:"-"`
}

type UcenterMember

type UcenterMember struct {
	Uid           int
	Username      string
	Password      string
	Email         string
	Regip         string
	Regdate       int
	Lastloginip   int
	Lastlogintime int
	Salt          string
}

Jump to

Keyboard shortcuts

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