Documentation ¶
Overview ¶
*
- @Author: YangYun
- @Date: 2020/8/6 9:18
*
- @Author: YangYun
- @Date: 2020/4/15 17:35
Index ¶
- Constants
- Variables
- func DisinfectAddressList() []int
- func DisinfectGoodsList() []int
- func DisinfectTypeList() []int
- func GetGenders() []int
- func GetHideTypes() []int
- func GetSources() []int
- func RubbishDisposeList() []int
- func RubbishTypeList() []int
- func VerfiyGender(gender int) error
- func VerfiyHideType(hideType []HideData) error
- func VerfiyName(name string) error
- func VerfiySource(source Source) error
- type AccountInfo
- type AccountParams
- type AccountReply
- type AdminBusAuditBase
- type ArgsAddBusShopReportRpc
- type ArgsAddDefendDaily
- type ArgsAddMember
- type ArgsAddMemberConsumeCount
- type ArgsAddNoticeContext
- type ArgsAddOrUpdateDelDisinfectFrontBase
- type ArgsAddShopAdvantage
- type ArgsAddShopReportCapita
- type ArgsAddShopUser
- type ArgsAddStaffRegister
- type ArgsAddTag
- type ArgsAdminBusAudit
- type ArgsAdminBusAuditPage
- type ArgsAnsyBus
- type ArgsAuditBus
- type ArgsAuthAccount
- type ArgsAvaBusId
- type ArgsAvaGetShops
- type ArgsBatchBus
- type ArgsBranchExamine
- type ArgsBranchPageMgt
- type ArgsBusAuth
- type ArgsBusId
- type ArgsBusInfo
- type ArgsBusLevel
- type ArgsBusLevelDetail
- type ArgsBusPage
- type ArgsBusReg
- type ArgsBusShopReg
- type ArgsBusShopRepeat
- type ArgsBusUserType
- type ArgsCashApply
- type ArgsChangeSellUplimiter
- type ArgsCheckBindid
- type ArgsCheckShop
- type ArgsCheckShopUser
- type ArgsConsumeCharge
- type ArgsDelNoticeContext
- type ArgsDelShopUser
- type ArgsDisburseCategoryInfo
- type ArgsDisburseDetailInfo
- type ArgsDisburseDetailReq
- type ArgsEditShopUser
- type ArgsEpidemicGarbageInfo
- type ArgsEpidemicSettingInfo
- type ArgsEpidemicTackleInfo
- type ArgsEpidemicTechnicianInfo
- type ArgsEsAdminBusInfo
- type ArgsGetAdvantageIdByShopId
- type ArgsGetBusDeposInfo
- type ArgsGetBusDisburse
- type ArgsGetBusLevelDetail2
- type ArgsGetBusServiceSwitch
- type ArgsGetByCompanyname
- type ArgsGetByUid
- type ArgsGetDefendDaily
- type ArgsGetFrontShop
- type ArgsGetGovBusComment
- type ArgsGetGovShopLists
- type ArgsGetInfoByBusAndUid
- type ArgsGetMemberInfo
- type ArgsGetNearbyShopInfo
- type ArgsGetShop
- type ArgsGetShopReportCapita
- type ArgsGetShops
- type ArgsGetStaffRegister
- type ArgsGetUserInfoByPhone
- type ArgsGetUserInfoByPhoneMatch
- type ArgsGetUserLevelByUids
- type ArgsMemberBase
- type ArgsMemberInfo
- type ArgsMemberParam
- type ArgsMemberRebate
- type ArgsMemberStatisData
- type ArgsNoticeContext
- type ArgsNoticeInfo
- type ArgsNoticeList
- type ArgsNoticeListInfo
- type ArgsNotifyinfo
- type ArgsOthersShopList
- type ArgsQueryCompany
- type ArgsQuerySassAccount
- type ArgsRemoveTag
- type ArgsReplaceAccount
- type ArgsReturnWork
- type ArgsRiskMemberNum
- type ArgsRiskShopNum
- type ArgsSassSupplyAccount
- type ArgsSendMemberSms
- type ArgsShopCollectList
- type ArgsShopCollectStatus
- type ArgsShopRole
- type ArgsShopRoleUser
- type ArgsShopStatisData
- type ArgsSingleBus
- type ArgsSingleBusUser
- type ArgsStopOrStartSell
- type ArgsSupplyAccount
- type ArgsUpdatPage
- type ArgsUpdateBusDisburse
- type ArgsUpdateBusServiceSwitch
- type ArgsUpdateRiskBusSafeCode
- type ArgsUserShopCollect
- type ArgsUserToMember
- type ArsgUpdateBusShopSetting
- type Bus
- type BusAuth
- type BusLevel
- type BusLevelDetail
- type BusShopDetail
- type BusShopReportRankBase
- type CateDetail
- type CollectBase
- type CommonBusShopUpdate
- type CompayType
- type Custody
- type Depos
- type DeposInfo
- type DisburseDetailInfo
- type DisinfectFrontBase
- type EpidemicGarbageGetBase
- type EpidemicSettingGetBase
- type EpidemicTackleGetBase
- type EpidemicTechnician
- type EpidemicTechnicianGetBase
- type Front
- type Fund
- type FundRecord
- type FundRecordItem
- type GetAdvantageIdByShopId
- type GetBusAmountLogsPage
- type GetBusCashLogsPage
- type GetBusDeposLogsPage
- type GetDefendDaily
- type GetDisinfectFrontBase
- type GetGovBusListByPIdArgs
- type GetGovBusListByPIdReplies
- type GetGovBusListByPIdReply
- type GetGovShopListsBase
- type GetShopInfoByRishBusIdArgs
- type GetShopInfoByRishBusIdReply
- type GetStaffRegister
- type GovBus
- type HideData
- type InputParams
- type InputParamsReg
- type Level
- type Member
- type MemberConsumeCountBase
- type MemberItem
- type MemberLevel
- type MemberList
- type NoticeContext
- type NoticeContextInfo
- type Notify
- type NotifyInfo
- type OutputReply
- type OutputReplyReg
- type RcardRechargeLog
- type RebateProduct
- type RebateService
- type ReplyAccount
- type ReplyAddMemberConsumeCount
- type ReplyAdminBusAudit
- type ReplyAdminBusAuditPage
- type ReplyAuditBus
- type ReplyBatchBus
- type ReplyBranchExamine
- type ReplyBranchInfo
- type ReplyBranchPageMgt
- type ReplyBusAssocInfo
- type ReplyBusAuth
- type ReplyBusGovRule
- type ReplyBusInfo
- type ReplyBusReg
- type ReplyBusShopRegUp
- type ReplyBusUserType
- type ReplyBusinessType
- type ReplyCategoryType
- type ReplyCheckShop
- type ReplyCheckShopUser
- type ReplyCompanyInfo
- type ReplyDeposCcbInfo
- type ReplyDeposSandInfo
- type ReplyDisburseCategoryRes
- type ReplyDisburseDetailInfo
- type ReplyDisburseDetailRes
- type ReplyEpidemicGarbage
- type ReplyEpidemicGarbageGet
- type ReplyEpidemicSetting
- type ReplyEpidemicSettingGet
- type ReplyEpidemicTackle
- type ReplyEpidemicTackleGet
- type ReplyEpidemicTechnician
- type ReplyEpidemicTechnicianGet
- type ReplyEsAdminBusInfo
- type ReplyGetAdvantageIdByShopId
- type ReplyGetBusAmountLogs
- type ReplyGetBusCashLogsPage
- type ReplyGetBusDeposInfo
- type ReplyGetBusDeposLogs
- type ReplyGetBusDisburse
- type ReplyGetBusServiceSwitch
- type ReplyGetByCompanyname
- type ReplyGetCommentsByRiskbusids
- type ReplyGetDefendDaily
- type ReplyGetDisinfectFrontCommon
- type ReplyGetGovBusComment
- type ReplyGetGovShopLists
- type ReplyGetMemberConsumeCount
- type ReplyGetMemberInfo
- type ReplyGetNearbyShopInfo
- type ReplyGetShopEpidemic
- type ReplyGetShopReportCapita
- type ReplyGetShopReportRankByShopID
- type ReplyGetStaffRegister
- type ReplyGetUserInfoByPhone
- type ReplyGetUserInfoByPhoneMatch
- type ReplyGetUserLevelByUids
- type ReplyMemberBase
- type ReplyMemberDetail
- type ReplyMemberInfo
- type ReplyMemberStatisData
- type ReplyNoticeContext
- type ReplyNoticeInfo
- type ReplyNoticeList
- type ReplyNoticeListInfo
- type ReplyOthersShopList
- type ReplyQueryCompany
- type ReplyQuerySassAccount
- type ReplyReplaceAccount
- type ReplyReturnWork
- type ReplyReturnWorkGet
- type ReplyRiskMemberNum
- type ReplyRiskShopNum
- type ReplyShopCollectList
- type ReplyShopCollectStatus
- type ReplyShopInfo
- type ReplyShopInfos
- type ReplyShopName
- type ReplyShopRole
- type ReplyShopRoleUser
- type ReplyShopRoleUserInfo
- type ReplyShopStatisData
- type ReplyShopUser
- type ReplySimpleShopInfo
- type ReplySingleBus
- type ReplySingleBusAccount
- type ReplyTag
- type ReplyUpdatPage
- type ReplyUpdateRiskBusSafeCode
- type SettingBsBindIdArgs
- type Shop
- type ShopCollectBase
- type ShopStatistics
- type Source
- type Tag
- type WeekDateParams
Constants ¶
const ( // AuditActionAgree 审核通过 AuditActionAgree = 1 // AuditActionRefuse 审核拒绝 AuditActionRefuse = 2 // AuditActionUnder 审核下架 AuditActionUnder = 3 //资金管理方式 0=无 1=存管 2=保证保险 FUND_MODE_NO = 0 FUND_MODE_CUST = 1 FUND_MODE_INSURE = 2 //安全码颜色 1=灰色 2-红色 3=黄色 4=绿色 5=黑色 SAFE_CODE_grey = 1 SAFE_CODE_red = 2 SAFE_CODE_yellow = 3 SAFE_CODE_blue = 4 SAFE_CODE_black = 5 //保险渠道 0=无保险 1=长安保险 2=宁波人保 3=上海安信保险 INSURANCE_CHANNEL_none = 0 INSURANCE_CHANNEL_can = 1 INSURANCE_CHANNEL_ccb = 2 INSURANCE_CHANNEL_aaic = 3 )
const ( //#协会会员类型 //会员单位 BUSASSOCJOIN_assoc_type_member = 1 //理事单位 BUSASSOCJOIN_assoc_type_director = 2 //副会长单位 BUSASSOCJOIN_assoc_type_vicepresident = 3 )
*
- @className busAssoc
- @author liyang<654516092@qq.com>
- @date 2020/9/4 13:50
const ( ZHIFUBAO = 1 WEIXIN = 2 XIANJIN = 3 OTHER = 4 )
const ( //消毒地点 DISINFECT_ADDRESS_SITTING_ROOT = 1 //客厅 DISINFECT_ADDRESS_CORRIDOR = 2 //走廊 DISINFECT_ADDRESS_RECEPTION = 3 //接待处 DISINFECT_ADDRESS_RESTAREA = 4 //休息区 //消毒类型 DISINFECT_TYPE_UV = 1 //紫外线照射 DISINFECT_TYPE_DISINFECTANT = 2 //消毒剂喷洒 DISINFECT_TYPE_ALCOHOL = 3 //酒精消毒 //消毒物品 DISINFECT_GOODS_TOWEL = 1 //毛巾 DISINFECT_GOODS_SCISSOR = 2 //剪刀 DISINFECT_GOODS_FOOTTUB = 3 //足浴盆 //垃圾处理方式 RUBBISH_DISPOSE_INCINERATION = 1 //焚烧 RUBBISH_DISPOSE_ISOLATION = 2 //隔离 //垃圾类型 RUBBISH_TYPE_DO = 1 //干垃圾 RUBBISH_TYPE_WET = 2 //湿垃圾 COMPANY_TYPE_GROUP = 1 //集团 COMPANY_TYPE_BRAND = 2 //品牌发卡 COMPANY_TYPE_SCALE = 3 //规格发卡企业/商户 COMPANY_TYPE_OTHER = 4 //其他发卡企业/商户 COMPANY_TYPE_INDIVIDUAL = 5 //个体工商户 DisinfectNoDel = 1 //未删除 DisinfectIsDel = 2 //删除 )
const ( //#角色类型 //普通角色 BUSSHOPROLE_reserved_normal = 0 //系统角色[固化角色] BUSSHOPROLE_reserved_system = 1 )
const ( //存管账户类型 1=上海银行 2=交通银行 3=平安银行 4=工商银行 5=宁波银行 6=ping++ 7=杭州银行 DEPOS_TYPE_BOSC = 1 DEPOS_TYPE_BOCOM = 2 DEPOS_TYPE_PINGAN = 3 DEPOS_TYPE_ICBC = 4 DEPOS_TYPE_NBCB = 5 DEPOS_TYPE_PINGPP = 6 DEPOS_TYPE_HCCB = 7 //交通银行开户状态 0=已提交 1=待绑卡 2=开户成功 3=失败 BOCOM_STATUS_COMMIT = 0 BOCOM_STATUS_BIND = 1 BOCOM_STATUS_SUC = 2 BOCOM_STATUS_FAIL = 3 )
const ( TYPE_charge_in = 1 // 入账 TYPE_charge_out = 2 // 出账 ORDER_TYPE_buy = 1 // 购买 ORDER_TYPE_agent = 2 // 资金清算 ORDER_TYPE_withdraw = 3 // 商户提现 FUND_TYPE_pay_in = 1 // 用户支付 FUND_TYPE_bankfee_out = 2 // 银行手续费 FUND_TYPE_insurance_out = 3 // 保险费用 FUND_TYPE_reinsurance_out = 4 // 续保费用 FUND_TYPE_plat_out = 5 // 平台手续费 FUND_TYPE_agent_fee_out = 6 // 清算手续费 FUND_TYPE_withdraw_out = 7 // 商户提现 FUND_TYPE_depository = 8 // 清分到存管 FUND_TYPE_usable = 9 // 清分到可提现 FUND_TYPE_consume_out = 10 // 确认消费 // 存管订单类型 DEPOSITORY_ORDER_TYPE_agent = 1 // 清算入账 DEPOSITORY_ORDER_TYPE_consume = 2 // 耗卡出账 DEPOSITORY_ORDER_TYPE_refund = 3 //退款出账 // 可提现订单类型 USABLE_ORDER_TYPE_agent = 1 // 清算入账 USABLE_ORDER_TYPE_consume = 2 // 耗卡入账 USABLE_ORDER_TYPE_withdraw = 3 // 提现出账 USABLE_ORDER_TYPE_refund = 4 // 退款入账 )
const ( //是否已添加到saas 1=否 2=是 IS_IN_SAAS_no = 1 IS_IN_SAAS_yes = 2 //是否暂停发卡 1=否 2=是 IS_STOP_SELL_no = 1 IS_STOP_SELL_yes = 2 )
const ( Source_online = 1 // 线上会员 Source_offline = 2 // 线下会员 // 性别 Gender_unknow = 0 // 未知 Gender_male = 1 // 男 Gender_female = 2 // 女 HideTypeText = 1 // 文本 HideTypeImage = 2 // 图片 HideTypeDate = 3 // 日期 )
const ( RebateTypeNone = 0 RebateTypeAll = 1 RebateTypePart = 2 InitLevel = 1 )
const ( //是否删除 IS_DEL_YES = 1 //已删除 IS_DEL_NO = 0 //未删除 )
const ( // 未收藏 COLLECT_NO = 0 // 已收藏 COLLECT_YES = 1 //状态 SHOP_STATUS = 2 //审核通过 )
Variables ¶
var CompanyTypeMap = map[int]string{ COMPANY_TYPE_GROUP: "集团", COMPANY_TYPE_BRAND: "品牌发卡", COMPANY_TYPE_SCALE: "规格发卡企业/商户", COMPANY_TYPE_OTHER: "其他发卡企业/商户", COMPANY_TYPE_INDIVIDUAL: "个体工商户", }
var DisberseTypeMap = map[int]string{ ZHIFUBAO: "支付宝", WEIXIN: "微信", XIANJIN: "现金", OTHER: "其他", }
var DisinfectAddressMap = map[int]string{ DISINFECT_ADDRESS_SITTING_ROOT: "客厅", DISINFECT_ADDRESS_CORRIDOR: "走廊", DISINFECT_ADDRESS_RECEPTION: "接待处", DISINFECT_ADDRESS_RESTAREA: "休息区", }
消毒地点
var DisinfectGoodsMap = map[int]string{ DISINFECT_GOODS_TOWEL: "毛巾", DISINFECT_GOODS_SCISSOR: "剪刀", DISINFECT_GOODS_FOOTTUB: "足浴盆", }
消毒物品
var DisinfectTypeMap = map[int]string{ DISINFECT_TYPE_UV: "紫外线照射", DISINFECT_TYPE_DISINFECTANT: "消毒剂喷洒", DISINFECT_TYPE_ALCOHOL: "酒精消毒", }
消毒类型
var RubbishDisposeMap = map[int]string{ RUBBISH_DISPOSE_INCINERATION: "焚烧", RUBBISH_DISPOSE_ISOLATION: "隔离", }
垃圾处理方式
var RubbishTypeMap = map[int]string{ RUBBISH_TYPE_DO: "干垃圾", RUBBISH_TYPE_WET: "湿垃圾", }
垃圾类型
Functions ¶
func DisinfectAddressList ¶
func DisinfectAddressList() []int
func DisinfectGoodsList ¶
func DisinfectGoodsList() []int
func DisinfectTypeList ¶
func DisinfectTypeList() []int
func RubbishDisposeList ¶
func RubbishDisposeList() []int
func RubbishTypeList ¶
func RubbishTypeList() []int
Types ¶
type AccountInfo ¶
type AccountInfo struct { AccountType int //存管账号类型 MerchantId string //建设银行 - 商户编号 OperatorPhone string //上海银行 - 操作员手机号 XindaluCustId string //新大陆支付-商户号 AcctNo string //存管账户户号 AcctName string //存管账户名称 DepositRatio string //资金留存比例 BankName string //结算户开户行 BankCardNo string //结算户卡号 BankCardName string //结算户账户名 BankNo string //结算户开户行联行号 }
存管账号信息
type AdminBusAuditBase ¶
type AdminBusAuditBase struct { BusId int // 企业/商户ID CompanyName string // 企业名称 BrandName string // 店铺名称 BusinessType int //企业/商户类型 1=中小微企业 2=个体工商户 HairpinType int //企业/商户发卡类型 1=个体工商户 2=其他发卡企业 3=集团发卡企业 4=品牌发卡企业 5=规模发卡企业 Status int // 企业/商户审核状态 0=待审核 1=审核失败 2=已通过审核 3=下架 Pid int // 企业/商户所属省份/直辖市 Cid int // 企业/商户经营所属城市 Did int // 企业/商户经营所属区/街道 Tid int //区域下属镇/街道ID FundMode int //资金管理方式 0=无管理方式 1=资金存管 2=保证保险 DeposBankChannel int //资金存管银行渠道 1=上海银行 2=交通银行 Ctime int64 // 提交时间 InstallmentStatus int // 分期合作状态 Pattern int // 模式 Rate float64 // 费率 Limit int // 是否限收 LimitAmount float64 // 限收额度 MarketingProportion float64 // 二次营销比例 PayChannel int // 支付渠道 InsuranceChannel int // 保险渠道 YearMdateStr string // 转化好的日期 年-月-日 CityName string // Cid转换好的城市名 }
AdminBusAuditBase AdminBusAuditBase
type ArgsAddBusShopReportRpc ¶
type ArgsAddBusShopReportRpc struct {
BusShopReportRankBase
}
type ArgsAddDefendDaily ¶
type ArgsAddDefendDaily struct { common.BsToken OfficeNum int Performance int Gt372 int Disisolation int HomeQuarantine int }
添加 门店企业复工防控日报 入参
type ArgsAddMember ¶
type ArgsAddMemberConsumeCount ¶
type ArgsAddMemberConsumeCount struct {
MemberConsumeCountBase
}
添加店铺会员表数据统计入参
type ArgsAddNoticeContext ¶
type ArgsAddNoticeContext struct { common.Autoken // 后台管理员信息 common.Paging Id int //自增ID NoticeTitle string //通知公告标题 NoticeContext string //通知公告内容 }
后台 添加/修改 通知公告入参
type ArgsAddShopAdvantage ¶
添加门店包含的优势标签
type ArgsAddShopReportCapita ¶
type ArgsAddShopReportCapita struct { ShopId int BusId int SalesPrice float64 //销售金额(实际支付金额) SalesNum int //销量笔数 ConsumePrice float64 //消费金额(实际消费金额) ConsumeNum int //消费人次 }
商户服务-分店人均消费统计
type ArgsAddShopUser ¶
分店分配用户权限入参
type ArgsAddStaffRegister ¶
type ArgsAddStaffRegister struct { common.BsToken Name string Age int Sex int IdNum string Address string Phone int IsLeave int Remark string }
添加 门店企业复工员工登记 入参
type ArgsAddTag ¶
type ArgsAdminBusAudit ¶
type ArgsAdminBusAudit struct { common.Autoken // 后台管理员信息 BusId int // 商户id Action int // 1:通过;2:拒绝 }
ArgsAdminBusAudit 后台商户审核入餐
type ArgsAdminBusAuditPage ¶
type ArgsAdminBusAuditPage struct { common.Autoken // 后台管理员信息 common.Paging CompanyName string // 企业名称 BrandName string // 店铺名称 Pid int // 直属省份/城市 Cid int // 所属城市ID Status string // 商户审核状态 0=待审核 1=审核失败 2=已通过审核 3=下架 CtimeStart int64 // 提交开始时间戳 CtimeEnd int64 // 提交结束时间戳 }
ArgsAdminBusAuditPage 后台审核商户列表入参
type ArgsAnsyBus ¶
type ArgsAuditBus ¶
type ArgsAuditBus struct { common.Utoken //平台后台管理员信息 common.BsToken //企业/商户ID信息 CompanyName string //企业/商户营业执照名称 BrandName string //企业/商户品牌名称 IndustryId int //企业/商户所属领域 MainBindId int //企业/商户所属主行业 BindId string //企业/商户所属兼营行业 BusinessType int //企业/商户类型 1=中小微企业 2=个体工商户 Pid int //企业/商户所属省份/直辖市 Cid int //企业/商户经营所属城市 Did int //企业/商户经营所属区/街道 Status int //企业/商户审核状态 0=待审核 1=审核失败 2=已通过审核 3=下架 Address string //企业/商户经营详细地址 Contact string //企业/商户联系人(负责人) ContactCall string //企业/商户联系电话(手机号或固话) BusinessImgHash string //企业/商户营业执照图片HASH CardYImgHash string //企业/商户法人代表身份证正面照片HASH CardNImgHash string //企业/商户法人代表身份证背面照片HASH BranImgHash string //企业/商户logo }
审核/修改企业/商户信息入参-平台管理员
type ArgsAvaBusId ¶
批量获取企业/商户下的可用分店
type ArgsAvaGetShops ¶
批量获取审核后的门店信息入参
type ArgsBranchExamine ¶
type ArgsBranchExamine struct { BusId int ShopId int // 店铺id Status int // common.Autoken // 后台管理员信息 }
分店/店铺详情入参
type ArgsBranchPageMgt ¶
type ArgsBranchPageMgt struct { common.Autoken // 后台管理员信息 common.Paging // Pid int // 企业/商户所属省份/直辖市 Cid int // 所属城市ID BusId int // 商户ID ShopId int }
分店管理页面入参数
type ArgsBusAuth ¶
type ArgsBusAuth struct { common.Utoken //用户信息 BusId int //企业/商户ID ShopId int //分店ID Path string //路径 }
九百岁saas鉴权输入参数 BusId-ShopId 至少传一个
type ArgsBusLevel ¶
type ArgsBusLevelDetail ¶
type ArgsBusLevelDetail struct { common.BsToken BusLevelDetail }
type ArgsBusPage ¶
type ArgsBusReg ¶
type ArgsBusReg struct { common.Utoken //用户信息 CompanyName string //企业/商户营业执照名称 BrandName string //企业/商户品牌名称 IndustryId int //企业/商户所属领域 MainBindId int //企业/商户所属主行业 BindId string //企业/商户所属兼营行业 BusinessType int //企业/商户类型 1=中小微企业 2=个体工商户 Pid int //企业/商户所属省份/直辖市 Cid int //企业/商户经营所属城市 Did int //企业/商户经营所属区/街道 Address string //企业/商户经营详细地址 Contact string //企业/商户联系人(负责人) ContactCall string //企业/商户联系电话(手机号或固话) BusinessImgHash string //企业/商户营业执照图片Hash值 CardYImgHash string //企业/商户法人代表身份证正面照片 CardNImgHash string //企业/商户法人代表身份证背面照片 AccountType int //企业/商户账户类型 1=对私(个人) 2=对公(企业) Account string //企业/商户账户名 AccountNo string //企业/商户账户号 AccountBank int //企业/商户账户号所属银行 BrandImgHash string //企业/商户logo OpType int //企业/商户主体申请操作类型 1=申请 2=更新 }
企业/商户申请/更新主体入参
type ArgsBusShopReg ¶
type ArgsBusShopReg struct { common.Utoken //用户信息 BusId int //内部使用 CompanyName string //分店营业执照名称 ShopName string //分店门店名称 BranchName string //分店名称 BindId string //分店所属兼营行业 DistrictId string //分店所属商圈,多个使用逗号隔开 Pid int //分店经营所属省份/直辖市 Cid int //分店经营所属城市 Did int //分店经营所属区/街道 Address string //分店经营详细地址 Contact string //分店联系人(负责人) ContactCall string //分店联系电话(手机号或固话) BusinessImgHash string //分店营业执照图片Hash值 ShopImgHash string //分店门店照图片Hash值 ScanImgHash string //分店食品卫生许可证Hash值 当领域为餐饮领域必传 EduImgHash string //分店教育许可证Hash值 当领域为教育领域必传 BusinessHoursType int //分店营业时间类型 1=非全天营业 2=全天营业 WeekDate WeekDateParams //营业日期 BusinessHoursStart string //分店营业开始时间 格式如:09:00 BusinessHoursEnd string //分店营业结束时间 格式如:22:00 GovBusId int //监管平台已信息对接的商家同步过来的商家这张表的id }
分店申请入参
type ArgsBusShopRepeat ¶
type ArgsBusShopRepeat struct { common.Utoken //用户信息 ShopId int //分店ID CompanyName string //分店工商名称 GovBusId int //监管平台已信息对接的商家同步过来的商家这张表的id Common CommonBusShopUpdate //分店公共参数 }
审核失败入参
type ArgsCashApply ¶
type ArgsCashApply struct { common.BsToken Amount float64 //提现金额 Captcha string //体验验证码 - 上海银行提现需要 }
申请提现
type ArgsChangeSellUplimiter ¶
type ArgsCheckShop ¶
rpc验证门店的正确性入参
type ArgsConsumeCharge ¶
type ArgsConsumeCharge struct { BusId int OrderSn string //订单编号 PayChannel int //支付渠道 PayOrderId int //支付订单的id Amount string //确认消费的实际金额 CardPackageRelationid int //卡包关系id RealPrice string //卡包的真实金额 DepositRatio string //存管留存比例 DepositAmount string //卡包总留存金额 HasRelaseAmount string //已经释放的留存资金 LastConsumeFlag int //是否为最后一次消费 1=是 0=否 DepositoryOrderType int //存管订单类型:1-清算入账;2-耗卡出账;3-退款出账 RcardRechargeLogInfo []RcardRechargeLog //充值卡消费信息 }
确认消费商家资金变动信息维护入参
type ArgsDelNoticeContext ¶
删除通知公告
type ArgsDelShopUser ¶
分店删除用户权限
type ArgsDisburseCategoryInfo ¶
type ArgsDisburseCategoryInfo struct { common.BsToken //企业信息 CategoryId int //类目id CategoryName string //类目名 }
前台支出类目入参
type ArgsDisburseDetailInfo ¶
type ArgsDisburseDetailInfo struct { common.BsToken //企业信息 DisburseId int //支出明细id CategoryId int //支出类目id DisburseMoney float64 //支出金额 //DisburseDept string //支出部门 DisburseType int //支出方式 StaffId int //技师id DisburseTime string //支出时间 Remark string //备注 }
新增支出明细入参
type ArgsDisburseDetailReq ¶
type ArgsDisburseDetailReq struct { common.Paging BusId int CategoryId int //支出类目id ShopId int //分店id StartTime string //开始时间 EndTime string //结束时间 }
查询支出明细入参
type ArgsEditShopUser ¶
type ArgsEditShopUser struct { common.Utoken common.BsToken Id int //用户ID StaffId int //员工ID RoleId int //员工角色ID }
分店修改用户权限入参
type ArgsEpidemicGarbageInfo ¶
type ArgsEpidemicGarbageInfo struct { common.BsToken //企业信息 common.Paging Id int //垃圾处理id ShopId int //分店id Time string //处理时间 Type int //垃圾类型 Method int //处理方式 Executor int //执行人 }
前台 疫情防控 垃圾处理 信息入参
type ArgsEpidemicSettingInfo ¶
type ArgsEpidemicSettingInfo struct { common.BsToken //企业信息 common.Paging Id int //id ShopId int //分店id Address int //消毒地点 Time string //消毒时间,时间格式:2006-01-02 15:00 Type int //消毒类型 Duration int //消毒持续时间,单位分钟 Executor int //执行人 }
前台 疫情防控 环境消毒入参
type ArgsEpidemicTackleInfo ¶
type ArgsEpidemicTackleInfo struct { common.BsToken //企业信息 common.Paging Id int //用品消毒id ShopId int //分店id Time string //消毒时间,时间格式:2006-01-02 15:00 Good int //消毒物品 Type int //消毒类型 Duration int //持续时间,单位分钟 Executor int //执行人 }
前台 疫情防控 用品消毒 信息入参
type ArgsEpidemicTechnicianInfo ¶
type ArgsEpidemicTechnicianInfo struct { common.BsToken //企业信息 common.Paging Id int // ShopId int //门店id TechId int //技师id Time string //检查时间 IsHeat int //是否发热 1是 0否 IsCough int //是否咳嗽 1是 0否 IsSymptom int //是否有呼吸道症状 1是 0否 Temperature string //体温 }
前台 疫情防控 技师健康 信息入参
type ArgsEsAdminBusInfo ¶
type ArgsEsAdminBusInfo struct {
BusId int
}
ArgsEsAdminBusInfo ArgsEsAdminBusInfo
type ArgsGetBusDeposInfo ¶
type ArgsGetBusDisburse ¶
前台 查询支出汇总入参
type ArgsGetBusLevelDetail2 ¶
type ArgsGetBusServiceSwitch ¶
获取商家-服务设置选项入参
type ArgsGetByCompanyname ¶
type ArgsGetByUid ¶
type ArgsGetDefendDaily ¶
查询 门店企业复工防控日报 入参
type ArgsGetFrontShop ¶
获取门店入参-需要验证
type ArgsGetGovShopLists ¶
监管平台直连接口-商户下的分店
type ArgsGetInfoByBusAndUid ¶
type ArgsGetInfoByBusAndUid struct {
BusId, Uid int
}
type ArgsGetMemberInfo ¶
根据指定店铺的多个uid查询会员信息 入参
type ArgsGetNearbyShopInfo ¶
type ArgsGetShops ¶
批量获取门店信息入参
type ArgsGetStaffRegister ¶
查询 门店企业复工员工登记 入参
type ArgsGetUserInfoByPhone ¶
根据手机号获取店铺会员用户
type ArgsGetUserInfoByPhoneMatch ¶
根据手机号模糊匹配门店会员-入参
type ArgsGetUserLevelByUids ¶
type ArgsMemberBase ¶
type ArgsMemberBase struct { common.BsToken user.Channel user.Device MemberId int // 店铺会员id Name string // 姓名 Gender int // 性别 CardNum string // 身份证 Birth string // 生日 YYYYmmdd Pid int // 省id Cid int // 市id Did int // 县区id Address string // 详细地址 Remark string // 备注 HideData []HideData // 隐藏数据 Tag []int // 会员标签 }
type ArgsMemberInfo ¶
type ArgsMemberInfo struct { common.BsToken user.Channel user.Device Uid int //平台会员id Name string // 姓名 Phone string // 手机号 Gender int // 性别 CardNum string // 身份证 Birth string // 生日 YYYY-mm-dd Source Level int // 会员等级 Pid int // 省id Cid int // 市id Did int // 县区id Address string // 详细地址 Remark string // 备注 HideData []HideData // 隐藏数据 Tag []int // 会员标签 }
type ArgsMemberParam ¶
type ArgsMemberParam struct { common.BsToken common.Paging // 分页 Keyword string // 检索关键字 姓名/手机号 Phone string // 检索手机号 ConsumeMonth int // 消费频次 月数 ConsumeCount int // 消费次数 ShopId int // 门店id Level int // 会员等级 Tag int // 会员标签 BirthStart int // 生日开始时间 例: 1月1日 101 BirthEnd int // 生日截止时间 例: 12月31日 1231 Source Source // 来源 }
type ArgsMemberRebate ¶
type ArgsMemberStatisData ¶
type ArgsMemberStatisData struct { common.BsToken DayTime string //今日日期,格式:20060102 YesterdayTime string //昨日日期,格式:20060102 }
获取总店/分店新增会员数入参
type ArgsNoticeContext ¶
查看商户Erp通知公告入参数
type ArgsNoticeInfo ¶
type ArgsNoticeInfo struct {
Id int
}
type ArgsNoticeListInfo ¶
type ArgsNoticeListInfo struct { }
type ArgsNotifyinfo ¶
type ArgsNotifyinfo struct { Version string //版本 Data string // 原生的 body 信息 ChannelArea string //地区 新大陆-杭州 }
请求rpcNotify的请求参数
type ArgsQuerySassAccount ¶
sass查询绑定账户入参
type ArgsRemoveTag ¶
type ArgsReplaceAccount ¶
type ArgsReplaceAccount struct { common.Utoken common.BsToken Phone string CaptchCode string Channel int // 登录渠道 0=未知, 1=pc网站 2=900岁app 3=康享宝app 4=900岁wap版,5=卡D兜小程序 Device int // 登录设备 0=未知 1=PC 2=Android 3=Ios 4=WinPhone 5=Mac }
总账号替换另一个用户入参
type ArgsReturnWork ¶
type ArgsReturnWork struct { common.BsToken Id int CompanyName string CompanyType int Did int CompanyAddress string UscCode string ReturnWorkTime string LegalRepresentative string LrContactDetails string EnterpriseContact string EcContactDetails string TotalPeopleNum int ShanghaiHousehold int NotShanghaiHousehold int Thermometer int ThermometerImg string Masks int MasksImg string DisinfectantFluid int DisinfectantFluidImg string LatexGloves int LatexGlovesImg string HandSoap int HandSoapImg string Fungicide int FungicideImg string SchemeFile string IsRead int }
前台 复工管理 信息入参
type ArgsSassSupplyAccount ¶
type ArgsSassSupplyAccount struct { CompanyName string //企业名称 SignCode string //信息对接识别码 Phone string //手机号 Captcha string //短信验证码,短信验证码校验的是法定代表人的 }
sass绑定账户入参
type ArgsSendMemberSms ¶
发送会员短信入参
type ArgsShopCollectList ¶
收藏门店列表 入参
type ArgsShopCollectStatus ¶
店铺状态入参
type ArgsShopRoleUser ¶
获取分店角色用户入参
type ArgsShopStatisData ¶
获取门店营业数据入参
type ArgsStopOrStartSell ¶
是否暂停发卡参数
type ArgsSupplyAccount ¶
绑定账户入参
type ArgsUpdatPage ¶
type ArgsUpdatPage struct { common.Autoken // 后台管理员信息 ShopId int // 店铺id Status int // 1=同意审核 2=否决审核 3=下架 4=上架 BusId int // 企业/商户ID DenialReason string // 拒绝审核原因 }
分店/店铺 审核入参
type ArgsUpdateBusDisburse ¶
前台 修改支出汇总入参
type ArgsUpdateBusServiceSwitch ¶
更新商家-服务设置选项入参
type ArgsUpdateRiskBusSafeCode ¶
type ArgsUpdateRiskBusSafeCode struct { RiskBusId int Rank int //风险状况 SafeCodeColor int //安全码颜色值 Pid int //省id Cid int //市id Did int //区id Tid int //街道id }
更改商家安全码颜色
type ArgsUserShopCollect ¶
用户门店收藏
type ArgsUserToMember ¶
type ArgsUserToMember struct { common.BsToken user.ReplyUserinfo // 会员平台信息 }
type ArsgUpdateBusShopSetting ¶
type ArsgUpdateBusShopSetting struct { common.BsToken ShopId int BusShopDetail Common CommonBusShopUpdate //分店公共参数 }
更新分店设置入参
type Bus ¶
type Bus interface { //企业/商户入驻 Reg(ctx context.Context, args *InputParamsReg, reply *OutputReplyReg) error //企业/商户申请/更新主体 BusSettled(ctx context.Context, args *ArgsBusReg, reply *ReplyBusReg) error //获取企业/商户主体详情 GetByBusid(ctx context.Context, args *ArgsSingleBus, reply *ReplySingleBus) error //批量获取企业/商户主体信息 GetByBusids(ctx context.Context, args *ArgsBatchBus, reply *[]ReplyBatchBus) error //用户绑定企业/商户、门店信息 GetBusUserType(ctx context.Context, args *ArgsBusUserType, reply *ReplyBusUserType) error //获取企业/商户性质 GetBusinessType(ctx context.Context, reply *[]ReplyBusinessType) error //变更企业/商户总账号 ReplaceAccount(ctx context.Context, args *ArgsReplaceAccount, reply *ReplyReplaceAccount) error //检查行业id是否属于商家 CheckBindid(ctx context.Context, args *ArgsCheckBindid, reply *bool) error //卡项服务获取Bus显示信息 BusInfo(ctx context.Context, args *ArgsBusInfo, reply *ReplyBusInfo) error // 后台商户审核 AdminBusAudit(ctx context.Context, args *ArgsAdminBusAudit, reply *ReplyAdminBusAudit) error // 后台审核商户列表 AdminBusAuditPage(ctx context.Context, args *ArgsAdminBusAuditPage, reply *ReplyAdminBusAuditPage) error // 后台获取商户详情(更新Es的时候调用) EsAdminBusInfo(ctx context.Context, args *ArgsEsAdminBusInfo, reply *ReplyEsAdminBusInfo) error //获取商家-服务设置选项 GetBusServiceSwitch(ctx context.Context, args *ArgsGetBusServiceSwitch, reply *[]ReplyGetBusServiceSwitch) error //更新商家-服务设置选项入参 UpdateBusServiceSwitch(ctx context.Context, args *ArgsUpdateBusServiceSwitch, reply *bool) error //获取分店管理页面 GetBranchPageManagement(ctx context.Context, args *ArgsBranchPageMgt, reply *ReplyBranchPageMgt) error //分店/店铺详情审核 GetBranchExamine(ctx context.Context, args *ArgsBranchExamine, reply *ReplyBranchExamine) error //更新分店/店铺详情 UpadatebranchPage(ctx context.Context, args *ArgsUpdatPage, reply *ReplyUpdatPage) error //根据企业编号获取企业/商户主体详情 GetByMerchantId(ctx context.Context, merchantId *string, reply *ReplySingleBus) error //更改商家安全码颜色 UpdateRiskBusSafeCode(ctx context.Context, args *ArgsUpdateRiskBusSafeCode, reply *ReplyUpdateRiskBusSafeCode) error //监管平台直连接口-商户主体用户评论 GetGovBusComment(ctx context.Context, args *ArgsGetGovBusComment, reply *ReplyGetGovBusComment) error //总部开设店铺-获取尚未入驻监管平台已信息对接的商家/分公司 GetGovBusListByPId(ctx context.Context, args *GetGovBusListByPIdArgs, reply *GetGovBusListByPIdReplies) error //总部开设分店-按照risk bus id 获取 监管平台的分店信息 GetApplyPlatformShopInfoByRBId(ctx context.Context, args *GetShopInfoByRishBusIdArgs, reply *GetShopInfoByRishBusIdReply) error //商户-更新bind id SettingBusBindId(ctx context.Context, args *SettingBsBindIdArgs, reply *bool) error }
Bus Bus
type BusAuth ¶
type BusAuth interface { //九百岁saas统一鉴权 BusAuth(ctx context.Context, args *ArgsBusAuth, reply *ReplyBusAuth) error }
type BusLevelDetail ¶
type BusLevelDetail struct { Mid int //会员id BusLevel RebateServices []RebateService RebateProducts []RebateProduct }
type BusShopDetail ¶
type BusShopDetail struct { BusinessYear float64 //分店经营年限 BusinessIntro string `mapstructure:"business_introduction"` //分店简介/公告 BusinessArea float64 //分店经营面积 //平方米 }
分店信息详情
type BusShopReportRankBase ¶
type BusShopReportRankBase struct { ShopId int //分店ID BusId int //企业/商户主体ID PriceScore int //价格评分 ServiceScore int //服务评分 EnvirScore int //环境评分 }
商户服务-分店评价统计
type CateDetail ¶
type CollectBase ¶
type CollectBase struct { Id int `mapstructure:id` ShopId int `mapstructure:"shopid"` Uid int `mapstructure:"uid"` Attention int `mapstructure:"attention"` }
收藏基础结构体
type CommonBusShopUpdate ¶
type CommonBusShopUpdate struct { ShopName string //分店门店名称 BranchName string //分店名称 BindId string //分店所属兼营行业 DistrictId string //分店所属商圈,多个使用逗号隔开 BusinessHoursType int //分店营业时间类型 1=非全天营业 2=全天营业 WeekDate WeekDateParams //营业日期 BusinessHoursStart string //分店营业开始时间 格式如:09:00 BusinessHoursEnd string //分店营业结束时间 格式如:22:00 Pid int //分店经营所属省份/直辖市 Cid int //分店经营所属城市 Did int //分店经营所属区/街道 Status int //分店审核状态 0=待审核 1=审核失败 2=已通过审核 3=下架 Address string //分店经营详细地址 Contact string //分店联系人(负责人) ContactCall string //分店联系电话(手机号或固话) BusinessImgHash string //分店营业执照图片Hash值 ShopImgHash string //分店门店照图片Hash值 ScanImgHash string //分店食品卫生许可证Hash值 当领域为餐饮领域必传 EduImgHash string //分店教育许可证Hash值 当领域为教育领域必传 AdvantageIds string //服务标签ID,多个使用逗号隔开 }
分店更新公共参数更新
type Custody ¶
type Custody interface { OpenAccount(ctx context.Context, args *AccountParams, reply *AccountReply) error SendSms(ctx context.Context, args *AccountParams, reply *AccountReply) error ActiveAccount(ctx context.Context, args *AccountParams, reply *AccountReply) error ApplyContractSign(ctx context.Context, args *AccountParams, reply *AccountReply) error ContractSign(ctx context.Context, args *AccountParams, reply *AccountReply) error OpenAcctNotify(ctx context.Context, args *AccountParams, reply *AccountReply) error }
Custody 银行管存
type Depos ¶
type Depos interface { //获取留存比列 GetRatio(ctx context.Context, busId *int, ratio *float64) error // 批量获取杉德存管账户信息 GetDeposSandInfos(ctx context.Context, busIds *[]int, replyDeposSandInfo *[]ReplyDeposSandInfo) error // 批量获取建行存管账户信息 GetDeposCcbInfos(ctx context.Context, busIds *[]int, replyDeposCcbInfos *[]ReplyDeposCcbInfo) error //获取商家的存管账号和存管资金信息 GetBusDeposInfo(ctx context.Context, args *ArgsGetBusDeposInfo, reply *ReplyGetBusDeposInfo) error //获取资金明细 GetBusAmountLogs(ctx context.Context, args *ArgsBusPage, reply *ReplyGetBusAmountLogs) error //获取存管明细 GetBusDeposLogs(ctx context.Context, args *ArgsBusPage, reply *ReplyGetBusDeposLogs) error //获取提现记录 GetBusCashLogs(ctx context.Context, args *ArgsBusPage, reply *ReplyGetBusCashLogsPage) error //申请提现 CashApply(ctx context.Context, args *ArgsCashApply, reply *bool) error //发送上海银行提现验证码 BoscCashCaptcha(ctx context.Context, bsToken *common.BsToken, reply *bool) error //上海银行提现结果处理业务 - 通过任务查询提现结果 BoscCashResultQuery(ctx context.Context, orderSn *string, reply *bool) error //获取商家的存管账号信息 GetBusDeposInfoByBusid(ctx context.Context, busId *int, reply *ReplyGetBusDeposInfo) error }
企业存管
type DeposInfo ¶
type DeposInfo struct { TotalAmount string //总金额 DepositoryAmount string //应存管金额 UsableAmount string //可提现金额 UndischargedAmount string //待清算金额 CashingAmount string //提现中金额 }
资金信息
type DisburseDetailInfo ¶
type DisburseDetailInfo struct { DisburseId int //支出明细id ShopId int //门店id ShopName string BranchName string CategoryId int //支出类目id CategoryName string DisburseMoney float64 //支出金额 DisburseDeptId int //支出岗位id DisburseDeptName string //支出岗位名称 DisburseType int //支出方式 StaffId int //经办人 StaffName string StaffNickName string DisburseTime int //支出时间 DisburseTimeStr string //支出时间 Remark string //备注 }
支出明细
type DisinfectFrontBase ¶
===========
type EpidemicGarbageGetBase ¶
type EpidemicSettingGetBase ¶
type EpidemicTackleGetBase ¶
type EpidemicTechnician ¶
type Front ¶
type Front interface { //前台总部支出汇总查询 GetBusDisburseSum(ctx context.Context, args *ArgsGetBusDisburse, reply *ReplyGetBusDisburse) error //获取 支出类目 GetDisburseCategory(ctx context.Context, args *ArgsDisburseCategoryInfo, reply *[]ReplyCategoryType) error //添加 支出类目 AddDisburseCategory(ctx context.Context, args *ArgsDisburseCategoryInfo, reply *ReplyDisburseCategoryRes) error //修改 支出类目 UpdateDisburseCategory(ctx context.Context, args *ArgsDisburseCategoryInfo, reply *ReplyDisburseCategoryRes) error //删除 支出类目 DeleteDisburseCategory(ctx context.Context, args *ArgsDisburseCategoryInfo, reply *ReplyDisburseCategoryRes) error //实现 支出明细的 添加 AddDisburseDetail(ctx context.Context, args *ArgsDisburseDetailInfo, reply *ReplyDisburseDetailRes) error //实现 支出明细的 获取 GetDisburseDetail(ctx context.Context, args *ArgsDisburseDetailReq, reply *ReplyDisburseDetailInfo) error //实现 获取u一条支出明细 GetOneDisburseDetail(ctx context.Context, args int, reply *DisburseDetailInfo) error //实现 支出明细的 修改 UpdateDisburseDetail(ctx context.Context, args *ArgsDisburseDetailInfo, reply *ReplyDisburseDetailRes) error //实现 支出明细的 删除 DeleteDisburseDetail(ctx context.Context, args *ArgsDisburseDetailInfo, reply *ReplyDisburseDetailRes) error //添加/更新消毒地点 AddOrUpdateDisinfectAddress(ctx context.Context, args *ArgsAddOrUpdateDelDisinfectFrontBase, replyId *int) error //删除消毒地点-软删除 DelDisinfectAddress(ctx context.Context, args *ArgsAddOrUpdateDelDisinfectFrontBase, reply *bool) error //消毒地点数据获取 GetDisinfectAddress(ctx context.Context, args *GetDisinfectFrontBase, reply *ReplyGetDisinfectFrontCommon) error //添加/更新消毒类型 AddOrUpdateDisinfectType(ctx context.Context, args *ArgsAddOrUpdateDelDisinfectFrontBase, replyId *int) error //删除消毒类型-软删除 DelDisinfectType(ctx context.Context, args *ArgsAddOrUpdateDelDisinfectFrontBase, reply *bool) error //消毒类型数据获取 GetDisinfectType(ctx context.Context, args *GetDisinfectFrontBase, reply *ReplyGetDisinfectFrontCommon) error //添加/更新消毒物品 AddOrUpdateDisinfectGood(ctx context.Context, args *ArgsAddOrUpdateDelDisinfectFrontBase, replyId *int) error //删除消毒物品-软删除 DelDisinfectGood(ctx context.Context, args *ArgsAddOrUpdateDelDisinfectFrontBase, reply *bool) error //消毒物品数据获取 GetDisinfectGoods(ctx context.Context, args *GetDisinfectFrontBase, reply *ReplyGetDisinfectFrontCommon) error //添加 环境消毒明细 AddSetting(ctx context.Context, args *ArgsEpidemicSettingInfo, reply *ReplyEpidemicSetting) error //删除 一条环境消毒明细 DeleteSetting(ctx context.Context, args *ArgsEpidemicSettingInfo, reply *ReplyEpidemicSetting) error //查询 环境消毒明细 GetSetting(ctx context.Context, args *ArgsEpidemicSettingInfo, reply *ReplyEpidemicSettingGet) error //添加 用品消毒明细 AddTackle(ctx context.Context, args *ArgsEpidemicTackleInfo, reply *ReplyEpidemicTackle) error //删除 一条用品消毒记录 DeleteTackle(ctx context.Context, args *ArgsEpidemicTackleInfo, reply *ReplyEpidemicTackle) error //查询 用品消毒 记录 GetTackle(ctx context.Context, args *ArgsEpidemicTackleInfo, reply *ReplyEpidemicTackleGet) error //添加/更新垃圾处理方式 AddOrUpdateGarbageDisposetType(ctx context.Context, args *ArgsAddOrUpdateDelDisinfectFrontBase, replyId *int) error //删除垃圾处理方式-软删除 DelGarbageDisposetType(ctx context.Context, args *ArgsAddOrUpdateDelDisinfectFrontBase, reply *bool) error //垃圾处理方式数据获取 GetGarbageDisposetType(ctx context.Context, args *GetDisinfectFrontBase, reply *ReplyGetDisinfectFrontCommon) error //添加/更新垃圾类型 AddOrUpdateGarbageType(ctx context.Context, args *ArgsAddOrUpdateDelDisinfectFrontBase, replyId *int) error //删除垃圾类型-软删除 DelGarbageType(ctx context.Context, args *ArgsAddOrUpdateDelDisinfectFrontBase, reply *bool) error //垃圾类型数据获取 GetGarbageType(ctx context.Context, args *GetDisinfectFrontBase, reply *ReplyGetDisinfectFrontCommon) error //添加 垃圾处理 记录 AddGarbage(ctx context.Context, args *ArgsEpidemicGarbageInfo, reply *ReplyEpidemicGarbage) error //删除 一条垃圾处理 记录 DeleteGarbage(ctx context.Context, args *ArgsEpidemicGarbageInfo, reply *ReplyEpidemicGarbage) error //查询 垃圾处理 记录 GetGarbage(ctx context.Context, args *ArgsEpidemicGarbageInfo, reply *ReplyEpidemicGarbageGet) error //添加 技师健康 记录 AddTechnician(ctx context.Context, args *ArgsEpidemicTechnicianInfo, reply *ReplyEpidemicTechnician) error //删除 一条技师健康 记录 DeleteTechnician(ctx context.Context, args *ArgsEpidemicTechnicianInfo, reply *ReplyEpidemicTechnician) error //查询 技师健康 记录 GetTechnician(ctx context.Context, args *ArgsEpidemicTechnicianInfo, reply *ReplyEpidemicTechnicianGet) error //查看门店当天的防疫情况 GetShopEpidemic(ctx context.Context, shopId *int, reply *ReplyGetShopEpidemic) error //添加 复工申请 AddWork(ctx context.Context, args *ArgsReturnWork, reply *ReplyReturnWork) error //查询 审核状态 GetVerify(ctx context.Context, args *ArgsReturnWork, reply *ReplyReturnWorkGet) error //门店添加员工登记 AddStaffRegister(ctx context.Context, args *ArgsAddStaffRegister, reply *int) error //门店查询员工登记 GetStaffRegister(ctx context.Context, args *ArgsGetStaffRegister, reply *ReplyGetStaffRegister) error //门店添加防控日报 AddDefendDaily(ctx context.Context, args *ArgsAddDefendDaily, reply *int) error //门店查询防控日报 GetDefendDaily(ctx context.Context, args *ArgsGetDefendDaily, reply *ReplyGetDefendDaily) error }
前台服务接口
type FundRecord ¶
type FundRecord struct { BusId int FundRecordList []FundRecordItem }
type FundRecordItem ¶
type GetAdvantageIdByShopId ¶
type GetBusAmountLogsPage ¶
type GetBusAmountLogsPage struct { Amount string //金额 Type int //记录类型 OrderType int //记录来源 FundType int //资金类型 CreateTime int //交易时间 CreateTimeStr string //交易时间格式化 }
获取资金明细
type GetBusCashLogsPage ¶
type GetBusDeposLogsPage ¶
type GetBusDeposLogsPage struct { Amount string //金额 Type int //记录类型 OrderType int //账单类型 CreateTime int //记录时间 CreateTimeStr string //记录时间格式化 RecordTime int //出入账时间 RecordTimeStr string //出入账时间格式化 }
获取存管明细
type GetDefendDaily ¶
type GetDisinfectFrontBase ¶
type GetGovBusListByPIdReplies ¶
type GetGovBusListByPIdReplies struct { TotalNum int Lists []GetGovBusListByPIdReply }
type GetGovBusListByPIdReply ¶
type GetGovShopListsBase ¶
type GetStaffRegister ¶
type GovBus ¶
type GovBus interface { //同步监管平台对接成功的商户数据 AnsyBus(ctx context.Context, args *ArgsAnsyBus, reply *bool) error //根据公司名称获取商家是否已对接 GetByCompanyname(ctx context.Context, args *ArgsGetByCompanyname, reply *ReplyGetByCompanyname) error //根据riskbusIds 获取商家的评论 GetCommentsByRiskbusids(ctx context.Context, riskBusIds *[]int, reply *map[int]ReplyGetCommentsByRiskbusids) error //监管平台添加商家发卡规则 - 暂停发卡 StopOrStartSell(ctx context.Context, args *ArgsStopOrStartSell, reply *bool) error //监管平台添加商家发卡规则 - 设置发卡上限额度 ChangeSellUplimiter(ctx context.Context, args *ArgsChangeSellUplimiter, reply *bool) error //获取商家的发卡状态 发卡额度情况 BusGovRule(ctx context.Context, busId *int, reply *ReplyBusGovRule) error }
type InputParamsReg ¶
type InputParamsReg struct { RecordsID int `form:"recordsId" json:"recordsId"` // recordsId 记录id CompanyName string `form:"companyName" json:"companyName"` // companyName 公司名称 ShopName string `form:"shopName" json:"shopName"` // shopName 企业/商户主体信息 CreditNo string `form:"creditNo" json:"creditNo"` // creditNo 企业/商户营业执照统一社会信用代码 BusinessType int `form:"businessType" json:"businessType"` // businessType 企业/商户类型 0=个体工商户 1=企业 HaripinType int `form:"hairpinType" json:"hairpinType"` // hairpinType 企业/商户发卡类型 Pid int `form:"pid" json:"pid"` // pid 省/直辖市ID Cid int `form:"cid" json:"cid"` // cid 城市ID Did int `form:"did" json:"did"` // did 区/县ID Tid int `form:"tid" json:"tid"` // tid 街道ID DistrictId int `form:"districtId" json:"districtId"` //district_id 商圈id SyntId int `form:"syntId" json:"syntId"` //synt_id 综合体id Address string `form:"address" json:"address"` // address 企业/商户实际经营地址 BindID int `form:"bindId" json:"bindId"` // bindId 企业/商户所属行业ID IndustryID int `form:"industryId" json:"industryId"` // industryId 企业/商户所属领域ID Phone string `form:"phone" json:"phone"` // phone 法人代表/负责人联系手机号码 ApplyPhone string `form:"applyPhone" json:"applyPhone"` // applyPhone 企业/商户备案申请人电话 Buslic string `form:"buslic" json:"buslic"` // buslic 经营场所营业执照 CardY string `form:"cardY" json:"cardY"` // cardY 法人代表/负责人身份证正面照片 CardN string `form:"cardN" json:"cardN"` // cardN 法人代表/负责人身份证反面照片 RealName string `form:"realName" json:"realName"` // realName DepositRatio float32 `form:"depositRatio" json:"depositRatio"` // depositRatio 资金存管留存比例 BoscID int `form:"boscId" json:"boscId"` // boscId 提交存管银行ID@cs_bosc表中的bosc_id字段 GovType int `form:"govType" json:"govType"` // govType 监管平台类型 1=宝山监管平台 MerchantID string `form:"merchantId" json:"merchantId"` // merchantId 企业/商户编号 RiskBusID int `form:"riskBusId" json:"riskBusId"` // riskBusId 企业/商户风控id FundManageMode int `form:"fundManageMode" json:"fundManageMode"` // fundManageMode 资金管理方式 1=保证保险 2=资金存管 DeposType int `form:"deposType" json:"deposType"` // deposType 存管账户类型 0=无存管 1=上海银行 2=交通银行 3=工商银行 DeposAccountInfo string `form:"deposAccountInfo" json:"deposAccountInfo"` // deposAccountInfo 存管账户信息 common.BsToken }
InputParamsReg InputParamsReg
type Member ¶
type Member interface { // 添加会员标签 AddTag(ctx context.Context, args *ArgsAddTag, reply *bool) error // 移除会员标签 RemoveTag(ctx context.Context, args *ArgsRemoveTag, reply *bool) error // 获取全部会员标签 GetTagList(ctx context.Context, args *common.BsToken, reply *[]ReplyTag) error // 添加会员 AddMember(ctx context.Context, args *ArgsMemberInfo, reply *bool) error // 获取会员列表 GetMemberList(ctx context.Context, args *ArgsMemberParam, reply *MemberList) error // 获取会员信息接口 GetMemberInfo(ctx context.Context, memberId *int, reply *ReplyMemberInfo) error // 获取会员详情接口 GetMemberDetail(ctx context.Context, memberId *int, reply *ReplyMemberDetail) error // 获取会员基础信息档案接口 GetMemberBase(ctx context.Context, memberId *int, reply *ReplyMemberBase) error // 修改会员基础信息档案接口 EditMemberBase(ctx context.Context, memberInfo *ArgsMemberBase, reply *bool) error // 平台会员快速成为门店会员 UserToMember(ctx context.Context, args *ArgsUserToMember, memberId *int) error // 根据uid获取店铺会员折扣信息 GetMemberRebateByUid(ctx context.Context, args *ArgsMemberRebate, reply *BusLevelDetail) error //根据手机号获取店铺会员信息-rpc GetUserInfoByPhoneRpc(ctx context.Context, args *ArgsGetUserInfoByPhone, reply *ReplyGetUserInfoByPhone) error //发送会员短信入参 SendMemberSms(ctx context.Context, args *ArgsSendMemberSms, reply *bool) error //确认消费完成,添加店铺会员消费数据统计 AddMemberConsumeCount(ctx context.Context, consumeLogId *int, reply *ReplyAddMemberConsumeCount) error //获取店铺会员消费数据 GetMemberConsumeCount(ctx context.Context, memberId *int, reply *ReplyGetMemberConsumeCount) error //购买卡包后,更新会员持卡的量,如果会员不存在则增加一条数据 AddMemberCardNum(ctx context.Context, relationId *int, reply *ReplyAddMemberConsumeCount) error //支付成功自动成为商家会员 PayUserJoin(ctx context.Context, orderSn *string, reply *bool) error // 获取会员总人数 GetMemberNum(ctx context.Context, args *ArgsRiskMemberNum, reply *ReplyRiskMemberNum) error //根据指定店铺的多个uid查询会员信息 -rpc GetMemberInfos(ctx context.Context, args *ArgsGetMemberInfo, reply *[]ReplyGetMemberInfo) error //根据手机号模糊匹配门店会员 GetUserInfoByPhoneMatch(ctx context.Context, args *ArgsGetUserInfoByPhoneMatch, reply *ReplyGetUserInfoByPhoneMatch) error //根据busid及uid 获取商户会员信息 GetUserInfoByBusAndUid(ctx context.Context, args *ArgsGetInfoByBusAndUid, reply *ReplyMemberDetail) error }
type MemberConsumeCountBase ¶
type MemberItem ¶
type MemberItem struct { MemberId int // 会员id Name string // 姓名 Phone string // 手机号 Gender int // 性别 Birth int // 生日 YYYYmmdd Uid int // 会员平台id Source Level int // 会员等级 ShopId int // 所属门店 ConsumeAmount string // 累计消费金额 ConsumeCount string // 累计消费次数 LastConsumeTime string // 最后消费时间 AllCard string // 总持卡数量 CreateTime string // 会员创建时间 }
type MemberLevel ¶
type MemberLevel interface { // 获取会员等级列表 GetLevel(ctx context.Context, args *common.BsToken, reply *[]Level) error // 获取会员等级详情列表 GetBusLevel(ctx context.Context, args *common.BsToken, reply *[]BusLevel) error // 获取会员等级详情列表2 GetBusLevel2(ctx context.Context, args *int, reply *[]BusLevel) error // 获取特定会员等级详细信息 GetBusLevelDetail(ctx context.Context, args *ArgsBusLevel, reply *BusLevelDetail) error // 获取特定会员等级详细信息 GetBusLevelDetail2(ctx context.Context, args *ArgsGetBusLevelDetail2, reply *BusLevelDetail) error // 修改会员等级信息 UpdateBusLevel(ctx context.Context, args *ArgsBusLevelDetail, reply *bool) error // 验证会员等级 VerfiyBusLevel(ctx context.Context, level *int, reply *bool) error //批量获取用户会员等级 GetUserLevelByUidsRpc(ctx context.Context, args *ArgsGetUserLevelByUids, reply *[]ReplyGetUserLevelByUids) error }
type MemberList ¶
type MemberList struct { Lists []MemberItem // 会员列表 TotalNum int // 总条数 }
type NoticeContext ¶
type NoticeContext interface { //后台 添加通知公告 AddNoticeContext(ctx context.Context, args *ArgsAddNoticeContext, reply *bool) error //后台 通知公告列表 NoticeContextList(ctx context.Context, args *ArgsNoticeList, reply *ReplyNoticeList) error //后台 通知公告详情 NoticeContextInfo(ctx context.Context, args *ArgsNoticeInfo, reply *ReplyNoticeInfo) error //后台 修改通知公告 UpdateNoticeContext(ctx context.Context, args *ArgsAddNoticeContext, reply *bool) error //后台 删除通知公告 DelNoticeContext(ctx context.Context, args *ArgsDelNoticeContext, reply *bool) error //查看商户Erp通知公告 GetNoticeContext(ctx context.Context, args *ArgsNoticeContext, reply *ReplyNoticeContext) error //获取通知列表信息 GetNoticeListInfo(ctx context.Context, args *ArgsNoticeListInfo, reply *ReplyNoticeListInfo) error }
通知公告服务接口
type NoticeContextInfo ¶
type Notify ¶
type Notify interface {
CallBackProcess(ctx context.Context, args *ArgsNotifyinfo, replies *bool) error
}
type NotifyInfo ¶
type NotifyInfo struct { CUST_ID string `json:"CUST_ID" mapstructure:"cust_id"` // json映射到->datamaper BUS_NAME string `json:"BUS_NAME" mapstructure:"bus_name"` //商户名称 THIRD_NO string `json:"THIRD_NO" mapstructure:"third_no"` //收单商户号 ACCOUNT_NAME string `json:"ACCOUNT_NAME" mapstructure:"account_name"` //结算账户名 ACCOUNT_NO string `json:"ACCOUNT_NO" mapstructure:"account_no"` //结算账号 BANK_NAME string `json:"BANK_NAME" mapstructure:"bank_name"` //开户行 AUTH_DATE string `json:"AUTH_DATE" mapstructure:"auth_date"` //进件审核时间 CUST_TYPE string `json:"CUST_TYPE" mapstructure:"cust_type"` //商户类型(1.普通商户 2.小微商户) AGE_CUST_ID string `json:"AGE_CUST_ID" mapstructure:"age_cust_id"` //所属机构号 AGE_NAME string `json:"AGE_NAME" mapstructure:"age_name"` //所属机构名称 MERGER_ID string `json:"MERGER_ID" mapstructure:"merger_id"` //客户经理编号 MERGER_NAME string `json:"MERGER_NAME" mapstructure:"merger_name"` //客户经理名称 MERGER_PH string `json:"MERGER_PH" mapstructure:"merger_ph"` //客户经理手机号 }
返回解析的信息
type OutputReplyReg ¶
OutputReplyReg OutputReplyReg
type RcardRechargeLog ¶
type RcardRechargeLog struct { RechargeLogId int //充值记录id RealPrice string //真实金额 SubOrderId int //订单ID@kc_card_order_card表中的id字段 PayOrderSn string //支付订单号 PayOrderId int //支付订单id PayChannel int //支付渠道 DepositRatio string //存管留存比例 DepositAmount string //总留存金额 HasRelaseAmount string //已经释放的留存资金 Amount string //确认消费使用的实际金额 LastConsumeFlag int //是否最后一次消费 1=是 0=否 }
充值卡的消费信息结构体
type RebateProduct ¶
type RebateService ¶
type ReplyAddMemberConsumeCount ¶
type ReplyAddMemberConsumeCount struct {
MemberId int
}
添加店铺会员表数据统计出参
type ReplyAdminBusAudit ¶
type ReplyAdminBusAudit struct {
BusId int // 商户id
}
ReplyAdminBusAudit 商户审核返回信息
type ReplyAdminBusAuditPage ¶
type ReplyAdminBusAuditPage struct { BusList []AdminBusAuditBase TotalNum int // 总数 }
ReplyAdminBusAuditPage 后台审核商户列表返回信息
type ReplyBatchBus ¶
type ReplyBatchBus struct { BusId int //企业/商户ID CompanyName string //企业/商户营业执照名称 BrandName string //企业/商户品牌名称 IndustryId int //企业/商户所属领域 MainBindId int //企业/商户所属主行业 BindId string //企业/商户所属兼营行业 BusinessType int //企业/商户类型 1=中小微企业 2=个体工商户 Pid int //企业/商户所属省份/直辖市 Cid int //企业/商户经营所属城市 Did int //企业/商户经营所属区/街道 Address string //企业/商户经营详细地址 }
批量获取企业/商户返回信息
type ReplyBranchExamine ¶
type ReplyBranchExamine struct { BusId int //企业/商户ID ShopId int //分店/店铺ID ShopName string //店铺名称 Address string //企业/商户经营详细地址 BusinessType int //企业/商户类型 1=中小微企业 2=个体工商户 Contact string //企业/商户联系人(负责人) ContactCall string //企业/商户联系电话(手机号或固话) IndustryId int //企业/商户所属领域 Ctime int //企业/商户入驻时间戳 BusinessImg int //企业/商户营业执照图片ID BrandImg int //企业/商户品牌LOGO ID MainBindId int //企业/商户所属主行业 BindId string //企业/商户所属兼营行业 CardYImg int //企业/商户法人代表身份证正面照片ID CardNImg int //企业/商户法人代表身份证背面照片ID Status int //企业/商户审核状态 0=待审核 1=审核失败 2=已通过审核 3=下架 4=上架 Pid int //企业/商户所属省份/直辖市 Cid int //企业/商户经营所属城市 Did int //企业/商户经营所属区/街道 Longitude float64 //经度 Latitude float64 //维度 }
分店/店铺详情返回信息
type ReplyBranchInfo ¶
type ReplyBranchInfo struct { BusId int // 企业/商户ID ShopId int // 分店/店铺ID ShopName string // 店铺名称 Status int // 企业/商户审核状态 0=待审核 1=审核失败 2=已通过审核 3=下架 BusinessType int // 企业/商户类型 1=中小微企业 2=个体工商户 Pid int // 企业/商户所属省份/直辖市 Cid int // 企业/商户经营所属城市 }
分店管理页面入返回
type ReplyBranchPageMgt ¶
type ReplyBranchPageMgt struct { TotalNum int Lists []ReplyBranchInfo }
type ReplyBusAssocInfo ¶
type ReplyBusGovRule ¶
type ReplyBusInfo ¶
type ReplyBusInfo struct { CompanyName string `mapstructure:"company_name"` BrandName string `mapstructure:"brand_name"` BrandImg int `mapstructure:"brand_img"` }
卡项服务获取Bus显示信息出参
type ReplyBusShopRegUp ¶
分店申请/更新返回信息
type ReplyBusUserType ¶
type ReplyBusUserType struct { UserType int //1=普通用户 2=企业/商户总账号 BusId int //企业/商户主体信息 当UserType=2时有值 BusStatus int //企业/主体状态 当UserType=2时有值 0=待审核 1=审核失败 2=审核通过 3=下架 IsindividualBusiness int //是否为个体工商户 1=是 2=否 CompanyInfo ReplyCompanyInfo //企业/商户其它信息 FundMode int //资金管理方式 当UserType=2时有值 1=资金存管 2=保证保险 DeposBankChannel int //资金存管银行 Shops []int //分店ID信息 ShopLists []ReplySimpleShopInfo }
检测用户类型返回信息
type ReplyBusinessType ¶
企业/商户性质返回信息
type ReplyCategoryType ¶
前台支出类目信息
type ReplyCheckShopUser ¶
type ReplyCheckShopUser struct { Id int //用户ID ShopId int //分店ID BusId int //企业/商户ID StaffId int //员工ID RoleId int //角色ID Ctime int64 //创建时间 }
rpc查询返回参数
type ReplyCompanyInfo ¶
企业商户其它信息
type ReplyDeposCcbInfo ¶
type ReplyDeposCcbInfo struct { BusId int AcctName string // 子账户名 AcctNo string // 子账号 DepositRatio string // 留存比例 MerchantId string // 存管商户编号 }
建行结算账户信息
type ReplyDeposSandInfo ¶
type ReplyDeposSandInfo struct { BusId int AcctName string // 子账户名 AcctNo string // 子账号 BankName string // 留存比例 BankNo string // 存管商户编号 DepositRatio string // 留存比例 }
杉德结算账户信息
type ReplyDisburseDetailInfo ¶
type ReplyDisburseDetailInfo struct { TotalNum int Lists []DisburseDetailInfo }
查询支出明细返回
type ReplyEpidemicGarbageGet ¶
type ReplyEpidemicGarbageGet struct { TotalNum int Lists []EpidemicGarbageGetBase }
前台 疫情防控 垃圾处理 信息返回
type ReplyEpidemicSettingGet ¶
type ReplyEpidemicSettingGet struct { TotalNum int Lists []EpidemicSettingGetBase }
前台 疫情防控 环境消毒 查询返回
type ReplyEpidemicTackleGet ¶
type ReplyEpidemicTackleGet struct { TotalNum int Lists []EpidemicTackleGetBase }
前台 疫情防控 用品消毒 信息返回
type ReplyEpidemicTechnicianGet ¶
type ReplyEpidemicTechnicianGet struct { TotalNum int Lists []EpidemicTechnicianGetBase }
前台 疫情防控 技师健康 信息返回
type ReplyEsAdminBusInfo ¶
type ReplyEsAdminBusInfo struct {
AdminBusAuditBase
}
ReplyEsAdminBusInfo ReplyEsAdminBusInfo
type ReplyGetAdvantageIdByShopId ¶
type ReplyGetAdvantageIdByShopId struct { GetAdvantageIdByShopId Advantages []public.AdvantageBase }
type ReplyGetBusAmountLogs ¶
type ReplyGetBusAmountLogs struct { TotalNum int Lists []GetBusAmountLogsPage }
type ReplyGetBusCashLogsPage ¶
type ReplyGetBusCashLogsPage struct { TotalNum int Lists []GetBusCashLogsPage }
type ReplyGetBusDeposInfo ¶
type ReplyGetBusDeposInfo struct { OpenDepos int //是否开通存管账户 0=否 1=是 AcctInfo AccountInfo //存管账户信息 DepInfo DeposInfo //资金信息 Cid int //商家所在城市id }
type ReplyGetBusDeposLogs ¶
type ReplyGetBusDeposLogs struct { TotalNum int Lists []GetBusDeposLogsPage }
type ReplyGetBusDisburse ¶
type ReplyGetBusDisburse struct { Details []CateDetail TotalDisburse string }
前台 查询支出汇总返回
type ReplyGetByCompanyname ¶
type ReplyGetDefendDaily ¶
type ReplyGetDefendDaily struct { TotalNum int Lists []GetDefendDaily }
添加 门店企业复工防控日报 返回值
type ReplyGetDisinfectFrontCommon ¶
type ReplyGetDisinfectFrontCommon struct { TotalNum int Lists []DisinfectFrontBase }
type ReplyGetGovBusComment ¶
type ReplyGetGovShopLists ¶
type ReplyGetGovShopLists struct { TotalNum int Lists []GetGovShopListsBase }
type ReplyGetMemberConsumeCount ¶
type ReplyGetMemberConsumeCount struct {
MemberConsumeCountBase
}
获取店铺会员消费数据出参
type ReplyGetMemberInfo ¶
type ReplyGetNearbyShopInfo ¶
type ReplyGetNearbyShopInfo struct { ReplyShopInfo ReguInfoDesc string DistrictNames string //商圈名称 DName string //区名称 IndustryName string // 所属领域 Distance float64 //距离,默认单位:米 CommentNum int // 评论量 AvgPrice float64 // 平均消费价格 PriceScore float64 // 技师评分 EnvirScore float64 // 环境评分 ServiceScore float64 // 服务评分 ComprehensiveScore float64 // 店铺综合评分 OthersShopNum int //其它分店数量 IndexImgs map[int]file.ReplyFileInfo BindIndus map[int]string Advantages []public.AdvantageBase }
type ReplyGetShopEpidemic ¶
type ReplyGetShopEpidemic struct { EpidemicSetting []EpidemicSettingGetBase // 环境消毒 EpidemicTackle []EpidemicTackleGetBase // 物品消毒 StaffHealth EpidemicTechnician // 员工健康状况 }
查看门店当天的防疫情况出参
type ReplyGetShopReportRankByShopID ¶
type ReplyGetShopReportRankByShopID struct { ShopId int //分店ID BusId int //企业/商户主体ID PriceTotal int //价格评分 ServiceTotal int //服务评分 EnvirTotal int //环境评分 TotalNum int // 总记录 }
根据分店ID获取分店评价数据出参
type ReplyGetStaffRegister ¶
type ReplyGetStaffRegister struct { TotalNum int Lists []GetStaffRegister }
查询 门店企业复工员工登记 返回值
type ReplyGetUserInfoByPhone ¶
type ReplyGetUserInfoByPhoneMatch ¶
type ReplyGetUserInfoByPhoneMatch struct {
Lists []ReplyGetMemberInfo
}
根据手机号模糊匹配门店会员-出参
type ReplyGetUserLevelByUids ¶
type ReplyMemberBase ¶
type ReplyMemberBase struct { MemberId int // 会员id BusId int // 店铺/商户id ShopId int // 门店id Uid int // 900岁会员id Name string // 姓名 Phone string // 手机号 Gender int // 性别 CardNum string // 身份证 CreateTime int // 成为会员时间 CreateTimeStr string // 成为会员时间 Birth int // 生日 YYYY-mm-dd Source Level int // 会员等级 Pid int // 省id Cid int // 市id Did int // 县区id Address string // 详细地址 Remark string // 备注 HideData []HideData // 隐藏数据 Tag []Tag // 会员标签 }
type ReplyMemberDetail ¶
type ReplyMemberDetail struct { MemberId int // 会员id BusId int // 店铺/商户id RiskBusId int //风控系统busId ShopId int // 门店id ShopName string // 门店名称 Uid int // 900岁会员id Name string // 姓名 Phone string // 手机号 Gender int // 性别 CardNum string // 身份证 CreateTime int // 成为会员时间 CreateTimeStr string // 成为会员时间 Birth int // 生日 YYYY-mm-dd Source Level int // 会员等级 LevelName string // 会员等级 ConsumeAmount string // 累计消费金额 ConsumeCount int // 累计消费次数 LastConsumeTime int // 最后消费时间 LastConsumeTimeStr string // 最后消费时间 AllCard int // 累计卡数量 UseCard int // 当前可用卡数量 AllRights int // 累计权益 UseRights int // 当前可用权益 AllCoupon int // 所有优惠卷 UseCoupon int // 当前可用优惠卷 }
type ReplyMemberInfo ¶
type ReplyMemberInfo struct { Id int // 会员id BusId int // 店铺/商户id ShopId int // 门店id Uid int // 900岁会员id Name string // 姓名 Phone string // 手机号 Gender int // 性别 CardNum string // 身份证 CreateTime int // 身份证 Birth int // 生日 YYYY-mm-dd Source Level int // 会员等级 Pid int // 省id Cid int // 市id Did int // 县区id Address string // 详细地址 Remark string // 备注 HideData []HideData // 隐藏数据 Tag []int // 会员标签 }
type ReplyMemberStatisData ¶
type ReplyMemberStatisData struct { TodayTotalNum int //今日总增长数 YesterdayTotalNum int //昨日总增长数 UpDown float64 //较昨日涨跌幅度 }
获取总店/分店新增会员数出参
type ReplyNoticeContext ¶
type ReplyNoticeContext struct { TotalNum int NoticeContextInfo }
查看商户Erp通知公告返回参数
type ReplyNoticeInfo ¶
type ReplyNoticeList ¶
type ReplyNoticeList struct { TotalNum int Lists []NoticeContextInfo }
type ReplyNoticeListInfo ¶
type ReplyNoticeListInfo struct { TotalNum int Lists []NoticeContextInfo }
返回 获取通知列表信息
type ReplyOthersShopList ¶
type ReplyOthersShopList struct { TotalNum int Lists []ReplyShopInfos }
type ReplyQueryCompany ¶
type ReplyQueryCompany struct { CompanyName string //企业名称 LegalPhone string //法定代表人/负责人手机号 LegalPhoneMark string //打马赛克法定代表人/负责人手机号 SignCode string //信息对接唯一标识 }
sass查询企业信息入参
type ReplyRiskMemberNum ¶
获取风控系统商铺ID 门店总数返回值
type ReplyRiskShopNum ¶
获取风控系统商铺ID 门店总数返回值
type ReplyShopCollectList ¶
type ReplyShopCollectList struct { TotalNum int Lists []ShopCollectBase }
店铺收藏返回信息
type ReplyShopCollectStatus ¶
type ReplyShopCollectStatus struct {
CollectStatus int //用户收藏状态 0:表示未收藏,1:已收藏
}
店铺返回状态
type ReplyShopInfo ¶
type ReplyShopInfo struct { ShopId int //分店ID BusId int //总店ID CompanyName string //分店工商营业执照名称 ShopName string //分店门店名称 BranchName string //分店名称 IndustryId int //分店所属领域 MainBindId int //分店所属主行业 BindId string //分店所属兼营行业 DistrictId string //分店所属商圈,多个使用逗号隔开 SyntId int //分店所属综合体id BusinessHoursStart string //分店营业开始时间 格式:09:00 BusinessHoursEnd string //分店营业结束时间 格式:10:00 BusinessHours string //分店营业时间 格式如:09:00-10:00 BusinessHoursType int //营业时间范围 1=非全天 1=全天 WeekDate WeekDateParams //营业日期 BusinessImg int //营业执照ID ShopImg int //分店门店照ID SanImg int //食品卫生许可证ID EduImg int //教育许可证ID Pid int //分店经营所属省份/直辖市 Cid int //分店经营所属城市 Did int //分店经营所属区/街道 Tid int //分店经营所属区下的镇/乡ID Status int //分店审核状态 0=待审核 1=审核失败 2=已通过审核 3=下架 Address string //分店经营详细地址 Contact string //分店联系人(负责人) ContactCall string //分店联系电话(手机号或固话) Longitude float64 //经度 Latitude float64 //维度 ReviewTime int64 //审核通过时间戳 Ctime int64 //分店入驻时间 FundMode int //资金管理方式 0=未知 1=存管 2=保险 IsCredit int //是否申请过信用报告 0=否 1=是 SafeCode int //商家安全码颜色 1=黑色 2=红色 3=黄色 4=绿色 DenialReason string //分店拒绝审核理由 Assoc ReplyBusAssocInfo //卡协会员 ShopDetail BusShopDetail //分店详细信息 }
获取门店详情返回信息
type ReplyShopInfos ¶
type ReplyShopInfos struct { ShopId int //分店ID BusId int //总店ID CompanyName string //分店工商营业执照名称 ShopName string //分店门店名称 BranchName string //分店名称 Address string //分店详细地址 IndustryId int //分店所属领域 MainBindId int //分店所属主行业 IndusName string //分店所属行业字符串 Status int //分店状态 0=待审核 1=审核失败 2=审核通过 3=已下架 Contact string //负责人姓名 ContactCall string //负责人联系电话 BindId string //分店所属兼营行业 Did int DistrictId string //商圈id,多个使用逗号隔开 SyntId int //分店所属综合体id CommentScore float64 // 店铺综合评分 Longitude float64 //经度 Latitude float64 //维度 BusinessHours string //分店营业时间 格式如:09:00-10:00 WeekDate WeekDateParams Ctime string //入驻时间 ShopImg int //分店门店照ID ShopImgUrl string //图片地址 Distance float64 //距离,默认单位:米 SafeCode int //商家安全码颜色 1=黑色 2=红色 3=黄色 4=绿色 DenialReason string //分店拒绝审核理由 }
批量获取分店返回信息
type ReplyShopName ¶
type ReplyShopRole ¶
type ReplyShopRole struct { RoleId int RoleName string RoleDesc string IsReserved int //是否为固化字段 0=普通 1=固化角色(系统角色) Ctime int64 CtimeStr string }
返回分店角色信息
type ReplyShopRoleUser ¶
type ReplyShopRoleUser struct { Lists []ReplyShopRoleUserInfo TotalNum int }
返回分店角色用户信息
type ReplyShopRoleUserInfo ¶
type ReplyShopRoleUserInfo struct { Id int //用户ID StaffId int //员工ID Name string //员工名称 NickName string //员工昵称 RoleId int //角色ID RoleName string //角色名称 Ctime int64 //创建时间 CtimeStr string //创建日期字符串 }
返回分店角色用户信息详情
type ReplyShopStatisData ¶
type ReplyShopStatisData struct { CashTotalAmount float64 //兑付总金额 TotalAmount float64 //营业额 MemberPayNum int //会员购买笔数 GuestPayNum int //散客购买笔数 ConsumeNum int //会员消费笔数 }
获取门店营业数据返回数据
type ReplySimpleShopInfo ¶
type ReplySimpleShopInfo struct { BusId int //企业/商户ID ShopId int //分店ID CompanyName string //分店工商营业执照名称 ShopName string //分店门店名称 BranchName string //分店名称 Contact string //负责人姓名 ContactCall string //负责人联系电话 Ctime int64 //入驻时间时间戳 CtimeStr string //入驻时间字符串 }
获取门店简易信息-切换使用
type ReplySingleBus ¶
type ReplySingleBus struct { BusId int //企业/商户ID MerchantId string //企业/商户编号 RiskBusId int //风控系统busId CompanyName string //企业/商户营业执照名称 BrandName string //企业/商户品牌名称 IndustryId int //企业/商户所属领域 MainBindId int //企业/商户所属主行业 BindId string //企业/商户所属兼营行业 DistrictId int //商圈id,多个使用逗号隔开 SyntId int //所属综合体id BusinessType int //企业/商户类型 1=中小微企业 2=个体工商户 HairpinType int //企业/商户发卡类型 1=个体工商户 2=其他发卡企业 3=集团发卡企业 4=品牌发卡企业 5=规模发卡企业 Pid int //企业/商户所属省份/直辖市 Cid int //企业/商户经营所属城市 Did int //企业/商户经营所属区/街道 Tid int //区域下属镇/街道ID DeposBankChannel int //资金存管银行渠道 1=上海银行 2=交通银行 Status int //企业/商户审核状态 0=待审核 1=审核失败 2=已通过审核 3=下架 Address string //企业/商户经营详细地址 Contact string //企业/商户联系人(负责人) ContactCall string //企业/商户联系电话(手机号或固话) BusinessImg int //企业/商户营业执照图片ID CardYImg int //企业/商户法人代表身份证正面照片ID CardNImg int //企业/商户法人代表身份证背面照片ID BrandImg int //企业/商户品牌LOGO ID Ctime int //企业/商户入驻时间戳 Account ReplySingleBusAccount //企业/商户主体银行账户 InsuranceChannel int //保险渠道 PayChannel int //支付渠道 FundMode int //资金管理方式 SafeCode int //商家安全码颜色 1=黑色 2=红色 3=黄色 4=绿色 }
企业/商户主体返回信息
type ReplySingleBusAccount ¶
type ReplySingleBusAccount struct { BankAccount string //账户 BankAccountNo string //账号 BankType int //银行类型 BankAccountType int //账户类型 }
企业/商户主体返回信息-主体银行账户信息
type ReplyUpdateRiskBusSafeCode ¶
type ReplyUpdateRiskBusSafeCode struct {
BusId int
}
type SettingBsBindIdArgs ¶
type Shop ¶
type Shop interface { //分店信息申请 ShopSettled(ctx context.Context, args *ArgsBusShopReg, reply *ReplyBusShopRegUp) error //分店信息更新 ShopUpdate(ctx context.Context, args *ArgsBusShopRepeat, reply *ReplyBusShopRegUp) error //获取分店-根据分店ID GetShopByShopid(ctx context.Context, args *ArgsGetShop, reply *ReplyShopInfo) error //批量获取分店-根据分店IDS GetShopByShopids(ctx context.Context, args *ArgsGetShops, reply *[]ReplyShopInfos) error //批量获取分店-企业/商户ID GetShopByBusId(ctx context.Context, args *ArgsBusId, reply *[]ReplyShopInfos) error //验证分店的正确性 CheckBusShop(ctx context.Context, args *ArgsCheckShop, reply *ReplyCheckShop) error //更新分店设置入参 UpdateBusShopSetting(ctx context.Context, args *ArsgUpdateBusShopSetting, reply *bool) error //实现批量获取分店详细地址和封面图片-根据批量分店id GetShopAddressAndImgByIdS(ctx context.Context, args *[]int, reply *map[int]map[string]interface{}) error // 附近门店详情 GetNearbyShopInfo(ctx context.Context, args *ArgsGetNearbyShopInfo, reply *ReplyGetNearbyShopInfo) error // 门店详情-其他分店 GetOthersShopList(ctx context.Context, args *ArgsOthersShopList, reply *ReplyOthersShopList) error //增加分店评价统计Rpc AddBusShopReportRpc(ctx context.Context, args *ArgsAddBusShopReportRpc, reply *bool) //根据分店ID获取分店评价数据 GetShopReportRankByShopID(ctx context.Context, shopId *int, reply *ReplyGetShopReportRankByShopID) error //获取分店人均消费数据 GetShopReportCapitaByShopId(ctx context.Context, args *ArgsGetShopReportCapita, reply *ReplyGetShopReportCapita) error //商户服务-分店人均消费统计 AddShopReportCapitaRpc(ctx context.Context, args *ArgsAddShopReportCapita, reply *bool) error //添加门店包含的优势标签 AddShopAdvantage(ctx context.Context, args *ArgsAddShopAdvantage, reply *bool) error //获取门店包含的标签 GetAdvantageIdByShopId(ctx context.Context, args *ArgsGetAdvantageIdByShopId, reply *ReplyGetAdvantageIdByShopId) error //添加门店收藏 UserShopCollect(ctx context.Context, args *ArgsUserShopCollect, reply *bool) error //用户收藏列表 ShopCollectList(ctx context.Context, args *ArgsShopCollectList, reply *ReplyShopCollectList) error //店铺收藏状态 ShopCollectStatus(ctx context.Context, args *ArgsShopCollectStatus, reply *ReplyShopCollectStatus) error // 获取风控系统商铺ID 门店总数 GetRiskShopNum(ctx context.Context, args *ArgsRiskShopNum, reply *ReplyRiskShopNum) error //监管平台直连接口-商户下的分店 GetGovShopLists(ctx context.Context, args *ArgsGetGovShopLists, reply *ReplyGetGovShopLists) error }
type ShopCollectBase ¶
type ShopCollectBase struct { ShopId int //分店ID CompanyName string //分店工商营业执照名称 ShopName string //分店门店名称 BranchName string //分店名称 Address string //分店经营详细地址 IndustryId int //分店所属领域 IndusName string //行业类型、多个字符串分割 DistrictNames string //商圈名称 DName string //区名称 MainBindId int //分店所属主行业 Status int //分店审核状态 0=待审核 1=审核失败 2=已通过审核 3=下架 BindId string //分店所属兼营行业 Contact string //分店联系人(负责人) Longitude float64 //经度 Latitude float64 //纬度 ContactCall string //分店联系电话(手机号或固话) BusinessHours string //分店营业时间 格式如:09:00-10:00 Ctime string //分店入驻平台时间 ShopImg int //分店门店照ID ShopImgUrl string //分店门店照url ShopImgHash string //分店门店照hash Distance float64 //距离,默认单位:米 ComprehensiveScore float64 // 店铺综合评分 SafeCode int //商家安全码颜色 1=黑色 2=红色 3=黄色 4=绿色 }
门店基本信息
type ShopStatistics ¶
type ShopStatistics interface { //支付成功,统计门店的经营数据 StatisBuy(ctx context.Context, orderSn *string, reply *bool) error //确认消费完成,统计门店的消费数据 StatisConsume(ctx context.Context, consumeLogId *int, reply *bool) error //获取门店的营业数据 ShopStatisData(ctx context.Context, args *ArgsShopStatisData, reply *ReplyShopStatisData) error //获取总店/分店新增会员数 MemberStatisData(ctx context.Context, args *ArgsMemberStatisData, reply *ReplyMemberStatisData) error }
type WeekDateParams ¶
type WeekDateParams struct { WeekMonStatus int //周一状态,0:关闭,1-开启 WeekTuesStatus int //周二状态,0:关闭,1-开启 WeekWedStatus int //周三状态,0:关闭,1-开启 WeekThurStatus int //周四状态,0:关闭,1-开启 WeekFriStatus int //周五状态,0:关闭,1-开启 WeekSatStatus int //周六状态,0:关闭,1-开启 WeekSunStatus int //周日状态,0:关闭,1-开启 }
日期