import Api from '@/services/api'
export default {
castBallot(electionId, voterId, picked) {
return Api().post('castBallot', {
electionId: electionId,
voterId: voterId,
picked: picked
})
},
queryAll() {
return Api().get('queryAll')
},
queryByObjectType() {
return Api().get('queryByObjectType')
},
queryWithQueryString(selected) {
return Api().post('queryWithQueryString', {
selected: selected
})
},
registerPatient(name, age, adharNo, phNo) {
return Api().post('registerPatient', {
name: name,
age: age,
adharNo: adharNo,
phNo: phNo,
})
},
validateVoter(voterId) {
return Api().post('validateVoter', {
voterId: voterId
})
},
queryByKey(key) {
return Api().post('queryByKey', {
key: key
})
},
getCurrentStanding() {
return Api().get('getCurrentStanding')
}
}