Trait WechatMethod
Source pub trait WechatMethod {
// Required methods
fn check(&mut self) -> Result<bool, String>;
fn login(&mut self, code: &str) -> Result<JsonValue, String>;
// Provided methods
fn code2_session(&mut self, code: &str) -> Result<JsonValue, String> { ... }
fn get_phone_number(
&mut self,
iv: &str,
_encrypted_data: &str,
_session_key: &str,
) -> Result<JsonValue, String> { ... }
fn getuserinfo(&mut self, code: &str) -> Result<JsonValue, String> { ... }
fn jsapi_ticket(&mut self, url: &str) -> Result<JsonValue, String> { ... }
}
code 获取用户信息 企业微信只能拿到userid