Query.go 15 KB

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