feat(gvg): 添加贡献等接口

This commit is contained in:
luying
2023-01-06 21:15:06 +08:00
parent 6cc38053e7
commit 0530f931bc
17 changed files with 301 additions and 49 deletions

View File

@@ -0,0 +1,5 @@
export function calProduce(obj: { food: number, mineral: number, wood: number }) {
let { food = 0, mineral = 0, wood = 0 } = obj||{};
return food + mineral + wood;
}