report

package
v0.0.0-...-629b230 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteExpReportByID

func DeleteExpReportByID(expReportID uint64) error

func GetExpReportUserIDByFilename

func GetExpReportUserIDByFilename(filename string) (uint64, error)

func GetExpReportUserIDByID

func GetExpReportUserIDByID(expReportID uint64) (uint64, error)

Types

type ExpReport

type ExpReport struct {
	basic.Model
	Filename  string     `json:"filename"`
	ExpTaskID uint64     `json:"exp_task_id"`
	UserID    *uint64    `json:"-"`
	User      *user.User `json:"user"`
}

func GetExpReportByID

func GetExpReportByID(expTaskID uint64) (*ExpReport, error)

func SaveToDB

func SaveToDB(filename string, expTaskID, userID uint64) (*ExpReport, error)

Jump to

Keyboard shortcuts

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