Documentation ¶
Index ¶
- func DeleteUnit(id int64) (err error)
- func GetUnitNameByID(id int64) (name string)
- func Init()
- func UpdateUnit(args *ArgsUpdateUnit) (err error)
- type ArgsCreateUnit
- type ArgsGetUnitList
- type ArgsUpdateUnit
- type FieldsUnit
- func CreateUnit(args *ArgsCreateUnit) (data FieldsUnit, err error)
- func GetUnitByCode(code string) (data FieldsUnit)
- func GetUnitByID(id int64) (data FieldsUnit)
- func GetUnitList(args *ArgsGetUnitList) (dataList []FieldsUnit, dataCount int64, err error)
- func GetUnitNoDeleteByCode(code string) (data FieldsUnit)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteUnit ¶
func GetUnitNameByID ¶
func UpdateUnit ¶
func UpdateUnit(args *ArgsUpdateUnit) (err error)
Types ¶
type ArgsCreateUnit ¶
type ArgsGetUnitList ¶
type ArgsUpdateUnit ¶
type FieldsUnit ¶
type FieldsUnit struct { //ID ID int64 `db:"id" json:"id"` //创建时间 CreateAt time.Time `db:"create_at" json:"createAt"` //更新时间 UpdateAt time.Time `db:"update_at" json:"updateAt"` //删除时间 DeleteAt time.Time `db:"delete_at" json:"deleteAt"` //编码 Code string `db:"code" json:"code" check:"des" min:"1" max:"100"` //名称 Name string `db:"name" json:"name" check:"des" min:"1" max:"300"` }
func CreateUnit ¶
func CreateUnit(args *ArgsCreateUnit) (data FieldsUnit, err error)
func GetUnitByCode ¶
func GetUnitByCode(code string) (data FieldsUnit)
func GetUnitByID ¶
func GetUnitByID(id int64) (data FieldsUnit)
func GetUnitList ¶
func GetUnitList(args *ArgsGetUnitList) (dataList []FieldsUnit, dataCount int64, err error)
func GetUnitNoDeleteByCode ¶
func GetUnitNoDeleteByCode(code string) (data FieldsUnit)
Click to show internal directories.
Click to hide internal directories.