refactor: remove db package and move database logic to service layer
This commit is contained in:
@@ -13,18 +13,6 @@ type Node struct {
|
||||
Relations map[string][]string `json:"relations,omitempty"`
|
||||
}
|
||||
|
||||
type RelType string
|
||||
|
||||
const (
|
||||
RelBlocks RelType = "blocks"
|
||||
RelSubtask RelType = "subtask"
|
||||
RelRelated RelType = "related"
|
||||
RelCreated RelType = "created"
|
||||
RelAssignee RelType = "assignee"
|
||||
RelInNamespace RelType = "in_namespace"
|
||||
RelMentions RelType = "mentions"
|
||||
)
|
||||
|
||||
func (n *Node) GetProperty(k string) string {
|
||||
for _, t := range n.Tags {
|
||||
if strings.HasPrefix(t, "_") {
|
||||
|
||||
13
models/rel_type.go
Normal file
13
models/rel_type.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package models
|
||||
|
||||
type RelType string
|
||||
|
||||
const (
|
||||
RelBlocks RelType = "blocks"
|
||||
RelSubtask RelType = "subtask"
|
||||
RelRelated RelType = "related"
|
||||
RelCreated RelType = "created"
|
||||
RelAssignee RelType = "assignee"
|
||||
RelInNamespace RelType = "in_namespace"
|
||||
RelMentions RelType = "mentions"
|
||||
)
|
||||
Reference in New Issue
Block a user