model

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
	ID            uint64 `json:"id,omitempty,string" gorm:"primaryKey;autoIncrement:false"`
	TargetID      uint64 `json:"targetId,omitempty,string" gorm:"index;comment:目标ID"`
	TargetType    int    `` /* 152-byte string literal not displayed */
	Action        int    `` /* 146-byte string literal not displayed */
	Content       string `json:"content,omitempty" gorm:"comment:原内容记录"`
	ChangeContent string `json:"changeContent,omitempty" gorm:"comment:变更内容记录"`
	Remark        string `json:"remark,omitempty" gorm:"size:200;comment:备注"`
	Status        int    `json:"status,omitempty" gorm:"comment:状态 1-成功 -1-失败"`
	OperatorID    uint64 `json:"operatorId,omitempty,string" gorm:"index;comment:操作人ID"`
	CreateTime    int64  `json:"createTime" gorm:"autoCreateTime:milli"`
}

func (*Log) TableComment

func (_ *Log) TableComment() string

func (*Log) UnmarshalJSON

func (p *Log) UnmarshalJSON(b []byte) error

type WorkTime

type WorkTime struct {
	ID           uint64         `json:"id,omitempty,string" gorm:"primaryKey;autoIncrement:false"`
	UserID       uint64         `json:"userId,omitempty,string" gorm:"index;comment:用户ID"`
	ProjectID    uint64         `json:"projectId,omitempty,string" gorm:"index;comment:项目ID"`
	TopProjectID uint64         `json:"topProjectId,omitempty,string" gorm:"index;comment:顶级项目ID"`
	WorkTime     int64          `json:"workTime,omitempty" gorm:"comment:工时,单位:秒"`
	StartDate    int64          `json:"startDate,omitempty" gorm:"comment:开始日期"`
	EndDate      int64          `json:"endDate,omitempty" gorm:"comment:结束日期"`
	WorkContent  string         `json:"workContent,omitempty" gorm:"size:500;comment:工作内容"`
	ReviewerID   uint64         `json:"reviewerID,omitempty,string" gorm:"index;comment:审核人ID"`
	ReviewTime   int64          `json:"reviewTime,omitempty" gorm:"comment:审核时间"`
	Status       int            `json:"status,omitempty" gorm:"comment:状态 0-未提交 1-已提交 2-已审核 3-已驳回 4-已取消"`
	RejectReason string         `json:"rejectReason,omitempty" gorm:"size:500;comment:驳回原因"`
	CreateTime   int64          `json:"createTime" gorm:"autoCreateTime:milli"`
	DeleteAt     gorm.DeletedAt `json:"deleteAt,omitempty" gorm:"index"`
}

func (*WorkTime) TableComment

func (_ *WorkTime) TableComment() string

func (*WorkTime) UnmarshalJSON

func (wt *WorkTime) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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