comment

package
v2.0.0-rc2+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2018 License: GPL-3.0 Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comment

type Comment struct {
	Id        int64
	CreatedAt time.Time `xorm:"created"`
	UpdatedAt time.Time `xorm:"updated"`
	DeletedAt time.Time `xorm:"deleted"`

	// Foreign Key ----------|
	TestId   int64
	AuthorId string

	Text          string
	TestVersionNr int
	IsCase        bool
	IsEdit        bool `xorm:"not null default 0"`

	Author *user.User `xorm:"-"`

	// The Author-Role is lazy-loaded
	AuthorRole *project.Role `xorm:"-"`

	// The Requester is a hack so we can access the requesting User in the template, as the comments template is asynchronous
	Requester *user.User `xorm:"-"`
}

Jump to

Keyboard shortcuts

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