models

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	ID int `gorm:"primary_key" form:"id" json:"id"`
}

type Salary

type Salary struct {
	Model
	Name           string `json:"name" gorm:"not null;unique"` //姓名
	Department     string `json:"department"`                  //部门
	SocialSecurity string `json:"social_security"`             //社保
	ProvidentFund  string `json:"provident_fund"`              //公积金
	Salary         string `json:"salary"`                      //实发工资
	SalaryTime     string `json:"salary_time"`                 //工资日期
}

func (Salary) TableName

func (Salary) TableName() string

Jump to

Keyboard shortcuts

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