api.url.js 8.58 KB
export default {
  //示例,JS接口名,和服务端接口名称保持一致
  'App.TestManagement.Test': {
    silence: true,       //静默,不带loading;         默认 true 不带loading
    cachetime: 0,          //缓存 0无,-1永久,86400秒;    默认 0 不缓存
    timeout: 2000,      //接口超时时间,默认2s
    host: '',             //默认空使用04服务器,测试填写 'https://xt05.colorcun.com:10006/?s='
                          //ximing http://www.dzapi.com/index.php?s=
    alias: 'App.TestManagement.TestReal', //真实接口名称,默认为空
    msgSecCheck:true, //进行内容安全检查
  },

  //预订信息详情
  'App.Reserve.Detail': {
    cachetime: 30,
    openid:'openid',
  },

  //建立预订关系
  'App.Reserve.SetRelaOpenid': {
    cachetime: -1,
  },

  //增加顾客信息
  'App.Reserve.AddUser': {
    cachetime: -1,
  },

  //邀请详情页面----设置分享信息
  'App.Reserve.SetTopicFromShare': null,

  //列表----我的日程
  'App.Reserve.GetListFromScheAndRes': {
    //cachetime: 30,
  },

  //订座详情页面----我愿意
  'App.Reserve.SetRelaSuccess': {
    silence: false,
  },

  //定个座儿 获取商户信息
  'App.Reserve.SellerInfo': {
    cachetime: 300,
  },

  //设置客户经理
  'App.Reserve.SetReserveCusman': null,

  //发送短信
  'App.SendSMS.Message': {
    silence: false,
  },
  //手机号搜索
  'App.Reserve.GetReserveUser': null,

  //预订列表
  'App.Reserve.GetReserveList': {
    silence: false,
    alias:'App.Reserve.NewGetReserveList'
  },

  //地图页-商家
  'App.Customer.SellerList': {
    //alias: 'App.Customer.NewSellerList'
  },

  //地图页-商家-列表
  'App.Customer.SellerLists':{
    //alias: 'App.Customer.NewSellerLists'
  },

  //桌位列表
  'App.Tables.GetTableListsBySellerId': {
    cachetime: 60,
  },

  //获得推荐桌位
  'App.Reserve.GetTableList':{
    alias:'App.Reserve.NewGetTableList'
  },

  //录入预订
  'App.Reserve.SetReserveInfo':{
    alias:'App.Reserve.NewSetReserveInfo'
  },

  // 修改当前预订状态 0:待确认,1:已定座,2:确认到店,3:用餐完成
  'App.Reserve.SetReserveStatus': {
    silence: false,
  },
  //分离后的在线预订专用修改当前预订
  'App.Customer.SetReserveStatus': {
    silence: false,
  },

  //修改当前桌子是否启用 0:未启用,1:启用
  'App.Reserve.SetSwitchStatus': {
    silence: false,
  },

  //进行商户判断
  'App.Reserve.SellerForOpenid': null,

  //商户端账号表增加订座儿openid
  'App.Reserve.UpdateSellerUser': {
    cachetime: 60,
  },

  //导出
  'App.Reserve.ExportReserve': {
    silence: false,
    alias:'App.Reserve.NewExportReserve'
  },

  //查询短信剩余及套餐
  'App.Reserve.SmsInfo': {
    alias: 'App.SendSMS.SmsInfo',
    cachetime: 60,
  },

  //生成支付签名接口
  'App.Reserve.SmsBuy': {
    alias: 'App.Pay.WxPaySub',
  },

  /**短信营销**/
  //App.Reserve.SmsBatchUpdate 新增或编辑短信
  'App.Reserve.SmsBatchUpdate': {
    silence: false,
  },
  //App.Reserve.SmsBatchList 营销短信列表
  'App.Reserve.SmsBatchList': null,
  //App.Reserve.SmsBatchInfo 营销短信详细
  'App.Reserve.SmsBatchInfo': {
    silence: false,
  },
  //App.Reserve.GetReservePhones 获取可发短信的客户列表
  'App.Reserve.GetReservePhones': null,
  //App.Reserve.SmsBatchSend 短信发送
  'App.Reserve.SmsBatchSend': {
    alias:'App.SendSMS.SmsBatchSend',
    silence: false,
  },
  //统计某个商家某天预订总数
  'App.Reserve.ReservesCountDay':{
    alias:'App.Reserve.NewReservesCountDay',
  },
  //统计某个商家某月预订总数
  'App.Reserve.ReservesCountMonth':{
    cachetime: 300,
  },

  /**提前点餐**/
  'App.Advance.CreateOrder':{
    //silence: false,
  },
  //菜品列表
  'App.Advance.GetCookbookByClass': null,
  //菜品规格
  'App.Advance.GetCookbookSelBySpecsId': null,
  //添加到购物车
  'App.Advance.AddCart': null,
  //减菜
  'App.Advance.ReduceOrder': null,
  //设置人数,设置备注
  'App.Advance.SetOrderById':null,
  //清空购物车
  'App.Advance.RemoveCart': {
    silence: false,
  },
  //菜品备注tags
  'App.Advance.GetRemarkBySellerid':{
    cachetime: 300,
  },
  //下单
  'App.Advance.PlaceOrder':null,

  /**crm**/
  'App.Reserve.Members':null,
	
	//常用备注
	'App.User.GetCustomRemark':null,
	
	//添加备注
	'App.User.AddCustomRemark':null,

  //运营发送消息demo
  'App.Reserve.OperationalMessagePush':{
    silence: false,
  },

  //顾客端配置信息、菜系
  'App.Reserve.GetCustomerConfig':{
    cachetime: 1800,
  },

  //C端商家详情
  'App.Customer.GetSellerDetail':null,

  //是否收藏
  'App.Customer.IsCollectionSeller':null,

  //顾客收藏、取消收藏店铺
  'App.Customer.SetCollectionRel':null,

  //顾客收藏的店铺列表
  'App.Customer.GetCollectionSellerList':null,

  /**
   * 邀请函
   */
  //根据订座的openid 获取当前用户身份
  'App.Invitation.UserIdentity':{
    openid:'openid',
  },

  //增加客户经理基本信息
  'App.Invitation.AddInvitationUser':{
    openid:'openid',
  },

  //获取商家列表
  'App.Invitation.GetSellerList':{
    //cachetime: -1,
    openid:'openid',
  },

  //编辑、增加商家信息
  'App.Invitation.SetSellerInfo':{
    openid:'openid',
    msgSecCheck:true,
  },

  //修改、录入邀请函信息,同时生成对应的商家信息
  'App.Invitation.SetInvitationInfo':{
    silence: false,
    openid:'openid',
    msgSecCheck:true,
  },

  //邀请函详情
  'App.Invitation.Detail':null,

  //客户经理、预订人、受邀人信息建立
  'App.Invitation.SetInvitationRel':{
    //cachetime: -1,
    openid:'inviting',
  },

  //受邀人同意参加,修改关系状态
  'App.Invitation.SetInvitationConfirm':{
    openid:'openid',
  },

  //根据客户经理openid 获取当前用户所负责的顾客
  'App.Invitation.Members':{
    openid:'openid',
  },

  //根据客户经理openid 获取当前用户预订列表
  'App.Invitation.InvitationList':{
    openid:'openid',
  },
  //该区域是否有商家活动  0/1   无/有
  'App.Customer.IsSetActivity':null,

  //商家活动列表
  'App.Customer.GetActivitySellerList':null,

  //上传图片,只能上传单个图片文件
  'App.Examples_Upload.UploadQn':null,

  //获得客户经理新顾客数
  'App.Reserve.GetNewCustomerTotal':{
    openid:'openid',
    cachetime: 60,
  },

  //根据腾讯地点搜索api整合现有商家
  'App.Customer.SearchMap':null,

  //根据腾讯地点搜索api整合现有商家
  'App.Customer.KeywordTips':null,

  //设置C端用户常用信息
  'App.Customer.SetCustomerInfo':{
    openid:'openid',
    silence:false,
    msgSecCheck:true,
  },

  //根据openid获取用的常用信息
  'App.Customer.GetCustomerInfo':{
    openid:'openid',
    cachetime: -1,
  },

  //C端录入预定
  'App.Customer.SetReserveInfo':{
    openid:'openid',
    silence:false,
    msgSecCheck:true,
  },

  //获得小程序码
  'App.Other.generate_qrcode':{
    host: 'https://cli.im/mina/',
    alias:'generate_qrcode'
  },

  // 设置到店时间   rid=??&ddate=??
  'App.Customer.SetDdate':{
    openid:'openid',
    silence:false,
  },

  //我的订单
  'App.Customer.GetMyOrder':null,

  // 预定失败推荐商家接口
  'App.Customer.GetRecommendSellerList':null,

  // 用户订单为空时推介商家
  'App.Customer.GetRecommendSellerLists':null,
	
	//获取营业时间段满房接口
	'App.Customer.GetHouseFullDateTimes':null,
	
	//根据指定年份月份获取当月满房的日期
	'App.Customer.GetHouseFullDate':null,
	
	//获取微信用户绑定的手机号
	'App.Customer.GetCustomerTel':null,
	
	//根据openid及联系电话删除对应的数据 将其状态改为0
	'App.Customer.DelCustomerInfo':{
		openid:'openid'
	},
	
	//在线预订配置-获取商家包间分类
	'App.Seller.GetSellerTableClass':null,
	
	
	//置满包间分类
	'App.Seller.SetTableClassFull':null,
	
	//获取包间置满日期
	'App.Customer.GetTableFillUpDate':null,

  //提供openid获取身份信息
  'App.Seller.VerificationIsAdmin':{
    cachetime: 1800,
  },

  //搜索相关
  'App.Customer.SetHistorySearch':{
    openid:'openid'
  },
  //搜索相关
  'App.Customer.DelHistorySearch':{
    openid:'openid'
  },
  //搜索相关
  'App.Customer.GetHistorySearch':{
    openid:'openid',
    cachetime: -1,
  },
  //查看短信内容
  'App.SendSMS.GetSmsContent':null,
  //发送短信
  'App.SendSMS.NewMessage':null,

  //商户修改在线预定
  'App.Customer.SetReserveInfoById':null,
  //生成小程序码
  'App.System.GetWxLiteCode':null,
  //获取在线预定列表
  'App.Reserve.GetOnlineReserveList':null,
	
}