Commit 76dbeac4 authored by ml's avatar ml

增加字段

parent d3c8001b
......@@ -67,6 +67,8 @@ export interface AddParam {
describe_url?: string;
weight?: number;
forbid_info?: string;
describe_summary?: string;
......@@ -126,6 +128,9 @@ export async function list(param: ListParam) {
}
export const save = async (param: AddParam, currentUserId: any, ip: any) => {
if (!param.weight) {
param.weight = 0;
}
param.updatedAt = new Date();
param.createdAt = new Date();
await coinType.prototype.create(param);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment