package base /****************************************************************************** * * @Struct Name : ArtData *----------------------------------------------------------------------------- * * @Description : 物料分配属性 * * @Author : 娄文智 * * @Date : 2021-05-26 * ******************************************************************************/ type ArtData struct { Attribute `xorm:"extends"` ArticleAtcodLst `xorm:"extends"` } /****************************************************************************** * * @Struct Name : UserViewInfo *----------------------------------------------------------------------------- * * @Description : 用户信息 * * @Author : 娄文智 * * @Date : 2021-05-26 * ******************************************************************************/ type UserViewInfo struct { PlantNr int `json:"User-PlantNr"` UserId string `json:"User-UserId"` Name string `json:"User-Name"` NickName string `json:"User-NickName"` Phone string `json:"User-Phone"` Email string `json:"User-Email"` Status string `json:"User-Status"` Gender string `json:"User-Gender"` RoleId int `json:"User-RoleId"` Role string `json:"User-Role"` Remark string `json:"User-Remark"` CustCommissioner string `json:"User-CustCommissioner"` } type SysUserPwd struct { OldPassword string `json:"OldPassword"` NewPassword string `json:"NewPassword"` } type MenuLable struct { Id int `json:"id" xorm:"-"` Label string `json:"label" xorm:"-"` Children []MenuLable `json:"children" xorm:"-"` } /****************************************************************************** * * @Struct Name : CustomerLable *----------------------------------------------------------------------------- * * @Description : 客户列表菜单 * * @Author : 娄文智 * * @Date : 2021-09-08 * ******************************************************************************/ type CustomerLable struct { CustomerId string `json:"CustomerId" xorm:"-"` CreateModel string `json:"CreateModel" xorm:"-"` Label string `json:"Label" xorm:"-"` Children []CustomerLable `json:"Children" xorm:"-"` ArtId string `json:"ArtId" xorm:"-"` Leaf bool `json:"Leaf" xorm:"-"` } /****************************************************************************** * * @Struct Name : TableData *----------------------------------------------------------------------------- * * @Description : 表结构菜单 * * @Author : 娄文智 * * @Date : 2021-12-28 * ******************************************************************************/ type TableData struct { Tabmapcol string Coltype string } /****************************************************************************** * * @Struct Name : TablePk *----------------------------------------------------------------------------- * * @Description : 表结构菜单 * * @Author : 娄文智 * * @Date : 2021-12-28 * ******************************************************************************/ type TablePk struct { TabName string Colname string } // FieldType const ( FIELD_TYPE_VARCHAR = "varchar" FIELD_TYPE_NVARCHAR = "nvarchar" FIELD_TYPE_TEXT = "text" FIELD_TYPE_BIT = "bit" FIELD_TYPE_INT = "int" FIELD_TYPE_BIGINT = "bigint" FIELD_TYPE_FLOAT = "float" FIELD_TYPE_DATE = "date" FIELD_TYPE_DATETIME = "datetime" )