fix: compile errors
This commit is contained in:
parent
93056da792
commit
a21bff3ffb
@ -166,46 +166,9 @@ func (t *TaskRelationDeletedEvent) Name() string {
|
|||||||
return "task.relation.deleted"
|
return "task.relation.deleted"
|
||||||
}
|
}
|
||||||
|
|
||||||
//////////////////////
|
////////////////////
|
||||||
// Namespace Events //
|
|
||||||
//////////////////////
|
|
||||||
|
|
||||||
// NamespaceCreatedEvent represents an event where a namespace has been created
|
|
||||||
type NamespaceCreatedEvent struct {
|
|
||||||
Namespace *Namespace
|
|
||||||
Doer web.Auth
|
|
||||||
}
|
|
||||||
|
|
||||||
// Name defines the name for NamespaceCreatedEvent
|
|
||||||
func (n *NamespaceCreatedEvent) Name() string {
|
|
||||||
return "namespace.created"
|
|
||||||
}
|
|
||||||
|
|
||||||
// NamespaceUpdatedEvent represents an event where a namespace has been updated
|
|
||||||
type NamespaceUpdatedEvent struct {
|
|
||||||
Namespace *Namespace
|
|
||||||
Doer web.Auth
|
|
||||||
}
|
|
||||||
|
|
||||||
// Name defines the name for NamespaceUpdatedEvent
|
|
||||||
func (n *NamespaceUpdatedEvent) Name() string {
|
|
||||||
return "namespace.updated"
|
|
||||||
}
|
|
||||||
|
|
||||||
// NamespaceDeletedEvent represents a NamespaceDeletedEvent event
|
|
||||||
type NamespaceDeletedEvent struct {
|
|
||||||
Namespace *Namespace
|
|
||||||
Doer web.Auth
|
|
||||||
}
|
|
||||||
|
|
||||||
// TopicName defines the name for NamespaceDeletedEvent
|
|
||||||
func (t *NamespaceDeletedEvent) Name() string {
|
|
||||||
return "namespace.deleted"
|
|
||||||
}
|
|
||||||
|
|
||||||
/////////////////
|
|
||||||
// Project Events //
|
// Project Events //
|
||||||
/////////////////
|
////////////////////
|
||||||
|
|
||||||
// ProjectCreatedEvent represents an event where a project has been created
|
// ProjectCreatedEvent represents an event where a project has been created
|
||||||
type ProjectCreatedEvent struct {
|
type ProjectCreatedEvent struct {
|
||||||
|
@ -874,7 +874,7 @@ func (p *Project) Create(s *xorm.Session, a web.Auth) (err error) {
|
|||||||
// @Router /projects/{id} [delete]
|
// @Router /projects/{id} [delete]
|
||||||
func (p *Project) Delete(s *xorm.Session, a web.Auth) (err error) {
|
func (p *Project) Delete(s *xorm.Session, a web.Auth) (err error) {
|
||||||
|
|
||||||
fullList, err := GetProjectSimpleByID(s, l.ID)
|
fullList, err := GetProjectSimpleByID(s, p.ID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -249,7 +249,8 @@ func createProjectWithEverything(s *xorm.Session, project *models.ProjectWithTas
|
|||||||
var exists bool
|
var exists bool
|
||||||
if label == nil {
|
if label == nil {
|
||||||
continue
|
continue
|
||||||
}lb, exists = labels[label.Title+label.HexColor]
|
}
|
||||||
|
lb, exists = labels[label.Title+label.HexColor]
|
||||||
if !exists {
|
if !exists {
|
||||||
err = label.Create(s, user)
|
err = label.Create(s, user)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -46,7 +46,7 @@ type tickTickTask struct {
|
|||||||
Tags []string `csv:"-"`
|
Tags []string `csv:"-"`
|
||||||
Content string `csv:"Content"`
|
Content string `csv:"Content"`
|
||||||
IsChecklistString string `csv:"Is Check list"`
|
IsChecklistString string `csv:"Is Check list"`
|
||||||
IsCheckproject bool`csv:"-"`
|
IsChecklist bool `csv:"-"`
|
||||||
StartDate tickTickTime `csv:"Start Date"`
|
StartDate tickTickTime `csv:"Start Date"`
|
||||||
DueDate tickTickTime `csv:"Due Date"`
|
DueDate tickTickTime `csv:"Due Date"`
|
||||||
ReminderDuration string `csv:"Reminder"`
|
ReminderDuration string `csv:"Reminder"`
|
||||||
|
@ -33,7 +33,7 @@ type ProjectUserOpts struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ListUsers returns a list with all users, filtered by an optional search string
|
// ListUsers returns a list with all users, filtered by an optional search string
|
||||||
func ProjectUsers(s *xorm.Session, search string, opts *ProjectUserOpts) (users []*User, err error) {
|
func ListUsers(s *xorm.Session, search string, opts *ProjectUserOpts) (users []*User, err error) {
|
||||||
if opts == nil {
|
if opts == nil {
|
||||||
opts = &ProjectUserOpts{}
|
opts = &ProjectUserOpts{}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user