Query.go 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  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. IntroductionId int64 `xorm:"introduction_id" json:"introductionId"` // 商品介绍id
  98. SalesVolumeStart int64 `xorm:"sales_volume" json:"salesVolume"` // 近30天销量
  99. SalesVolumeEnd int64 `xorm:"sales_volume" json:"salesVolume"` // 近30天销量
  100. TagIds string `xorm:"tag_ids" json:"tagIds"` // 商品标签
  101. }
  102. type GoodsCommodityAreaQuery struct {
  103. Id int64 `xorm:"id" json:"id"` // id
  104. GoodsId int64 `xorm:"goods_id" json:"goodsId"` // 商品id
  105. CommodityAreaName string `xorm:"commodity_area_name" json:"commodityAreaName"` // 商品属地名称
  106. DetailImage string `xorm:"detail_image" json:"detailImage"` // 详情图片
  107. DetailIntroductionId int64 `xorm:"detail_introduction_id" json:"detailIntroductionId"` // 相关文本详情id
  108. }
  109. type GoodsCouponQuery struct {
  110. Id int64 `xorm:"id" json:"id"` // id
  111. CouponName string `xorm:"coupon_name" json:"couponName"` // 优惠券名称
  112. CouponDesc string `xorm:"coupon_desc" json:"couponDesc"` // 优惠券描述
  113. CashBackPoint float64 `xorm:"cash_back_point" json:"cashBackPoint"` // 满x
  114. CashBackPrice float64 `xorm:"cash_back_price" json:"cashBackPrice"` // 减x
  115. ConditionByTopic string `xorm:"condition_by_topic" json:"conditionByTopic"` // 主题可用,id
  116. ConditionByType string `xorm:"condition_by_type" json:"conditionByType"` // 类型可用,id
  117. ConditionByGoods string `xorm:"condition_by_goods" json:"conditionByGoods"` // 商品可用,id
  118. GrantCount string `xorm:"grant_count" json:"grantCount"` // 发放数量
  119. Count int64 `xorm:"count" json:"count"` // 优惠券余量
  120. ReceiveType string `xorm:"receive_type" json:"receiveType"` // 领取条件
  121. Validity string `xorm:"validity" json:"validity"` // 有效性,领取开始计时(ClaimTiming),固定时间(FixedTime)
  122. ValidityPeriodStart string `xorm:"validity_period" json:"validityPeriod"` // 有效期
  123. ValidityPeriodEnd string `xorm:"validity_period" json:validityPeriod"` // 有效期
  124. }
  125. type GoodsCouponUserQuery struct {
  126. Id int64 `xorm:"id" json:"id"` // id
  127. UserId int64 `xorm:"user_id" json:"userId"` // 用户id
  128. CouponId int64 `xorm:"coupon_id" json:"couponId"` // 优惠券id
  129. CollectionTime string `xorm:"collection_time" json:"collectionTime"` // 领取时间
  130. State string `xorm:"state" json:"state"` // 状态,已使用2,未使用1,已过期0
  131. }
  132. type GoodsIntroductionQuery struct {
  133. Id int64 `xorm:"id" json:"id"` // 文章id
  134. GoodsArticleName string `xorm:"goods_article_name" json:"goodsArticleName"` // 商品文章名
  135. GoodsArticle string `xorm:"goods_article" json:"goodsArticle"` // 商品文章
  136. CreateBy string `xorm:"create_by" json:"createBy"` // 创建人
  137. CreateTime string `xorm:"create_time" json:"createTime"` // 创建时间
  138. UpdateBy string `xorm:"update_by" json:"updateBy"` // 更新人
  139. UpdateTime string `xorm:"update_time" json:"updateTime"` // 更新时间
  140. }
  141. type GoodsOrderQuery struct {
  142. Id int64 `xorm:"id" json:"id"` // id
  143. OrderName string `xorm:"order_name" json:"orderName"` // 订单名
  144. SkuId int64 `xorm:"sku_id" json:"skuId"` // skuid
  145. CountStart int64 `xorm:"count" json:"count"` // 购买数量
  146. CountEnd int64 `xorm:"count" json:"count"` // 购买数量
  147. PriceStart float64 `xorm:"price" json:"price"` // 单价
  148. PriceEnd float64 `xorm:"price" json:"price"` // 单价
  149. TotalPriceStart float64 `xorm:"total_price" json:"totalPrice"` // 总价
  150. TotalPriceEnd float64 `xorm:"total_price" json:"totalPrice"` // 总价
  151. ContactInformation string `xorm:"contact_information" json:"contactInformation"` // 联系方式
  152. CouponUserId int64 `xorm:"coupon_user_id" json:"couponUserId"` // 使用的优惠券
  153. State string `xorm:"state" json:"state"` // 支付状态,0待支付,1待发货,2已发货,3订单完成,4订单异常
  154. CreateBy int64 `xorm:"create_by" json:"createBy"` // 用户id
  155. CreateTime string `xorm:"create_time" json:"createTime"` // 订单创建时间
  156. OtherData string `xorm:"other_data" json:"otherData"` // 其他数据
  157. }
  158. type GoodsSkuQuery struct {
  159. Id int64 `xorm:"id" json:"id"` //
  160. SkuImage string `xorm:"sku_image" json:"skuImage"` // sku图片
  161. SkuName string `xorm:"sku_name" json:"skuName"` // 商品sku名字
  162. Price float64 `xorm:"price" json:"price"` // 现在价格
  163. HistoricalPrices float64 `xorm:"historical_prices" json:"historicalPrices"` // 历史价格
  164. InventoryNumber int64 `xorm:"inventory_number" json:"inventoryNumber"` // 库存
  165. CommodityAreaId int64 `xorm:"commodity_area_id" json:"commodityAreaId"` // 属地id
  166. GoodsId int64 `xorm:"goods_id" json:"goodsId"` // 商品id
  167. CreateBy string `xorm:"create_by" json:"createBy"` // 创建人
  168. CreateTimeStart string `xorm:"create_time" json:"createTime"` // 创建时间
  169. CreateTimeEnd string `xorm:"create_time" json:createTime"` // 创建时间
  170. }
  171. type GoodsSkuCardQuery struct {
  172. Id int64 `xorm:"id" json:"id"` // id
  173. CardName string `xorm:"card_name" json:"cardName"` // 卡种名称
  174. State string `xorm:"state" json:"state"` // 状态,0未使用,1已用,2过期
  175. Count int64 `xorm:"count" json:"count"` // 库存
  176. TotalCount string `xorm:"total_count" json:"totalCount"` // 总数
  177. CardKey string `xorm:"card_key" json:"cardKey"` // 卡密
  178. Use string `xorm:"use" json:"use"` // 是否已用
  179. UploadTimeStart string `xorm:"upload_time" json:"uploadTime"` // 入库时间
  180. UploadTimeEnd string `xorm:"upload_time" json:uploadTime"` // 入库时间
  181. SkuId int64 `xorm:"sku_id" json:"skuId"` // 商品规格绑定
  182. Sort string `xorm:"sort" json:"sort"` // 排序,出售优先级
  183. }
  184. type GoodsTagQuery struct {
  185. Id int64 `xorm:"id" json:"id"` // id
  186. Name string `xorm:"name" json:"name"` // 名字
  187. IconUrl string `xorm:"icon_url" json:"iconUrl"` // 图标路径
  188. Tag string `xorm:"tag" json:"tag"` // 标签
  189. }
  190. type GoodsTypeQuery struct {
  191. Id int64 `xorm:"id" json:"id"` //
  192. Sort int64 `xorm:"sort" json:"sort"` // 排序
  193. TypeImage string `xorm:"type_image" json:"typeImage"` // 类型图片
  194. TypeName string `xorm:"type_name" json:"typeName"` // 商品类别名称
  195. CreateTimeStart string `xorm:"create_time" json:"createTime"` // 创建时间
  196. CreateTimeEnd string `xorm:"create_time" json:createTime"` // 创建时间
  197. }
  198. type UserQuery struct {
  199. Id int64 `xorm:"id" json:"id"` //
  200. Username string `xorm:"username" json:"username"` // 账号
  201. Password string `xorm:"password" json:"password"` // 密码
  202. CreationTime int64 `xorm:"creation_time" json:"creationTime"` // 账号创建时间
  203. LoginTime int64 `xorm:"login_time" json:"loginTime"` // 登录时间
  204. Status string `xorm:"status" json:"status"` // 账号状态
  205. RoleId int64 `xorm:"role_id" json:"roleId"` // 角色id
  206. Phone string `xorm:"phone" json:"phone"` // 手机
  207. Email string `xorm:"email" json:"email"` // 邮箱
  208. Name string `xorm:"name" json:"name"` // 用户名
  209. Avatar string `xorm:"avatar" json:"avatar"` // 头像
  210. RecommendCode string `xorm:"recommend_code" json:"recommendCode"` // 推荐码
  211. InviterBy int64 `xorm:"inviter_by" json:"inviterBy"` // 邀请人
  212. }
  213. type UserWalletQuery struct {
  214. Id int64 `xorm:"id" json:"id"` // id
  215. UserId int64 `xorm:"user_id" json:"userId"` // 用户id
  216. BalanceStart float64 `xorm:"balance" json:"balance"` // 余额
  217. BalanceEnd float64 `xorm:"balance" json:"balance"` // 余额
  218. PromotionAmountStart float64 `xorm:"promotion_amount" json:"promotionAmount"` // 推广获取总金额
  219. PromotionAmountEnd float64 `xorm:"promotion_amount" json:"promotionAmount"` // 推广获取总金额
  220. RechargeAmountStart float64 `xorm:"recharge_amount" json:"rechargeAmount"` // 充值金额
  221. RechargeAmountEnd float64 `xorm:"recharge_amount" json:"rechargeAmount"` // 充值金额
  222. }
  223. type DictDataQuery struct {
  224. Id int64 `xorm:"id" json:"id"` // 字典编码
  225. Sort int64 `xorm:"sort" json:"sort"` // 排序
  226. DictLabel string `xorm:"dict_label" json:"dictLabel"` // 字典标签
  227. DictValue string `xorm:"dict_value" json:"dictValue"` // 字典键值
  228. DictType string `xorm:"dict_type" json:"dictType"` // 字典类型
  229. Status string `xorm:"status" json:"status"` // 状态
  230. CssStyle string `xorm:"css_style" json:"cssStyle"` // 样式
  231. IsDefault string `xorm:"is_default" json:"isDefault"` // 是否默认
  232. Remark string `xorm:"remark" json:"remark"` // 备注
  233. }
  234. type DictTypeQuery struct {
  235. Id int64 `xorm:"id" json:"id"` //
  236. DictName string `xorm:"dict_name" json:"dictName"` // 字典名称
  237. DictType string `xorm:"dict_type" json:"dictType"` // 字典类型
  238. Status string `xorm:"status" json:"status"` // 状态(1正常/0停用)
  239. Remark string `xorm:"remark" json:"remark"` // 备注
  240. }
  241. type ShopTopicQuery struct {
  242. Id int64 `xorm:"id" json:"id"` //
  243. Sort string `xorm:"sort" json:"sort"` // 排序
  244. ParentId int64 `xorm:"parent_id" json:"parentId"` // 父级id
  245. TopicPageImage string `xorm:"topic_page_image" json:"topicPageImage"` // 主题首页图片
  246. TopicName string `xorm:"topic_name" json:"topicName"` // 主题名称
  247. TopicDesc string `xorm:"topic_desc" json:"topicDesc"` // 主题描述
  248. TypeIds string `xorm:"type_ids" json:"typeIds"` // 商品类型id
  249. }
  250. type ShopAdviceCarouselQuery struct {
  251. Id int64 `xorm:"id" json:"id"` //
  252. Name string `xorm:"name" json:"name"` // 广告名称
  253. ToId int64 `xorm:"to_id" json:"toId"` // 目标id
  254. AdviceType string `xorm:"advice_type" json:"adviceType"` // 广告类型,用于跳转到对应的页面
  255. Sort string `xorm:"sort" json:"sort"` // 排序
  256. State string `xorm:"state" json:"state"` // 状态
  257. ShowType string `xorm:"show_type" json:"showType"` // 显示类型,carousel轮播图,package,礼包
  258. CreateBy string `xorm:"create_by" json:"createBy"` // 创建人
  259. CreateTime string `xorm:"create_time" json:"createTime"` // 创建时间
  260. UpdateBy string `xorm:"update_by" json:"updateBy"` // 更新人
  261. UpdateTime string `xorm:"update_time" json:"updateTime"` // 更新时间
  262. ImageUrl string `xorm:"image_url" json:"imageUrl"` // 图片
  263. ToType string `xorm:"to_type" json:"toType"` // 目标类型
  264. }
  265. type ShopTopicSkuQuery struct {
  266. Id int64 `xorm:"id" json:"id"` //
  267. TopicId int64 `xorm:"topic_id" json:"topicId"` //
  268. SkuId int64 `xorm:"sku_id" json:"skuId"` //
  269. }