addition of new dashboard
This commit is contained in:
36
backend/modules/core/agreement.js
Normal file
36
backend/modules/core/agreement.js
Normal file
@@ -0,0 +1,36 @@
|
||||
import pkg from '@jlinc/core';
|
||||
const { JlincAgreement } = pkg;
|
||||
|
||||
|
||||
async function create(input) {
|
||||
const data = await JlincAgreement.create(input);
|
||||
const message = data?.agreementId;
|
||||
return {
|
||||
data,
|
||||
message,
|
||||
}
|
||||
}
|
||||
|
||||
async function sign(input) {
|
||||
const data = await JlincAgreement.sign(input);
|
||||
const message = data?.agreement?.agreementId;
|
||||
return {
|
||||
data,
|
||||
message,
|
||||
}
|
||||
}
|
||||
|
||||
async function send(input) {
|
||||
const data = await JlincAgreement.send(input);
|
||||
const message = data?.agreement?.agreementId;
|
||||
return {
|
||||
data,
|
||||
message,
|
||||
}
|
||||
}
|
||||
|
||||
export const agreement = {
|
||||
create,
|
||||
sign,
|
||||
send,
|
||||
}
|
||||
Reference in New Issue
Block a user