package financewithdrawal import ( "strings" "testing" ) func TestWithdrawalApplicationCreatedMarkdownKeepsFinanceReviewDetails(t *testing.T) { message := withdrawalApplicationCreatedMarkdown(Application{ ID: 77, AppCode: "lalu", UserID: 42, SalaryAssetType: "HOST_SALARY_USD", WithdrawAmount: "50.00", WithdrawMethod: MethodUSDTTRC20, WithdrawAddress: "TRON-address", FreezeTransactionID: "freeze-tx-1", CreatedAtMS: 1_700_000_000_000, }) for _, expected := range []string{ "用户提现申请待审核", "申请ID:77", "APP:lalu", "用户ID:42", "提现金额:$ 50.00", "提现方式:usdt_trc20", "冻结交易:freeze-tx-1", "https://admin-acc.global-interaction.com/finance/", } { if !strings.Contains(message, expected) { t.Fatalf("withdrawal DingTalk message missing %q: %s", expected, message) } } }