.user.js 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. module.exports = {
  2. create: {
  3. requestBody: [
  4. "name",
  5. "!mobile",
  6. "!passwd",
  7. "openid",
  8. "appopenid",
  9. "unionid",
  10. "remark",
  11. "type",
  12. "uid",
  13. "status",
  14. 'type'
  15. ],
  16. },
  17. destroy: {
  18. params: ["!id"],
  19. service: "delete",
  20. },
  21. update: {
  22. params: ["!id"],
  23. requestBody: [
  24. "name",
  25. "mobile",
  26. "passwd",
  27. "openid",
  28. "appopenid",
  29. "unionid",
  30. "remark",
  31. "type",
  32. "uid",
  33. "status",
  34. 'type'
  35. ],
  36. },
  37. show: {
  38. parameters: {
  39. params: ["!id"],
  40. },
  41. service: "fetch",
  42. },
  43. index: {
  44. parameters: {
  45. query: {
  46. name: "name",
  47. mobile: "mobile",
  48. type: "type",
  49. openid: "openid",
  50. appopenid: "appopenid",
  51. status: "status",
  52. },
  53. },
  54. service: "query",
  55. options: {
  56. query: ["skip", "limit"],
  57. sort: ["meta.createdAt"],
  58. desc: true,
  59. count: true,
  60. },
  61. },
  62. appbind: {
  63. requestBody: ["name", "mobile", "appopenid"],
  64. },
  65. };