class CommonApi {
  ///----------get
  static const String getCode = '/resource/sms/code'; // 发送短信验证码 {'phonenumber'}
  // /app/member/sms/code
  static const String getDelCode = '/app/member/sms/code'; // 发送短信验证码 {'templateId'}

  static const String accountInfo = '/app/member/info'; // 账户基本信息

  /// 用户钱包，积分，商家资料信息 /app/member/account
  static const String userAccount = '/app/member/account';

  ///---------post
  static const String login = '/auth/login'; // 登录 {'phonenumber': '', 'smsCode': '', 'clientId': '428a8310cd442757ae699df5d894f051', 'grantType': 'sms'};
  static const String checkVersion = '/app/version/page'; // 查询app版本 {'platformType': Platform.isAndroid ? 'android' : 'ios','status': 1}
  static const String uploadFile = '/resource/oss/upload';

  ///[source]=wechat_open [clientId]=428a8310cd442757ae699df5d894f051 [grantType]=social [socialState]=1
  static const String wxLogin = '/app/member/bind/wechat';

  /// 获取字典枚举 用户注销[member_revoked]
  static const String dictionaryApi = '/app/sys/dict/type/';

  // 聚合搜索
  static const String aggregationSearchApi = '/app/common/search';

  ///余额充值 [money]金额
  // {
  //   "orderType": "RECHARGE","ORDER"
  //   "clientType": "APP",
  //   "paymentMethod": "WECHAT",
  //   "paymentClient": "APP",
  //   "money": 100
  // }
  static const String wechatPay = '/app/payment/pay';

  ///余额提现
  // {
  //   "money": "1",
  //   "method": "1",
  // }
  static const String withdraw = '/app/member/withdraw';

  ///注销 /app/member/revoked
  static const String revoked = '/app/member/revoked';

  /// 获取账单信息 [source]=3
  static const String bills = '/app/member/bills';

  /// 发送红包 /api/red-packet/send
  // "chatType": 1, 1=单 2=群
  // "senderId": 1950059660646047745, 发送人
  // "receiverId": 1949004087674580994, 接收人 单聊时传
  // "groupId": "", 群聊传
  // "totalAmount": 1,
  // "totalCount": 1,
  // "remark": "恭喜发财"
  static const String redpacket = '/app/customer/packet/send';

  /// 抢红包 /api/red-packet/grab
  // "packetId": "1954790726899544065",
  // "memberId": "1949004087674580994"
  static const String getpacket = '/app/customer/packet/grab';
}
