Documentation ¶
Index ¶
- func CreateRaw(args *ArgsCreateRaw) (id int64, err error)
- func DeleteRaw(args *ArgsDeleteRaw) (err error)
- func GetRawNameByID(id int64) (name string)
- func Init()
- func UpdateRaw(args *ArgsUpdateRaw) (err error)
- type ArgsCreateRaw
- type ArgsDeleteRaw
- type ArgsGetRawByID
- type ArgsGetRawList
- type ArgsUpdateRaw
- type FieldsRaw
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ArgsCreateRaw ¶
type ArgsCreateRaw struct { //分公司ID OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"` //名称 Name string `db:"name" json:"name" check:"des" min:"1" max:"300"` }
ArgsCreateRaw 创建Raw参数
type ArgsDeleteRaw ¶
type ArgsDeleteRaw struct { //ID ID int64 `db:"id" json:"id" check:"id"` //分公司ID OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"` }
ArgsDeleteRaw 删除Raw参数
type ArgsGetRawByID ¶
type ArgsGetRawByID struct { //ID ID int64 `db:"id" json:"id" check:"id"` //分公司ID OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"` }
ArgsGetRawByID 获取Raw数据包参数
type ArgsGetRawList ¶
type ArgsGetRawList struct { //分页参数 Pages CoreSQL2.ArgsPages `json:"pages"` //分公司ID OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"` //是否删除 IsRemove bool `json:"isRemove" check:"bool"` //搜索 Search string `json:"search" check:"search" empty:"true"` }
ArgsGetRawList 获取Raw列表参数
type ArgsUpdateRaw ¶
type ArgsUpdateRaw struct { //ID ID int64 `db:"id" json:"id" check:"id"` //分公司ID OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"` //名称 Name string `db:"name" json:"name" check:"des" min:"1" max:"300"` }
ArgsUpdateRaw 修改Raw参数
type FieldsRaw ¶
type FieldsRaw struct { // ID ID int64 `db:"id" json:"id" check:"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"` //分公司ID OrgID int64 `db:"org_id" json:"orgID" check:"id"` //名称 Name string `db:"name" json:"name" check:"des" min:"1" max:"300"` }
FieldsRaw 原材料
func GetRawByID ¶
func GetRawByID(args *ArgsGetRawByID) (data FieldsRaw, err error)
GetRawByID 获取Raw数
func GetRawList ¶
func GetRawList(args *ArgsGetRawList) (dataList []FieldsRaw, dataCount int64, err error)
GetRawList 获取Raw列表
Click to show internal directories.
Click to hide internal directories.