Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EventsMock = Events{
ID: 1,
Name: "Mock Event Name",
StartTime: "Mock Event StartTime",
EndingTime: "Mock Event EndingTime",
Disc: "Mock Event Disc",
}
View Source
var PartiesMock = Parties{
ID: 1,
Name: "Mock party name",
Logo: "Mock party logo",
Slogan: "Mock party slogan",
Event: 1,
}
View Source
var PostMock = Post{
ID: 1,
Name: "Mock Post Name",
Writer: "Mock post writer",
Vid: "Mock vid",
Disc: "Mock post description",
}
View Source
var RegPartiesMock = RegParties{ ID: 1, PartiesRefer: 1, Parties: Parties{}, EventRefer: 1, Count: 1, Event: Events{}, }
View Source
var RegVotersMock = RegVoters{ ID: 1, VoterRefer: 1, Voters: Voters{}, Event: Events{}, EventRefer: 1, // contains filtered or unexported fields }
View Source
var RoleMock = Role{
ID: 1,
Name: "",
}
View Source
var SessionMock = Session{ ID: 1, UUID: "", Expires: 1, SigningKey: []byte{}, }
View Source
var VotersMock = Voters{
ID: 1,
FullName: "",
GID: "",
Password: "",
Region: "",
Phone: "",
RoleID: 1,
}
View Source
var VotesMock = Votes{
ID: 1,
EventRefer: 1,
PartiesRefer: 1,
VoterRefer: 1,
}
Functions ¶
This section is empty.
Types ¶
type RegParties ¶
type Voters ¶
type Voters struct { ID int FullName string `gorm:"type:varchar(100);unique;not null"` GID string `gorm:"type:varchar(255); not null"` //goverment id Password string `gorm:"type:varchar(255); not null"` Region string `gorm:"type:varchar(100)"` Phone string `gorm:"type:varchar(100);not null; unique"` RoleID uint }
Click to show internal directories.
Click to hide internal directories.