Documentation ¶ Index ¶ Variables func DB() *dbRepo func Init() type Predicate type Repo Constants ¶ This section is empty. Variables ¶ View Source var ( EqualPredicate = Predicate("=") NotEqualPredicate = Predicate("<>") GreaterThanPredicate = Predicate(">") GreaterThanOrEqualPredicate = Predicate(">=") SmallerThanPredicate = Predicate("<") SmallerThanOrEqualPredicate = Predicate("<=") LikePredicate = Predicate("LIKE") ) Functions ¶ func DB ¶ func DB() *dbRepo func Init ¶ func Init() Types ¶ type Predicate ¶ type Predicate string Predicate is a string that acts as a condition in the where clause type Repo ¶ type Repo interface { GetDbR() *gorm.DB GetDbW() *gorm.DB DbRClose() error DbWClose() error // contains filtered or unexported methods } Source Files ¶ View all Source files mysql.go Directories ¶ Show internal Expand all Path Synopsis admin admin_menu authorized authorized_api cms_help cms_help_category cms_member_report cms_prefrence_area cms_prefrence_area_product_relation cms_subject cms_subject_category cms_subject_comment cms_subject_product_relation cms_topic cms_topic_category cms_topic_comment cron_task menu menu_action oms_cart_item oms_company_address oms_order oms_order_item oms_order_operate_history oms_order_return_apply oms_order_return_reason oms_order_setting pms_album pms_album_pic pms_brand pms_comment pms_comment_replay pms_feight_template pms_member_price pms_product pms_product_attribute pms_product_attribute_category pms_product_attribute_value pms_product_category pms_product_category_attribute_relation pms_product_full_reduction pms_product_ladder pms_product_operate_log pms_product_vertify_record pms_sku_stock sms_coupon sms_coupon_history sms_coupon_product_category_relation sms_coupon_product_relation sms_flash_promotion sms_flash_promotion_log sms_flash_promotion_product_relation sms_flash_promotion_session sms_home_advertise sms_home_brand sms_home_new_product sms_home_recommend_product sms_home_recommend_subject ums_admin ums_admin_login_log ums_admin_permission_relation ums_admin_role_relation ums_growth_change_history ums_integration_change_history ums_integration_consume_setting ums_member ums_member_level ums_member_login_log ums_member_member_tag_relation ums_member_product_category_relation ums_member_receive_address ums_member_rule_setting ums_member_statistics_info ums_member_tag ums_member_task ums_menu ums_permission ums_resource ums_resource_category ums_role ums_role_menu_relation ums_role_permission_relation ums_role_resource_relation Click to show internal directories. Click to hide internal directories.