Query.go 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  1. package domain
  2. type ArticleQuery struct {
  3. Id int64 `xorm:"id" json:"id"` // id
  4. ArticleTitle string `xorm:"article_title" json:"articleTitle"` // 文章名称
  5. ArticleContent string `xorm:"article_content" json:"articleContent"` // 文章内容
  6. State string `xorm:"state" json:"state"` // 状态
  7. ArticleTagIds string `xorm:"article_tag_ids" json:"articleTagIds"` // 文章标签
  8. ArticleTopicId int64 `xorm:"article_topic_id" json:"articleTopicId"` // 文章主题id
  9. Image string `xorm:"image" json:"image"` // 图片
  10. PublishTimeStart string `xorm:"publish_time" json:"publishTime"` // 发表时间
  11. PublishTimeEnd string `xorm:"publish_time" json:"publishTime"` // 发表时间
  12. EyeFillStart int64 `xorm:"eye_fill" json:"eyeFill"` // 浏览量
  13. EyeFillEnd int64 `xorm:"eye_fill" json:"eyeFill"` // 浏览量
  14. LikeCountStart int64 `xorm:"like_count" json:"likeCount"` // 点赞量
  15. LikeCountEnd int64 `xorm:"like_count" json:"likeCount"` // 点赞量
  16. CreateBy string `xorm:"create_by" json:"createBy"` // 创建人
  17. CreateTime string `xorm:"create_time" json:"createTime"` // 创建时间
  18. UpdateBy string `xorm:"update_by" json:"updateBy"` // 更新人
  19. UpdateTime string `xorm:"update_time" json:"updateTime"` // 更新时间
  20. ArticleDesc string `xorm:"article_desc" json:"articleDesc"` // 文章简介
  21. }
  22. type ArticleTagQuery struct {
  23. Id int64 `xorm:"id" json:"id"` //
  24. TagName string `xorm:"tag_name" json:"tagName"` // 标签名
  25. TagDesc string `xorm:"tag_desc" json:"tagDesc"` // 标签描述
  26. TagTextColor string `xorm:"tag_text_color" json:"tagTextColor"` // 标签字体颜色
  27. TagBackgroundColor string `xorm:"tag_background_color" json:"tagBackgroundColor"` // 标签背景颜色
  28. }
  29. type ArticleTopicQuery struct {
  30. Id int64 `xorm:"id" json:"id"` //
  31. Image string `xorm:"image" json:"image"` // 图片
  32. TopicName string `xorm:"topic_name" json:"topicName"` // 主题名称
  33. TopicDesc string `xorm:"topic_desc" json:"topicDesc"` // 主题描述
  34. }
  35. type BackAuthorityQuery struct {
  36. Id int64 `xorm:"id" json:"id"` // id
  37. AuthorityName string `xorm:"authority_name" json:"authorityName"` // 接口名
  38. AuthorityPath string `xorm:"authority_path" json:"authorityPath"` // 接口路径
  39. Method string `xorm:"method" json:"method"` // 方法
  40. State string `xorm:"state" json:"state"` // 接口是否启用(0关闭,1启用)
  41. AuthorityVerification string `xorm:"authority_verification" json:"authorityVerification"` // 权限校验
  42. CreateTimeStart string `xorm:"create_time" json:"createTime"` // 创建时间
  43. CreateTimeEnd string `xorm:"create_time" json:"createTime"` // 创建时间
  44. }
  45. type BackMenuQuery struct {
  46. Id int64 `xorm:"id" json:"id"` // id
  47. BackMenuName string `xorm:"back_menu_name" json:"backMenuName"` // 菜单名称
  48. BackMenuPater int64 `xorm:"back_menu_pater" json:"backMenuPater"` // 父级菜单
  49. Sort int64 `xorm:"sort" json:"sort"` // 排序
  50. Icon string `xorm:"icon" json:"icon"` // 图标
  51. Remark string `xorm:"remark" json:"remark"` // 备注
  52. BackRouterPath string `xorm:"back_router_path" json:"backRouterPath"` // 路由路径
  53. State string `xorm:"state" json:"state"` // 状态
  54. }
  55. type BackRoleQuery struct {
  56. Id int64 `xorm:"id" json:"id"` //
  57. RoleName string `xorm:"role_name" json:"roleName"` //
  58. }
  59. type BackRoleAuthorityQuery struct {
  60. Id int64 `xorm:"id" json:"id"` //
  61. RoleId int64 `xorm:"role_id" json:"roleId"` // 角色id
  62. AuthorityId int64 `xorm:"authority_id" json:"authorityId"` // 权限id
  63. }
  64. type BackRoleMenuQuery struct {
  65. Id int64 `xorm:"id" json:"id"` //
  66. RoleId int64 `xorm:"role_id" json:"roleId"` // 角色id
  67. MenuId int64 `xorm:"menu_id" json:"menuId"` // 枚舉id
  68. }
  69. type GenTableQuery struct {
  70. Id int64 `xorm:"id" json:"id"` // id
  71. TableName string `xorm:"table_name" json:"tableName"` // 数据库名
  72. TableComment string `xorm:"table_comment" json:"tableComment"` // 数据库注释
  73. Name string `xorm:"name" json:"name"` // 名字
  74. RouterName string `xorm:"router_name" json:"routerName"` // 路由名
  75. Remark string `xorm:"remark" json:"remark"` // 备注
  76. }
  77. type GenTableColumnQuery struct {
  78. Id int64 `xorm:"id" json:"id"` // id
  79. TableId int64 `xorm:"table_id" json:"tableId"` // 表格id
  80. Sort int64 `xorm:"sort" json:"sort"` // 排序
  81. ColumnComment string `xorm:"column_comment" json:"columnComment"` // 字段注释
  82. ColumnType string `xorm:"column_type" json:"columnType"` // 字段类型
  83. GoType string `xorm:"go_type" json:"goType"` // go类型
  84. GoField string `xorm:"go_field" json:"goField"` // go字段名
  85. IsKey string `xorm:"is_key" json:"isKey"` // 是否主键
  86. IsIncrement string `xorm:"is_increment" json:"isIncrement"` // 是否自增
  87. IsRequired string `xorm:"is_required" json:"isRequired"` // 是否未必填
  88. QueryType string `xorm:"query_type" json:"queryType"` // 查询方式
  89. VueShowType string `xorm:"vue_show_type" json:"vueShowType"` // 前端显示类型
  90. DictType string `xorm:"dict_type" json:"dictType"` // 字典类型
  91. ColumnName string `xorm:"column_name" json:"columnName"` // 字段名
  92. }
  93. type GoodsQuery struct {
  94. Id int64 `xorm:"id" json:"id"` // id
  95. TypeId int64 `xorm:"type_id" json:"typeId"` // 分类id
  96. GoodsName string `xorm:"goods_name" json:"goodsName"` // 商品名字
  97. ImageUrl string `xorm:"image_url" json:"imageUrl"` // 商品名字
  98. IntroductionId int64 `xorm:"introduction_id" json:"introductionId"` // 商品介绍id
  99. SalesVolumeStart int64 `xorm:"sales_volume" json:"salesVolume"` // 近30天销量
  100. SalesVolumeEnd int64 `xorm:"sales_volume" json:"salesVolume"` // 近30天销量
  101. TagIds string `xorm:"tag_ids" json:"tagIds"` // 商品标签
  102. }
  103. type GoodsCommodityAreaQuery struct {
  104. Id int64 `xorm:"id" json:"id"` // id
  105. GoodsId int64 `xorm:"goods_id" json:"goodsId"` // 商品id
  106. CommodityAreaName string `xorm:"commodity_area_name" json:"commodityAreaName"` // 商品属地名称
  107. DetailImage string `xorm:"detail_image" json:"detailImage"` // 详情图片
  108. DetailIntroductionId int64 `xorm:"detail_introduction_id" json:"detailIntroductionId"` // 相关文本详情id
  109. }
  110. type GoodsCouponQuery struct {
  111. Id int64 `xorm:"id" json:"id"` // id
  112. CouponName string `xorm:"coupon_name" json:"couponName"` // 优惠券名称
  113. CouponDesc string `xorm:"coupon_desc" json:"couponDesc"` // 优惠券描述
  114. CashBackPoint float64 `xorm:"cash_back_point" json:"cashBackPoint"` // 满x
  115. CashBackPrice float64 `xorm:"cash_back_price" json:"cashBackPrice"` // 减x
  116. ConditionByTopic string `xorm:"condition_by_topic" json:"conditionByTopic"` // 主题可用,id
  117. ConditionByType string `xorm:"condition_by_type" json:"conditionByType"` // 类型可用,id
  118. ConditionByGoods string `xorm:"condition_by_goods" json:"conditionByGoods"` // 商品可用,id
  119. GrantCount string `xorm:"grant_count" json:"grantCount"` // 发放数量
  120. Count int64 `xorm:"count" json:"count"` // 优惠券余量
  121. ReceiveType string `xorm:"receive_type" json:"receiveType"` // 领取条件
  122. Validity string `xorm:"validity" json:"validity"` // 有效性,领取开始计时(ClaimTiming),固定时间(FixedTime)
  123. ValidityPeriodStart string `xorm:"validity_period" json:"validityPeriod"` // 有效期
  124. ValidityPeriodEnd string `xorm:"validity_period" json:"validityPeriod"` // 有效期
  125. }
  126. type GoodsCouponUserQuery struct {
  127. Id int64 `xorm:"id" json:"id"` // id
  128. UserId int64 `xorm:"user_id" json:"userId"` // 用户id
  129. CouponId int64 `xorm:"coupon_id" json:"couponId"` // 优惠券id
  130. CollectionTime string `xorm:"collection_time" json:"collectionTime"` // 领取时间
  131. State string `xorm:"state" json:"state"` // 状态,已使用2,未使用1,已过期0
  132. }
  133. type GoodsIntroductionQuery struct {
  134. Id int64 `xorm:"id" json:"id"` // 文章id
  135. GoodsArticleName string `xorm:"goods_article_name" json:"goodsArticleName"` // 商品文章名
  136. GoodsArticle string `xorm:"goods_article" json:"goodsArticle"` // 商品文章
  137. CreateBy string `xorm:"create_by" json:"createBy"` // 创建人
  138. CreateTime string `xorm:"create_time" json:"createTime"` // 创建时间
  139. UpdateBy string `xorm:"update_by" json:"updateBy"` // 更新人
  140. UpdateTime string `xorm:"update_time" json:"updateTime"` // 更新时间
  141. }
  142. type GoodsOrderQuery struct {
  143. Id int64 `xorm:"id" json:"id"` // id
  144. OrderName string `xorm:"order_name" json:"orderName"` // 订单名
  145. SkuId int64 `xorm:"sku_id" json:"skuId"` // skuid
  146. CountStart int64 `xorm:"count" json:"count"` // 购买数量
  147. CountEnd int64 `xorm:"count" json:"count"` // 购买数量
  148. PriceStart float64 `xorm:"price" json:"price"` // 单价
  149. PriceEnd float64 `xorm:"price" json:"price"` // 单价
  150. TotalPriceStart float64 `xorm:"total_price" json:"totalPrice"` // 总价
  151. TotalPriceEnd float64 `xorm:"total_price" json:"totalPrice"` // 总价
  152. ContactInformation string `xorm:"contact_information" json:"contactInformation"` // 联系方式
  153. CouponUserId int64 `xorm:"coupon_user_id" json:"couponUserId"` // 使用的优惠券
  154. State string `xorm:"state" json:"state"` // 支付状态,0待支付,1待发货,2已发货,3订单完成,4订单异常
  155. CreateBy int64 `xorm:"create_by" json:"createBy"` // 用户id
  156. CreateTime string `xorm:"create_time" json:"createTime"` // 订单创建时间
  157. OtherData string `xorm:"other_data" json:"otherData"` // 其他数据
  158. }
  159. type GoodsSkuQuery struct {
  160. Id int64 `xorm:"id" json:"id"` //
  161. SkuImage string `xorm:"sku_image" json:"skuImage"` // sku图片
  162. SkuName string `xorm:"sku_name" json:"skuName"` // 商品sku名字
  163. Price float64 `xorm:"price" json:"price"` // 现在价格
  164. HistoricalPrices float64 `xorm:"historical_prices" json:"historicalPrices"` // 历史价格
  165. InventoryNumber int64 `xorm:"inventory_number" json:"inventoryNumber"` // 库存
  166. CommodityAreaId int64 `xorm:"commodity_area_id" json:"commodityAreaId"` // 属地id
  167. GoodsId int64 `xorm:"goods_id" json:"goodsId"` // 商品id
  168. CreateBy string `xorm:"create_by" json:"createBy"` // 创建人
  169. CreateTimeStart string `xorm:"create_time" json:"createTime"` // 创建时间
  170. CreateTimeEnd string `xorm:"create_time" json:"createTime"` // 创建时间
  171. Sort int64 `xorm:"sort" json:"sort"` // 排序
  172. SeoTitle string `xorm:"seo_title" json:"seoTitle"` // seo_标题
  173. SeoKeywords string `xorm:"seo_keywords" json:"seoKeywords"` // seo_关键字
  174. SeoDescription string `xorm:"seo_description" json:"seoDescription"` // seo_描述
  175. }
  176. type GoodsSkuCardQuery struct {
  177. Id int64 `xorm:"id" json:"id"` // id
  178. CardName string `xorm:"card_name" json:"cardName"` // 卡种名称
  179. State string `xorm:"state" json:"state"` // 状态,0未使用,1已用,2过期
  180. Count int64 `xorm:"count" json:"count"` // 库存
  181. TotalCount string `xorm:"total_count" json:"totalCount"` // 总数
  182. CardKey string `xorm:"card_key" json:"cardKey"` // 卡密
  183. Use string `xorm:"use" json:"use"` // 是否已用
  184. UploadTimeStart string `xorm:"upload_time" json:"uploadTime"` // 入库时间
  185. UploadTimeEnd string `xorm:"upload_time" json:"uploadTime"` // 入库时间
  186. SkuId int64 `xorm:"sku_id" json:"skuId"` // 商品规格绑定
  187. Sort string `xorm:"sort" json:"sort"` // 排序,出售优先级
  188. }
  189. type GoodsTagQuery struct {
  190. Id int64 `xorm:"id" json:"id"` // id
  191. Name string `xorm:"name" json:"name"` // 名字
  192. IconUrl string `xorm:"icon_url" json:"iconUrl"` // 图标路径
  193. Tag string `xorm:"tag" json:"tag"` // 标签
  194. }
  195. type GoodsTypeQuery struct {
  196. Id int64 `xorm:"id" json:"id"` //
  197. Sort int64 `xorm:"sort" json:"sort"` // 排序
  198. TypeImage string `xorm:"type_image" json:"typeImage"` // 类型图片
  199. TypeName string `xorm:"type_name" json:"typeName"` // 商品类别名称
  200. CreateTimeStart string `xorm:"create_time" json:"createTime"` // 创建时间
  201. CreateTimeEnd string `xorm:"create_time" json:"createTime"` // 创建时间
  202. }
  203. type UserQuery struct {
  204. Id int64 `xorm:"id" json:"id"` //
  205. Username string `xorm:"username" json:"username"` // 账号
  206. Password string `xorm:"password" json:"password"` // 密码
  207. CreationTime int64 `xorm:"creation_time" json:"creationTime"` // 账号创建时间
  208. LoginTime int64 `xorm:"login_time" json:"loginTime"` // 登录时间
  209. Status string `xorm:"status" json:"status"` // 账号状态
  210. RoleId int64 `xorm:"role_id" json:"roleId"` // 角色id
  211. Phone string `xorm:"phone" json:"phone"` // 手机
  212. Email string `xorm:"email" json:"email"` // 邮箱
  213. Name string `xorm:"name" json:"name"` // 用户名
  214. Avatar string `xorm:"avatar" json:"avatar"` // 头像
  215. RecommendCode string `xorm:"recommend_code" json:"recommendCode"` // 推荐码
  216. InviterBy int64 `xorm:"inviter_by" json:"inviterBy"` // 邀请人
  217. }
  218. type UserWalletQuery struct {
  219. Id int64 `xorm:"id" json:"id"` // id
  220. UserId int64 `xorm:"user_id" json:"userId"` // 用户id
  221. BalanceStart float64 `xorm:"balance" json:"balance"` // 余额
  222. BalanceEnd float64 `xorm:"balance" json:"balance"` // 余额
  223. PromotionAmountStart float64 `xorm:"promotion_amount" json:"promotionAmount"` // 推广获取总金额
  224. PromotionAmountEnd float64 `xorm:"promotion_amount" json:"promotionAmount"` // 推广获取总金额
  225. RechargeAmountStart float64 `xorm:"recharge_amount" json:"rechargeAmount"` // 充值金额
  226. RechargeAmountEnd float64 `xorm:"recharge_amount" json:"rechargeAmount"` // 充值金额
  227. }
  228. type DictDataQuery struct {
  229. Id int64 `xorm:"id" json:"id"` // 字典编码
  230. Sort int64 `xorm:"sort" json:"sort"` // 排序
  231. DictLabel string `xorm:"dict_label" json:"dictLabel"` // 字典标签
  232. DictValue string `xorm:"dict_value" json:"dictValue"` // 字典键值
  233. DictType string `xorm:"dict_type" json:"dictType"` // 字典类型
  234. Status string `xorm:"status" json:"status"` // 状态
  235. CssStyle string `xorm:"css_style" json:"cssStyle"` // 样式
  236. IsDefault string `xorm:"is_default" json:"isDefault"` // 是否默认
  237. Remark string `xorm:"remark" json:"remark"` // 备注
  238. }
  239. type DictTypeQuery struct {
  240. Id int64 `xorm:"id" json:"id"` //
  241. DictName string `xorm:"dict_name" json:"dictName"` // 字典名称
  242. DictType string `xorm:"dict_type" json:"dictType"` // 字典类型
  243. Status string `xorm:"status" json:"status"` // 状态(1正常/0停用)
  244. Remark string `xorm:"remark" json:"remark"` // 备注
  245. }
  246. type ShopTopicQuery struct {
  247. Id int64 `xorm:"id" json:"id"` //
  248. Sort string `xorm:"sort" json:"sort"` // 排序
  249. ParentId int64 `xorm:"parent_id" json:"parentId"` // 父级id
  250. TopicPageImage string `xorm:"topic_page_image" json:"topicPageImage"` // 主题首页图片
  251. TopicName string `xorm:"topic_name" json:"topicName"` // 主题名称
  252. TopicDesc string `xorm:"topic_desc" json:"topicDesc"` // 主题描述
  253. TypeIds string `xorm:"type_ids" json:"typeIds"` // 商品类型id
  254. }
  255. type ShopAdviceCarouselQuery struct {
  256. Id int64 `xorm:"id" json:"id"` //
  257. Name string `xorm:"name" json:"name"` // 广告名称
  258. ToId int64 `xorm:"to_id" json:"toId"` // 目标id
  259. AdviceType string `xorm:"advice_type" json:"adviceType"` // 广告类型,用于跳转到对应的页面
  260. Sort string `xorm:"sort" json:"sort"` // 排序
  261. State string `xorm:"state" json:"state"` // 状态
  262. ShowType string `xorm:"show_type" json:"showType"` // 显示类型,carousel轮播图,package,礼包
  263. CreateBy string `xorm:"create_by" json:"createBy"` // 创建人
  264. CreateTime string `xorm:"create_time" json:"createTime"` // 创建时间
  265. UpdateBy string `xorm:"update_by" json:"updateBy"` // 更新人
  266. UpdateTime string `xorm:"update_time" json:"updateTime"` // 更新时间
  267. ImageUrl string `xorm:"image_url" json:"imageUrl"` // 图片
  268. ToType string `xorm:"to_type" json:"toType"` // 目标类型
  269. }
  270. type ShopTopicSkuQuery struct {
  271. Id int64 `xorm:"id" json:"id"` //
  272. TopicId int64 `xorm:"topic_id" json:"topicId"` //
  273. SkuId int64 `xorm:"sku_id" json:"skuId"` //
  274. }