docs: establish marqdo-lint architecture and examples

This commit is contained in:
cflmy committed 2026-11-23 16:47:53 +08:00
1 parent 326c9bb119
commit 68b14db095
19 files changed
+1338

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
# @knowledge 反例
## @exec 计算会员价格
根据用户的会员身份计算最终支付金额。
`params(原价: Int, 是否会员: Bool)`
1. 首先判断用户是否有会员资格。
`if 是否会员`
**最终价格 = 原价 * 9 // 10**
`else`
**最终价格 = 原价**
`end`
返回最终应付金额。
*return 最终价格*