api.url.js 5.12 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/?s='
    alias: 'App.TestManagement.TestReal', //真实接口名称,默认为空
  },

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

  //建立预定关系
  '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,
  },

  //商家列表
  'App.Customer.SellerList': null,

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

  // 修改当前预定状态 0:待确认,1:已定座,2:确认到店,3:用餐完成
  'App.Reserve.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,
  },

  //查询短信剩余及套餐
  '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':null,
  //统计某个商家某月预定总数
  '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':null,

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

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

  //编辑、增加商家信息
  'App.Invitation.SetSellerInfo':null,

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

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

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

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

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

  //根据客户经理openid 获取当前用户预定列表
  'App.Invitation.InvitationList':null,

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