use std::collections::BTreeMap;
pub fn get_sign_content(params: &BTreeMap<String, String>) -> String {
if params.is_empty() {
return String::new();
}
let mut result = String::new();
for (i, (key, value)) in params.iter().enumerate() {
if i > 0 {
result.push('&');
}
result.push_str(key);
result.push('=');
result.push_str(value);
}
result
}
#[path = "sign_content_test.rs"]
#[cfg(test)]
mod sign_content_test;