// Package postgre /** * @ File: * @ Date: 2021/4/26 11:26 * @ Author: JYQ * @ Description: */ package postgre type PGClass struct { } func (PGClass) ClassQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) { err = getClient().Raw("select fn_class_List_query(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr). Scan(&result).Error return } func (PGClass) ClassAdd(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) { err = getClient().Raw("select fn_class_Add(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr). Scan(&result).Error return } func (PGClass) ClassEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) { err = getClient().Raw("select fn_class_edit(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr). Scan(&result).Error return } func (PGClass) ClassStatusEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) { err = getClient().Raw("select fn_class_status_edit(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr). Scan(&result).Error return } func (PGClass) ClassColorEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) { err = getClient().Raw("select fn_class_color_edit(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr). Scan(&result).Error return } func (PGClass) ClassVisibleStatusEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) { err = getClient().Raw("select fn_class_visible_status_edit(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr). Scan(&result).Error return } func (PGClass) ClassVipUserEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) { err = getClient().Raw("select fn_class_vip_user_edit(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr). Scan(&result).Error return } func (PGClass) SttPlanBasicListQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) { err = getClient().Raw("select fn_stt_plan_basic_list_query(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr). Scan(&result).Error return } func (PGClass) SttPlanBasicAdd(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) { err = getClient().Raw("select fn_stt_plan_basic_add(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr). Scan(&result).Error return } func (PGClass) SttPlanBasicEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) { err = getClient().Raw("select fn_stt_plan_basic_edit(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr). Scan(&result).Error return } func (PGClass) SttPlanBasicShopEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) { err = getClient().Raw("select fn_stt_plan_basic_shop_edit(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr). Scan(&result).Error return } func (PGClass) SttPlanBasicStatusEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) { err = getClient().Raw("select fn_stt_plan_basic_status_edit(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr). Scan(&result).Error return } func (PGClass) SttPlanPublish(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) { err = getClient().Raw("select fn_stt_plan_publish(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr). Scan(&result).Error return } func (PGClass) SttPlanPreview(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) { err = getClient().Raw("select fn_stt_plan_preview(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr). Scan(&result).Error return } func (PGClass) SttPlanCopy(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) { err = getClient().Raw("select fn_stt_plan_copy(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr). Scan(&result).Error return } func (PGClass) SttPlanDetailListQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) { err = getClient().Raw("select fn_stt_plan_detail_list_query(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr). Scan(&result).Error return } func (PGClass) SttPlanDetailBatchSave(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) { err = getClient().Raw("select fn_stt_plan_detail_batch_save(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr). Scan(&result).Error return } func (PGClass) STTBasicListQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) { err = getClient().Raw("select fn_stt_basic_lost_query(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr). Scan(&result).Error return } func (PGClass) STTBasicAdd(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) { err = getClient().Raw("select fn_stt_basic_add(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr). Scan(&result).Error return } func (PGClass) STTBasicEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) { err = getClient().Raw("select fn_stt_basic_edit(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr). Scan(&result).Error return } func (PGClass) STTBasicStatusEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) { err = getClient().Raw("select fn_stt_basic_status_edit(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr). Scan(&result).Error return } func (PGClass) SchoolTimetablePreview(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) { err = getClient().Raw("select fn_school_time_table_preview(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr). Scan(&result).Error return } func (PGClass) SchoolTimeTableCopy(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) { err = getClient().Raw("select fn_school_time_table_copy(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr). Scan(&result).Error return } func (PGClass) STTBasicOfflineEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) { err = getClient().Raw("select fn_stt_basic_offline_edit(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr). Scan(&result).Error return } func (PGClass) STTDetailListQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) { err = getClient().Raw("select fn_stt_detail_list_query(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr). Scan(&result).Error return } func (PGClass) STTDetailBatchSave(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) { err = getClient().Raw("select fn_stt_detail_batch_save(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr). Scan(&result).Error return } func (PGClass) STTDetailAllowDelCheck(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) { err = getClient().Raw("select fn_stt_detail_allow_del_check(? ,? ,? )", optUserId, objectShopId, jsonStr, verfStr). Scan(&result).Error return }