Documentation ¶
Index ¶
- func AddTask(data map[string]interface{}) (id int, ok bool)
- func CheckUser(username, password string) bool
- func CloseDB()
- func DeleteTask(id int) bool
- func ExistTaskByID(id int) bool
- func ExistTaskByIDAndUsername(id int, username string) bool
- func GetTaskTotal(maps interface{}) (count int)
- func UpdateTask(id int, data interface{}) bool
- type Model
- type Task
- type TaskInfo
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteTask ¶
func ExistTaskByID ¶
func GetTaskTotal ¶
func GetTaskTotal(maps interface{}) (count int)
func UpdateTask ¶
Types ¶
type Task ¶
type Task struct { //Model ID int `gorm:"AUTO_INCREMENT;primary_key;" json:"id"` CreatedOn int `json:"created_on"` ModifiedOn int `json:"modified_on"` TaskName string `json:"task_name"` Content string `json:"content"` CreatedBy string `json:"created_by"` State int `json:"state"` TaskLog string `json:"task_log"` TaskUUID string `json:"task_uuid"` }
func GetTasksInfo ¶
func GetTasksInfo() (tasks []Task)
Click to show internal directories.
Click to hide internal directories.