models

package
v0.0.0-...-5d42812 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 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 ID

type ID struct {
	ID uint `json:"id" gorm:"primaryKey"`
}

type Media

type Media struct {
	ID
	DiskType string `json:"disk_type" gorm:"size:20;index;not null;comment:存储类型"`
	SrcType  int8   `json:"src_type" gorm:"not null;comment:链接类型 1相对路径 2外链"`
	Src      string `json:"src" gorm:"not null;comment:资源链接"`
	Timestamps
}

type Quotation

type Quotation struct {
	ID
	UUID           string  `json:"uuid" gorm:"primaryKey;not null;comment:报价需求单的UUID"`
	Title          string  `json:"title" gorm:"not null;comment:报价需求单的标题"`
	Desc           string  `json:"desc" gorm:"not null;comment:报价需求单的描述"`
	PartnerName    string  `json:"partnerName" gorm:"partner_name;not null;comment:报价需求单的服务商名称"`
	RequirementNo  string  `json:"requirementNo" gorm:"requirement_no;not null;comment:报价需求单的需求编号"`
	Amount         float64 `json:"amount" gorm:"amount;not null;comment:报价需求单的报价金额"`
	TotalPersonDay float32 `json:"totalPersonDay" gorm:"total_person_day;not null;comment:报价需求单的报价总人天"`
	RelationUUID   string  `json:"relationUUID" gorm:"relation_uuid;not null;comment:关联的ONES需求用户故事UUID"`
	FileName       string  `json:"fileName" gorm:"filename;not null;comment:Excel报价文件名称"`
	FilePath       string  `json:"filePath" gorm:"filepath;not null;comment:Excel报价文件路径"`
	IsSync         bool    `json:"is_sync" gorm:"is_sync;not null;comment:是否已经同步"`
	Timestamps
	SoftDeletes
}

type SoftDeletes

type SoftDeletes struct {
	DeletedAt gorm.DeletedAt `json:"deleted_at" gorm:"index"`
}

type Story

type Story struct {
	ID
	UUID   string `json:"uuid" gorm:"primaryKey;not null;comment:用户故事任务的UUID"`
	Title  string `json:"title" gorm:"not null;comment:用户故事任务的标题"`
	Desc   string `json:"desc" gorm:"size:5000;not null;comment:用户故事任务的描述"`
	Number string `json:"number" gorm:"not null;comment:用户故事任务的编号"`
	IsSync bool   `json:"is_sync" gorm:"is_sync;not null;comment:是否已经同步"`
	Timestamps
	SoftDeletes
}

func (Story) GetSid

func (story Story) GetSid() string

type Timestamps

type Timestamps struct {
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

type User

type User struct {
	ID
	Email    string `json:"name" gorm:"size:30;not null;comment:用户邮箱"`
	Password string `json:"-" gorm:"not null;default:'';comment:用户密码"`
	Timestamps
	SoftDeletes
}

func (User) GetUid

func (user User) GetUid() string

Jump to

Keyboard shortcuts

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