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

This commit is contained in:
luying
2023-02-17 10:58:05 +08:00
parent 6cc38053e7
commit 0530f931bc
17 changed files with 301 additions and 49 deletions
@@ -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;
}