view

package
v0.0.0-...-17df286 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewErrorResponse

func NewErrorResponse(cxt *gin.Context, code int, msg, desc string)

func NewResponseCreateLog

func NewResponseCreateLog(c *gin.Context, log *model.Log)

func NewResponseGetLog

func NewResponseGetLog(c *gin.Context, log *model.Log)

Types

type Error

type Error struct {
	Code        int    `json:"code"`
	Message     string `json:"message"`
	Description string `json:"description"`
}

type Logs

type Logs struct {
	LogID   string
	LogName string
}

type RequestCreateLog

type RequestCreateLog struct {
	UserID        string
	Date          time.Time
	WorkTime      int
	Concentration []float64
	LogName       string
}

func (*RequestCreateLog) ParseModel

func (req *RequestCreateLog) ParseModel(log *model.Log)

type ResponseCreateLog

type ResponseCreateLog struct {
	LogID string
}

type ResponseGetLog

type ResponseGetLog struct {
	Date          time.Time
	WorkTime      int
	Concentration []float64
	LogName       string
}

type ResponseGetLogs

type ResponseGetLogs struct {
	Logs []Logs
}

Jump to

Keyboard shortcuts

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