| 1234567891011121314151617181920212223242526 |
- import http from '../../utils/http'
- export default class History {
- static async findByHashOrBlockOrDataVague(block: String, hashCode: String, dataVague: String,
- start: Number, size: Number) {
- let url = '/ethmev/findByHashOrBlockOrDataVague'
- const rst = await http.post(url, {
- block: block,
- hash: hashCode,
- dataVague: dataVague,
- limit1: start,
- limit2: size
- })
- return rst.data
- }
- static async appendOrUpdate(block: String, hashCode: String, data: any) {
- let url = '/ethmev/appendOrUpdate'
- const rst = await http.post(url, {
- 'block': block,
- 'hash': hashCode,
- 'data': JSON.stringify(data)
- })
- return rst.data
- }
- }
|