Domain.go 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455
  1. package domain
  2. import (
  3. "fmt"
  4. "time"
  5. )
  6. type Article struct {
  7. Id int64 `xorm:"id" json:"id"` //注释:id
  8. ArticleTitle string `xorm:"article_title" json:"articleTitle"` //注释:文章名称
  9. ArticleContent string `xorm:"article_content" json:"articleContent"` //注释:文章内容
  10. State string `xorm:"state" json:"state"` //注释:状态
  11. ArticleTagIds string `xorm:"article_tag_ids" json:"articleTagIds"` //注释:文章标签
  12. ArticleTopicId int64 `xorm:"article_topic_id" json:"articleTopicId"` //注释:文章主题id
  13. Image string `xorm:"image" json:"image"` //注释:图片
  14. PublishTime time.Time `xorm:"publish_time" json:"publishTime"` //注释:发表时间
  15. EyeFill int64 `xorm:"eye_fill" json:"eyeFill"` //注释:浏览量
  16. LikeCount int64 `xorm:"like_count" json:"likeCount"` //注释:点赞量
  17. CreateBy string `xorm:"create_by" json:"createBy"` //注释:创建人
  18. CreateTime time.Time `xorm:"create_time" json:"createTime"` //注释:创建时间
  19. UpdateBy string `xorm:"update_by" json:"updateBy"` //注释:更新人
  20. UpdateTime time.Time `xorm:"update_time" json:"updateTime"` //注释:更新时间
  21. Id int64 `xorm:"id" json:"id"` //注释:id
  22. }
  23. func (receiver Article) String() string {
  24. return fmt.Sprint("Article{","Id:",receiver.Id,"ArticleTitle:",receiver.ArticleTitle,"ArticleContent:",receiver.ArticleContent,"State:",receiver.State,"ArticleTagIds:",receiver.ArticleTagIds,"ArticleTopicId:",receiver.ArticleTopicId,"Image:",receiver.Image,"PublishTime:",receiver.PublishTime,"EyeFill:",receiver.EyeFill,"LikeCount:",receiver.LikeCount,"CreateBy:",receiver.CreateBy,"CreateTime:",receiver.CreateTime,"UpdateBy:",receiver.UpdateBy,"UpdateTime:",receiver.UpdateTime,"Id:",receiver.Id,"}")
  25. }
  26. type ArticleTag struct {
  27. Id int64 `xorm:"id" json:"id"` //注释:
  28. TagName string `xorm:"tag_name" json:"tagName"` //注释:标签名
  29. TagDesc string `xorm:"tag_desc" json:"tagDesc"` //注释:标签描述
  30. }
  31. func (receiver ArticleTag) String() string {
  32. return fmt.Sprint("ArticleTag{","Id:",receiver.Id,"TagName:",receiver.TagName,"TagDesc:",receiver.TagDesc,"}")
  33. }
  34. type ArticleTopic struct {
  35. Id int64 `xorm:"id" json:"id"` //注释:
  36. Image string `xorm:"image" json:"image"` //注释:图片
  37. TopicName string `xorm:"topic_name" json:"topicName"` //注释:主题名称
  38. TopicDesc string `xorm:"topic_desc" json:"topicDesc"` //注释:主题描述
  39. }
  40. func (receiver ArticleTopic) String() string {
  41. return fmt.Sprint("ArticleTopic{","Id:",receiver.Id,"Image:",receiver.Image,"TopicName:",receiver.TopicName,"TopicDesc:",receiver.TopicDesc,"}")
  42. }
  43. type BackAuthority struct {
  44. Id int64 `xorm:"id" json:"id"` //注释:id
  45. AuthorityName string `xorm:"authority_name" json:"authorityName"` //注释:接口名
  46. AuthorityPath string `xorm:"authority_path" json:"authorityPath"` //注释:接口路径
  47. Method string `xorm:"method" json:"method"` //注释:方法
  48. State string `xorm:"state" json:"state"` //注释:接口是否启用(0关闭,1启用)
  49. AuthorityVerification string `xorm:"authority_verification" json:"authorityVerification"` //注释:权限校验
  50. CreateTime time.Time `xorm:"create_time" json:"createTime"` //注释:创建时间
  51. }
  52. func (receiver BackAuthority) String() string {
  53. return fmt.Sprint("BackAuthority{","Id:",receiver.Id,"AuthorityName:",receiver.AuthorityName,"AuthorityPath:",receiver.AuthorityPath,"Method:",receiver.Method,"State:",receiver.State,"AuthorityVerification:",receiver.AuthorityVerification,"CreateTime:",receiver.CreateTime,"}")
  54. }
  55. type BackMenu struct {
  56. Id int64 `xorm:"id" json:"id"` //注释:id
  57. BackMenuName string `xorm:"back_menu_name" json:"backMenuName"` //注释:菜单名称
  58. BackMenuPater int64 `xorm:"back_menu_pater" json:"backMenuPater"` //注释:父级菜单
  59. Sort int64 `xorm:"sort" json:"sort"` //注释:排序
  60. Icon string `xorm:"icon" json:"icon"` //注释:图标
  61. Remark string `xorm:"remark" json:"remark"` //注释:备注
  62. BackRouterPath string `xorm:"back_router_path" json:"backRouterPath"` //注释:路由路径
  63. State string `xorm:"state" json:"state"` //注释:状态
  64. }
  65. func (receiver BackMenu) String() string {
  66. return fmt.Sprint("BackMenu{","Id:",receiver.Id,"BackMenuName:",receiver.BackMenuName,"BackMenuPater:",receiver.BackMenuPater,"Sort:",receiver.Sort,"Icon:",receiver.Icon,"Remark:",receiver.Remark,"BackRouterPath:",receiver.BackRouterPath,"State:",receiver.State,"}")
  67. }
  68. type BackRole struct {
  69. Id int64 `xorm:"id" json:"id"` //注释:
  70. RoleName string `xorm:"role_name" json:"roleName"` //注释:
  71. }
  72. func (receiver BackRole) String() string {
  73. return fmt.Sprint("BackRole{","Id:",receiver.Id,"RoleName:",receiver.RoleName,"}")
  74. }
  75. type BackRoleAuthority struct {
  76. Id int64 `xorm:"id" json:"id"` //注释:
  77. RoleId int64 `xorm:"role_id" json:"roleId"` //注释:角色id
  78. AuthorityId int64 `xorm:"authority_id" json:"authorityId"` //注释:权限id
  79. }
  80. func (receiver BackRoleAuthority) String() string {
  81. return fmt.Sprint("BackRoleAuthority{","Id:",receiver.Id,"RoleId:",receiver.RoleId,"AuthorityId:",receiver.AuthorityId,"}")
  82. }
  83. type BackRoleMenu struct {
  84. Id int64 `xorm:"id" json:"id"` //注释:
  85. RoleId int64 `xorm:"role_id" json:"roleId"` //注释:角色id
  86. MenuId int64 `xorm:"menu_id" json:"menuId"` //注释:枚舉id
  87. }
  88. func (receiver BackRoleMenu) String() string {
  89. return fmt.Sprint("BackRoleMenu{","Id:",receiver.Id,"RoleId:",receiver.RoleId,"MenuId:",receiver.MenuId,"}")
  90. }
  91. type GenTable struct {
  92. Id int64 `xorm:"id" json:"id"` //注释:id
  93. TableName string `xorm:"table_name" json:"tableName"` //注释:数据库名
  94. TableComment string `xorm:"table_comment" json:"tableComment"` //注释:数据库注释
  95. Name string `xorm:"name" json:"name"` //注释:名字
  96. RouterName string `xorm:"router_name" json:"routerName"` //注释:路由名
  97. Remark string `xorm:"remark" json:"remark"` //注释:备注
  98. }
  99. func (receiver GenTable) String() string {
  100. return fmt.Sprint("GenTable{","Id:",receiver.Id,"TableName:",receiver.TableName,"TableComment:",receiver.TableComment,"Name:",receiver.Name,"RouterName:",receiver.RouterName,"Remark:",receiver.Remark,"}")
  101. }
  102. type GenTableColumn struct {
  103. Id int64 `xorm:"id" json:"id"` //注释:id
  104. TableId int64 `xorm:"table_id" json:"tableId"` //注释:表格id
  105. Sort int64 `xorm:"sort" json:"sort"` //注释:排序
  106. ColumnName string `xorm:"column_name" json:"columnName"` //注释:字段名
  107. ColumnComment string `xorm:"column_comment" json:"columnComment"` //注释:字段注释
  108. ColumnType string `xorm:"column_type" json:"columnType"` //注释:字段类型
  109. GoType string `xorm:"go_type" json:"goType"` //注释:go类型
  110. GoField string `xorm:"go_field" json:"goField"` //注释:go字段名
  111. IsKey string `xorm:"is_key" json:"isKey"` //注释:是否主键
  112. IsIncrement string `xorm:"is_increment" json:"isIncrement"` //注释:是否自增
  113. IsRequired string `xorm:"is_required" json:"isRequired"` //注释:是否未必填
  114. QueryType string `xorm:"query_type" json:"queryType"` //注释:查询方式
  115. VueShowType string `xorm:"vue_show_type" json:"vueShowType"` //注释:前端显示类型
  116. DictType string `xorm:"dict_type" json:"dictType"` //注释:字典类型
  117. QueryType string `xorm:"query_type" json:"queryType"` //注释:查询方式
  118. }
  119. func (receiver GenTableColumn) String() string {
  120. return fmt.Sprint("GenTableColumn{","Id:",receiver.Id,"TableId:",receiver.TableId,"Sort:",receiver.Sort,"ColumnName:",receiver.ColumnName,"ColumnComment:",receiver.ColumnComment,"ColumnType:",receiver.ColumnType,"GoType:",receiver.GoType,"GoField:",receiver.GoField,"IsKey:",receiver.IsKey,"IsIncrement:",receiver.IsIncrement,"IsRequired:",receiver.IsRequired,"QueryType:",receiver.QueryType,"VueShowType:",receiver.VueShowType,"DictType:",receiver.DictType,"QueryType:",receiver.QueryType,"}")
  121. }
  122. type Goods struct {
  123. Id int64 `xorm:"id" json:"id"` //注释:id
  124. TypeId int64 `xorm:"type_id" json:"typeId"` //注释:分类id
  125. GoodsName string `xorm:"goods_name" json:"goodsName"` //注释:商品名字
  126. IntroductionId int64 `xorm:"introduction_id" json:"introductionId"` //注释:商品介绍id
  127. SalesVolume int64 `xorm:"sales_volume" json:"salesVolume"` //注释:近30天销量
  128. TagIds string `xorm:"tag_ids" json:"tagIds"` //注释:商品标签
  129. }
  130. func (receiver Goods) String() string {
  131. return fmt.Sprint("Goods{","Id:",receiver.Id,"TypeId:",receiver.TypeId,"GoodsName:",receiver.GoodsName,"IntroductionId:",receiver.IntroductionId,"SalesVolume:",receiver.SalesVolume,"TagIds:",receiver.TagIds,"}")
  132. }
  133. type GoodsCommodityArea struct {
  134. Id int64 `xorm:"id" json:"id"` //注释:id
  135. GoodsId int64 `xorm:"goods_id" json:"goodsId"` //注释:商品id
  136. CommodityAreaName string `xorm:"commodity_area_name" json:"commodityAreaName"` //注释:商品属地名称
  137. DetailImage string `xorm:"detail_image" json:"detailImage"` //注释:详情图片
  138. DetailIntroductionId int64 `xorm:"detail_introduction_id" json:"detailIntroductionId"` //注释:相关文本详情id
  139. }
  140. func (receiver GoodsCommodityArea) String() string {
  141. return fmt.Sprint("GoodsCommodityArea{","Id:",receiver.Id,"GoodsId:",receiver.GoodsId,"CommodityAreaName:",receiver.CommodityAreaName,"DetailImage:",receiver.DetailImage,"DetailIntroductionId:",receiver.DetailIntroductionId,"}")
  142. }
  143. type GoodsCoupon struct {
  144. Id int64 `xorm:"id" json:"id"` //注释:id
  145. CouponName string `xorm:"coupon_name" json:"couponName"` //注释:优惠券名称
  146. CouponDesc string `xorm:"coupon_desc" json:"couponDesc"` //注释:优惠券描述
  147. CashBackPoint float64 `xorm:"cash_back_point" json:"cashBackPoint"` //注释:满x
  148. CashBackPrice float64 `xorm:"cash_back_price" json:"cashBackPrice"` //注释:减x
  149. ConditionByTopic string `xorm:"condition_by_topic" json:"conditionByTopic"` //注释:主题可用,id
  150. ConditionByType string `xorm:"condition_by_type" json:"conditionByType"` //注释:类型可用,id
  151. ConditionByGoods string `xorm:"condition_by_goods" json:"conditionByGoods"` //注释:商品可用,id
  152. GrantCount string `xorm:"grant_count" json:"grantCount"` //注释:发放数量
  153. Count int64 `xorm:"count" json:"count"` //注释:优惠券余量
  154. ReceiveType string `xorm:"receive_type" json:"receiveType"` //注释:领取条件
  155. Validity string `xorm:"validity" json:"validity"` //注释:有效性,领取开始计时(ClaimTiming),固定时间(FixedTime)
  156. ValidityPeriod time.Time `xorm:"validity_period" json:"validityPeriod"` //注释:有效期
  157. }
  158. func (receiver GoodsCoupon) String() string {
  159. return fmt.Sprint("GoodsCoupon{","Id:",receiver.Id,"CouponName:",receiver.CouponName,"CouponDesc:",receiver.CouponDesc,"CashBackPoint:",receiver.CashBackPoint,"CashBackPrice:",receiver.CashBackPrice,"ConditionByTopic:",receiver.ConditionByTopic,"ConditionByType:",receiver.ConditionByType,"ConditionByGoods:",receiver.ConditionByGoods,"GrantCount:",receiver.GrantCount,"Count:",receiver.Count,"ReceiveType:",receiver.ReceiveType,"Validity:",receiver.Validity,"ValidityPeriod:",receiver.ValidityPeriod,"}")
  160. }
  161. type GoodsCouponUser struct {
  162. Id int64 `xorm:"id" json:"id"` //注释:id
  163. UserId int64 `xorm:"user_id" json:"userId"` //注释:用户id
  164. CouponId int64 `xorm:"coupon_id" json:"couponId"` //注释:优惠券id
  165. CollectionTime time.Time `xorm:"collection_time" json:"collectionTime"` //注释:领取时间
  166. State string `xorm:"state" json:"state"` //注释:状态,已使用2,未使用1,已过期0
  167. }
  168. func (receiver GoodsCouponUser) String() string {
  169. return fmt.Sprint("GoodsCouponUser{","Id:",receiver.Id,"UserId:",receiver.UserId,"CouponId:",receiver.CouponId,"CollectionTime:",receiver.CollectionTime,"State:",receiver.State,"}")
  170. }
  171. type GoodsIntroduction struct {
  172. Id int64 `xorm:"id" json:"id"` //注释:文章id
  173. GoodsArticleName string `xorm:"goods_article_name" json:"goodsArticleName"` //注释:商品文章名
  174. GoodsArticle string `xorm:"goods_article" json:"goodsArticle"` //注释:商品文章
  175. CreateBy string `xorm:"create_by" json:"createBy"` //注释:创建人
  176. CreateTime time.Time `xorm:"create_time" json:"createTime"` //注释:创建时间
  177. UpdateBy string `xorm:"update_by" json:"updateBy"` //注释:更新人
  178. UpdateTime time.Time `xorm:"update_time" json:"updateTime"` //注释:更新时间
  179. }
  180. func (receiver GoodsIntroduction) String() string {
  181. return fmt.Sprint("GoodsIntroduction{","Id:",receiver.Id,"GoodsArticleName:",receiver.GoodsArticleName,"GoodsArticle:",receiver.GoodsArticle,"CreateBy:",receiver.CreateBy,"CreateTime:",receiver.CreateTime,"UpdateBy:",receiver.UpdateBy,"UpdateTime:",receiver.UpdateTime,"}")
  182. }
  183. type GoodsOrder struct {
  184. Id int64 `xorm:"id" json:"id"` //注释:id
  185. OrderName string `xorm:"order_name" json:"orderName"` //注释:订单名
  186. SkuId int64 `xorm:"sku_id" json:"skuId"` //注释:skuid
  187. Count int64 `xorm:"count" json:"count"` //注释:购买数量
  188. Price float64 `xorm:"price" json:"price"` //注释:单价
  189. TotalPrice float64 `xorm:"total_price" json:"totalPrice"` //注释:总价
  190. ContactInformation string `xorm:"contact_information" json:"contactInformation"` //注释:联系方式
  191. CouponUserId int64 `xorm:"coupon_user_id" json:"couponUserId"` //注释:使用的优惠券
  192. State string `xorm:"state" json:"state"` //注释:支付状态,0待支付,1待发货,2已发货,3订单完成,4订单异常
  193. CreateBy int64 `xorm:"create_by" json:"createBy"` //注释:用户id
  194. CreateTime time.Time `xorm:"create_time" json:"createTime"` //注释:订单创建时间
  195. }
  196. func (receiver GoodsOrder) String() string {
  197. return fmt.Sprint("GoodsOrder{","Id:",receiver.Id,"OrderName:",receiver.OrderName,"SkuId:",receiver.SkuId,"Count:",receiver.Count,"Price:",receiver.Price,"TotalPrice:",receiver.TotalPrice,"ContactInformation:",receiver.ContactInformation,"CouponUserId:",receiver.CouponUserId,"State:",receiver.State,"CreateBy:",receiver.CreateBy,"CreateTime:",receiver.CreateTime,"}")
  198. }
  199. type GoodsSku struct {
  200. Id int64 `xorm:"id" json:"id"` //注释:
  201. SkuImage string `xorm:"sku_image" json:"skuImage"` //注释:sku图片
  202. SkuName string `xorm:"sku_name" json:"skuName"` //注释:商品sku名字
  203. Price float64 `xorm:"price" json:"price"` //注释:现在价格
  204. HistoricalPrices float64 `xorm:"historical_prices" json:"historicalPrices"` //注释:历史价格
  205. InventoryNumber int64 `xorm:"inventory_number" json:"inventoryNumber"` //注释:库存
  206. CommodityAreaId int64 `xorm:"commodity_area_id" json:"commodityAreaId"` //注释:属地id
  207. GoodsId int64 `xorm:"goods_id" json:"goodsId"` //注释:商品id
  208. CreateBy string `xorm:"create_by" json:"createBy"` //注释:创建人
  209. CreateTime time.Time `xorm:"create_time" json:"createTime"` //注释:创建时间
  210. }
  211. func (receiver GoodsSku) String() string {
  212. return fmt.Sprint("GoodsSku{","Id:",receiver.Id,"SkuImage:",receiver.SkuImage,"SkuName:",receiver.SkuName,"Price:",receiver.Price,"HistoricalPrices:",receiver.HistoricalPrices,"InventoryNumber:",receiver.InventoryNumber,"CommodityAreaId:",receiver.CommodityAreaId,"GoodsId:",receiver.GoodsId,"CreateBy:",receiver.CreateBy,"CreateTime:",receiver.CreateTime,"}")
  213. }
  214. type GoodsSkuCard struct {
  215. Id int64 `xorm:"id" json:"id"` //注释:id
  216. CardName string `xorm:"card_name" json:"cardName"` //注释:卡种名称
  217. State string `xorm:"state" json:"state"` //注释:状态,0未使用,1已用,2过期
  218. Count int64 `xorm:"count" json:"count"` //注释:库存
  219. TotalCount string `xorm:"total_count" json:"totalCount"` //注释:总数
  220. CardKey string `xorm:"card_key" json:"cardKey"` //注释:卡密
  221. Use string `xorm:"use" json:"use"` //注释:是否已用
  222. UploadTime time.Time `xorm:"upload_time" json:"uploadTime"` //注释:入库时间
  223. SkuId int64 `xorm:"sku_id" json:"skuId"` //注释:商品规格绑定
  224. Sort string `xorm:"sort" json:"sort"` //注释:排序,出售优先级
  225. }
  226. func (receiver GoodsSkuCard) String() string {
  227. return fmt.Sprint("GoodsSkuCard{","Id:",receiver.Id,"CardName:",receiver.CardName,"State:",receiver.State,"Count:",receiver.Count,"TotalCount:",receiver.TotalCount,"CardKey:",receiver.CardKey,"Use:",receiver.Use,"UploadTime:",receiver.UploadTime,"SkuId:",receiver.SkuId,"Sort:",receiver.Sort,"}")
  228. }
  229. type GoodsTag struct {
  230. Id int64 `xorm:"id" json:"id"` //注释:id
  231. Name string `xorm:"name" json:"name"` //注释:名字
  232. IconUrl string `xorm:"icon_url" json:"iconUrl"` //注释:图标路径
  233. Tag string `xorm:"tag" json:"tag"` //注释:标签
  234. }
  235. func (receiver GoodsTag) String() string {
  236. return fmt.Sprint("GoodsTag{","Id:",receiver.Id,"Name:",receiver.Name,"IconUrl:",receiver.IconUrl,"Tag:",receiver.Tag,"}")
  237. }
  238. type GoodsType struct {
  239. Id int64 `xorm:"id" json:"id"` //注释:
  240. Sort int64 `xorm:"sort" json:"sort"` //注释:排序
  241. TypeImage string `xorm:"type_image" json:"typeImage"` //注释:类型图片
  242. TypeName string `xorm:"type_name" json:"typeName"` //注释:商品类别名称
  243. CreateTime time.Time `xorm:"create_time" json:"createTime"` //注释:创建时间
  244. }
  245. func (receiver GoodsType) String() string {
  246. return fmt.Sprint("GoodsType{","Id:",receiver.Id,"Sort:",receiver.Sort,"TypeImage:",receiver.TypeImage,"TypeName:",receiver.TypeName,"CreateTime:",receiver.CreateTime,"}")
  247. }
  248. type User struct {
  249. Id int64 `xorm:"id" json:"id"` //注释:
  250. Username string `xorm:"username" json:"username"` //注释:账号
  251. Password string `xorm:"password" json:"password"` //注释:密码
  252. CreationTime int64 `xorm:"creation_time" json:"creationTime"` //注释:账号创建时间
  253. LoginTime int64 `xorm:"login_time" json:"loginTime"` //注释:登录时间
  254. Status string `xorm:"status" json:"status"` //注释:账号状态
  255. RoleId int64 `xorm:"role_id" json:"roleId"` //注释:角色id
  256. Phone string `xorm:"phone" json:"phone"` //注释:手机
  257. Email string `xorm:"email" json:"email"` //注释:邮箱
  258. Name string `xorm:"name" json:"name"` //注释:用户名
  259. Avatar string `xorm:"avatar" json:"avatar"` //注释:头像
  260. RecommendCode string `xorm:"recommend_code" json:"recommendCode"` //注释:推荐码
  261. }
  262. func (receiver User) String() string {
  263. return fmt.Sprint("User{","Id:",receiver.Id,"Username:",receiver.Username,"Password:",receiver.Password,"CreationTime:",receiver.CreationTime,"LoginTime:",receiver.LoginTime,"Status:",receiver.Status,"RoleId:",receiver.RoleId,"Phone:",receiver.Phone,"Email:",receiver.Email,"Name:",receiver.Name,"Avatar:",receiver.Avatar,"RecommendCode:",receiver.RecommendCode,"}")
  264. }
  265. type UserWallet struct {
  266. Id int64 `xorm:"id" json:"id"` //注释:id
  267. UserId int64 `xorm:"user_id" json:"userId"` //注释:用户id
  268. Balance float64 `xorm:"balance" json:"balance"` //注释:余额
  269. PromotionAmount float64 `xorm:"promotion_amount" json:"promotionAmount"` //注释:推广获取总金额
  270. RechargeAmount float64 `xorm:"recharge_amount" json:"rechargeAmount"` //注释:充值金额
  271. }
  272. func (receiver UserWallet) String() string {
  273. return fmt.Sprint("UserWallet{","Id:",receiver.Id,"UserId:",receiver.UserId,"Balance:",receiver.Balance,"PromotionAmount:",receiver.PromotionAmount,"RechargeAmount:",receiver.RechargeAmount,"}")
  274. }
  275. type Authority struct {
  276. Id int64 `xorm:"id" json:"id"` //注释:
  277. AuthorityName string `xorm:"authority_name" json:"authorityName"` //注释:
  278. AuthorityPath string `xorm:"authority_path" json:"authorityPath"` //注释:
  279. }
  280. func (receiver Authority) String() string {
  281. return fmt.Sprint("Authority{","Id:",receiver.Id,"AuthorityName:",receiver.AuthorityName,"AuthorityPath:",receiver.AuthorityPath,"}")
  282. }
  283. type DictData struct {
  284. Id int64 `xorm:"id" json:"id"` //注释:字典编码
  285. Sort int64 `xorm:"sort" json:"sort"` //注释:排序
  286. DictLabel string `xorm:"dict_label" json:"dictLabel"` //注释:字典标签
  287. DictValue string `xorm:"dict_value" json:"dictValue"` //注释:字典键值
  288. DictType string `xorm:"dict_type" json:"dictType"` //注释:字典类型
  289. Status string `xorm:"status" json:"status"` //注释:状态
  290. CssStyle string `xorm:"css_style" json:"cssStyle"` //注释:样式
  291. IsDefault string `xorm:"is_default" json:"isDefault"` //注释:是否默认
  292. Remark string `xorm:"remark" json:"remark"` //注释:备注
  293. }
  294. func (receiver DictData) String() string {
  295. return fmt.Sprint("DictData{","Id:",receiver.Id,"Sort:",receiver.Sort,"DictLabel:",receiver.DictLabel,"DictValue:",receiver.DictValue,"DictType:",receiver.DictType,"Status:",receiver.Status,"CssStyle:",receiver.CssStyle,"IsDefault:",receiver.IsDefault,"Remark:",receiver.Remark,"}")
  296. }
  297. type DictType struct {
  298. Id int64 `xorm:"id" json:"id"` //注释:
  299. DictName string `xorm:"dict_name" json:"dictName"` //注释:字典名称
  300. DictType string `xorm:"dict_type" json:"dictType"` //注释:字典类型
  301. Status string `xorm:"status" json:"status"` //注释:状态(1正常/0停用)
  302. Remark string `xorm:"remark" json:"remark"` //注释:备注
  303. }
  304. func (receiver DictType) String() string {
  305. return fmt.Sprint("DictType{","Id:",receiver.Id,"DictName:",receiver.DictName,"DictType:",receiver.DictType,"Status:",receiver.Status,"Remark:",receiver.Remark,"}")
  306. }
  307. type ManageUser struct {
  308. Id int64 `xorm:"id" json:"id"` //注释:
  309. Name string `xorm:"name" json:"name"` //注释:名称
  310. Username string `xorm:"username" json:"username"` //注释:账号
  311. Password string `xorm:"password" json:"password"` //注释:密码
  312. CreationTime int64 `xorm:"creation_time" json:"creationTime"` //注释:账号创建时间
  313. LoginTime int64 `xorm:"login_time" json:"loginTime"` //注释:登录时间
  314. Status string `xorm:"status" json:"status"` //注释:账号状态
  315. RoleId int64 `xorm:"role_id" json:"roleId"` //注释:角色id
  316. Phone string `xorm:"phone" json:"phone"` //注释:手机
  317. Email string `xorm:"email" json:"email"` //注释:邮箱
  318. Avatar string `xorm:"avatar" json:"avatar"` //注释:头像
  319. }
  320. func (receiver ManageUser) String() string {
  321. return fmt.Sprint("ManageUser{","Id:",receiver.Id,"Name:",receiver.Name,"Username:",receiver.Username,"Password:",receiver.Password,"CreationTime:",receiver.CreationTime,"LoginTime:",receiver.LoginTime,"Status:",receiver.Status,"RoleId:",receiver.RoleId,"Phone:",receiver.Phone,"Email:",receiver.Email,"Avatar:",receiver.Avatar,"}")
  322. }
  323. type ShopAdviceCarousel struct {
  324. Id int64 `xorm:"id" json:"id"` //注释:
  325. Name string `xorm:"name" json:"name"` //注释:广告名称
  326. ToId int64 `xorm:"to_id" json:"toId"` //注释:目标id
  327. AdviceType string `xorm:"advice_type" json:"adviceType"` //注释:广告类型
  328. Sort string `xorm:"sort" json:"sort"` //注释:排序
  329. State string `xorm:"state" json:"state"` //注释:状态
  330. ShowType string `xorm:"show_type" json:"showType"` //注释:显示类型
  331. CreateBy string `xorm:"create_by" json:"createBy"` //注释:创建人
  332. CreateTime time.Time `xorm:"create_time" json:"createTime"` //注释:创建时间
  333. UpdateBy string `xorm:"update_by" json:"updateBy"` //注释:更新人
  334. UpdateTime time.Time `xorm:"update_time" json:"updateTime"` //注释:更新时间
  335. }
  336. func (receiver ShopAdviceCarousel) String() string {
  337. return fmt.Sprint("ShopAdviceCarousel{","Id:",receiver.Id,"Name:",receiver.Name,"ToId:",receiver.ToId,"AdviceType:",receiver.AdviceType,"Sort:",receiver.Sort,"State:",receiver.State,"ShowType:",receiver.ShowType,"CreateBy:",receiver.CreateBy,"CreateTime:",receiver.CreateTime,"UpdateBy:",receiver.UpdateBy,"UpdateTime:",receiver.UpdateTime,"}")
  338. }
  339. type ShopTopic struct {
  340. Id int64 `xorm:"id" json:"id"` //注释:
  341. Sort string `xorm:"sort" json:"sort"` //注释:
  342. ParentId int64 `xorm:"parent_id" json:"parentId"` //注释:父级id
  343. TopicPageImage string `xorm:"topic_page_image" json:"topicPageImage"` //注释:主题首页图片
  344. TopicName string `xorm:"topic_name" json:"topicName"` //注释:主题名称
  345. TopicDesc string `xorm:"topic_desc" json:"topicDesc"` //注释:主题描述
  346. TypeIds string `xorm:"type_ids" json:"typeIds"` //注释:商品类型id
  347. }
  348. func (receiver ShopTopic) String() string {
  349. return fmt.Sprint("ShopTopic{","Id:",receiver.Id,"Sort:",receiver.Sort,"ParentId:",receiver.ParentId,"TopicPageImage:",receiver.TopicPageImage,"TopicName:",receiver.TopicName,"TopicDesc:",receiver.TopicDesc,"TypeIds:",receiver.TypeIds,"}")
  350. }
  351. type ShopTopicSku struct {
  352. Id int64 `xorm:"id" json:"id"` //注释:
  353. TopicId int64 `xorm:"topic_id" json:"topicId"` //注释:
  354. SkuId int64 `xorm:"sku_id" json:"skuId"` //注释:
  355. }
  356. func (receiver ShopTopicSku) String() string {
  357. return fmt.Sprint("ShopTopicSku{","Id:",receiver.Id,"TopicId:",receiver.TopicId,"SkuId:",receiver.SkuId,"}")
  358. }
  359. type ShopAdviceCarousel struct {
  360. Id int64 `xorm:"id" json:"id"` //注释:
  361. Name string `xorm:"name" json:"name"` //注释:广告名称
  362. ToId int64 `xorm:"to_id" json:"toId"` //注释:目标id
  363. AdviceType string `xorm:"advice_type" json:"adviceType"` //注释:广告类型,用于跳转到对应的页面
  364. Sort string `xorm:"sort" json:"sort"` //注释:排序
  365. State string `xorm:"state" json:"state"` //注释:状态
  366. ShowType string `xorm:"show_type" json:"showType"` //注释:显示类型,carousel轮播图,package,礼包
  367. CreateBy string `xorm:"create_by" json:"createBy"` //注释:创建人
  368. CreateTime time.Time `xorm:"create_time" json:"createTime"` //注释:创建时间
  369. UpdateBy string `xorm:"update_by" json:"updateBy"` //注释:更新人
  370. UpdateTime time.Time `xorm:"update_time" json:"updateTime"` //注释:更新时间
  371. ImageUrl string `xorm:"image_url" json:"imageUrl"` //注释:图片
  372. ToType string `xorm:"to_type" json:"toType"` //注释:目标类型
  373. }
  374. func (receiver ShopAdviceCarousel) String() string {
  375. return fmt.Sprint("ShopAdviceCarousel{","Id:",receiver.Id,"Name:",receiver.Name,"ToId:",receiver.ToId,"AdviceType:",receiver.AdviceType,"Sort:",receiver.Sort,"State:",receiver.State,"ShowType:",receiver.ShowType,"CreateBy:",receiver.CreateBy,"CreateTime:",receiver.CreateTime,"UpdateBy:",receiver.UpdateBy,"UpdateTime:",receiver.UpdateTime,"ImageUrl:",receiver.ImageUrl,"ToType:",receiver.ToType,"}")
  376. }
  377. type ShopTopicSku struct {
  378. Id int64 `xorm:"id" json:"id"` //注释:
  379. TopicId int64 `xorm:"topic_id" json:"topicId"` //注释:
  380. SkuId int64 `xorm:"sku_id" json:"skuId"` //注释:
  381. }
  382. func (receiver ShopTopicSku) String() string {
  383. return fmt.Sprint("ShopTopicSku{","Id:",receiver.Id,"TopicId:",receiver.TopicId,"SkuId:",receiver.SkuId,"}")
  384. }
  385. type Authority struct {
  386. }
  387. func (receiver Authority) String() string {
  388. return fmt.Sprint("Authority{","}")
  389. }