chain.js 346 B

12345678910111213141516171819
  1. const http = require('../utils/axios')
  2. module.exports = class Chain {
  3. static async getAll() {
  4. const url = '/chain/getAll'
  5. const rst = await http.post(url, {})
  6. return rst.data
  7. }
  8. static async findById(id) {
  9. const url = '/chain/findById'
  10. const rst = await http.post(url, {
  11. id: id
  12. })
  13. return rst.data
  14. }
  15. }