ASEMiniProgram/api/honor.js
2021-04-01 22:16:23 +08:00

21 lines
320 B
JavaScript

import request from '../utils/request.js'
export const createHonor = (honor) => {
return request({
url: "/honor",
method: "post",
data: {
...honor
}
})
}
export const getHonors = (openid) => {
return request({
url: "/honor/user",
method: "get",
data: {
openid
}
})
}