ludu-cloud/admin-web/mock/mock-comment.js

14 lines
204 B
JavaScript
Raw Normal View History

// 常用,公共 mock
export function resultBody(result, code, message) {
return {
code: code || 0,
message: message || '',
...(result || null),
};
}
export default {
resultBody,
};