pub struct WxOpenComponentServiceImpl { /* private fields */ }Expand description
组件服务实现。
Implementations§
Source§impl WxOpenComponentServiceImpl
impl WxOpenComponentServiceImpl
Sourcepub fn new(wx_open_service: Weak<dyn WxOpenService>) -> Self
pub fn new(wx_open_service: Weak<dyn WxOpenService>) -> Self
Trait Implementations§
Source§impl WxOpenComponentService for WxOpenComponentServiceImpl
impl WxOpenComponentService for WxOpenComponentServiceImpl
Source§fn get_wx_mp_service_by_appid(
&self,
app_id: &str,
) -> Option<Arc<dyn Any + Send + Sync>>
fn get_wx_mp_service_by_appid( &self, app_id: &str, ) -> Option<Arc<dyn Any + Send + Sync>>
获取指定 appid 的开放平台公众号服务(对应 Java
getWxMpServiceByAppid(String appid),双检锁缓存按 appid 装配
WxOpenMpServiceImpl)。
镜像 Java:先无锁读缓存,未命中再持锁二次检查后装配
WxOpenMpService(构造时快照门面配置存储与 HTTP 客户端)。
返回值以 Arc<dyn Any + Send + Sync> 承载(trait 签名冻结),
调用方经 [crate::api::r#impl::downcast_mp_service] 下转为
Arc<dyn WxMpService>。
Source§fn get_wx_ma_service_by_appid(
&self,
app_id: &str,
) -> Option<Arc<dyn Any + Send + Sync>>
fn get_wx_ma_service_by_appid( &self, app_id: &str, ) -> Option<Arc<dyn Any + Send + Sync>>
获取指定 appid 的开放平台小程序服务(对应 Java
getWxMaServiceByAppid(String appid),双检锁缓存装配
WxOpenMaServiceImpl)。
返回值经 [crate::api::r#impl::downcast_ma_service] 下转为
Arc<dyn WxMaService>。
Source§fn get_wx_fast_ma_service_by_appid(
&self,
app_id: &str,
) -> Option<Arc<dyn Any + Send + Sync>>
fn get_wx_fast_ma_service_by_appid( &self, app_id: &str, ) -> Option<Arc<dyn Any + Send + Sync>>
获取指定 appid 的快速创建的小程序服务(对应 Java
getWxFastMaServiceByAppid(String appid))。
Java @Deprecated(2021-06-23:请使用 WxOpenMaService)。
Java 以独立类 WxOpenFastMaServiceImpl(extends WxMaServiceImpl,
getAccessToken 同委托 authorizer token)装配;Rust 语义等价,
统一以 WxOpenMaService 承载(独立缓存桶镜像 Java 独立 map,
ADAPTED),返回值经 [crate::api::r#impl::downcast_ma_service]
下转为 Arc<dyn WxMaService>。
Source§fn get_wx_minishop_service_by_appid(
&self,
app_id: &str,
) -> Option<Arc<dyn Any + Send + Sync>>
fn get_wx_minishop_service_by_appid( &self, app_id: &str, ) -> Option<Arc<dyn Any + Send + Sync>>
获取指定 appid 的小商店服务(对应 Java
getWxMinishopServiceByAppid(String appid),双检锁缓存装配
WxOpenMinishopServiceImpl)。
Wave 5 接线(此前恒 None):镜像 Java 静态
WX_OPEN_MINISHOP_SERVICE_MAP + synchronized 双检锁;Rust 以
实例级 Mutex<HashMap> 表达,装配 WxOpenMinishopServiceImpl
(构造入参 appId + 门面弱引用,Java 传 this 组件服务 + appId +
wxMaConfig,语义一致,ADAPTED)。返回值以
Arc<dyn Any + Send + Sync> 承载,调用方按具体类型
WxOpenMinishopServiceImpl downcast 下转。
Source§fn wx_open_service(&self) -> Option<Arc<dyn WxOpenService>>
fn wx_open_service(&self) -> Option<Arc<dyn WxOpenService>>
getWxOpenService())。 Read moreSource§fn start_push_ticket<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start_push_ticket<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
startPushTicket())。Source§fn get_component_access_token<'life0, 'async_trait>(
&'life0 self,
force_refresh: bool,
) -> Pin<Box<dyn Future<Output = Result<String, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_component_access_token<'life0, 'async_trait>(
&'life0 self,
force_refresh: bool,
) -> Pin<Box<dyn Future<Output = Result<String, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
getComponentAccessToken(boolean forceRefresh),开放平台接口调用凭据)。 Read moreSource§fn post<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
uri: &'life1 str,
post_data: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<String, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn post<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
uri: &'life1 str,
post_data: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<String, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
post(String, String),默认注入键
component_access_token)。Source§fn post_with_key<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
uri: &'life1 str,
post_data: &'life2 str,
access_token_key: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<String, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn post_with_key<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
uri: &'life1 str,
post_data: &'life2 str,
access_token_key: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<String, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
post(String, String, String accessTokenKey),
自定义 token 注入键)。Source§fn post_with_token<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
uri: &'life1 str,
post_data: &'life2 str,
access_token_key: &'life3 str,
access_token: &'life4 str,
) -> Pin<Box<dyn Future<Output = Result<String, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn post_with_token<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
uri: &'life1 str,
post_data: &'life2 str,
access_token_key: &'life3 str,
access_token: &'life4 str,
) -> Pin<Box<dyn Future<Output = Result<String, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
post(String, String, String accessTokenKey, String accessToken),调用方显式传 token,不做自动刷新)。Source§fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
uri: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<String, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
uri: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<String, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
get(String uri),默认注入键
component_access_token)。Source§fn get_with_key<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
uri: &'life1 str,
access_token_key: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<String, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_with_key<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
uri: &'life1 str,
access_token_key: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<String, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
get(String uri, String accessTokenKey))。Source§fn get_pre_auth_code<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<String, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_pre_auth_code<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<String, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
WxOpenComponentServiceImpl.createPreAuthUrl
内部 POST API_CREATE_PREAUTHCODE_URL 的 pre_auth_code 字段)。Source§fn get_pre_auth_url<'life0, 'life1, 'async_trait>(
&'life0 self,
redirect_uri: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<String, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_pre_auth_url<'life0, 'life1, 'async_trait>(
&'life0 self,
redirect_uri: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<String, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
getPreAuthUrl(String redirectUri))。Source§fn get_pre_auth_url_with<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
redirect_uri: &'life1 str,
auth_type: Option<&'life2 str>,
biz_appid: Option<&'life3 str>,
) -> Pin<Box<dyn Future<Output = Result<String, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn get_pre_auth_url_with<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
redirect_uri: &'life1 str,
auth_type: Option<&'life2 str>,
biz_appid: Option<&'life3 str>,
) -> Pin<Box<dyn Future<Output = Result<String, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
getPreAuthUrl(String redirectUri, String authType, String bizAppid))。Source§fn get_mobile_pre_auth_url<'life0, 'life1, 'async_trait>(
&'life0 self,
redirect_uri: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<String, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_mobile_pre_auth_url<'life0, 'life1, 'async_trait>(
&'life0 self,
redirect_uri: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<String, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
getMobilePreAuthUrl(String redirectUri))。Source§fn get_mobile_pre_auth_url_with<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
redirect_uri: &'life1 str,
auth_type: Option<&'life2 str>,
biz_appid: Option<&'life3 str>,
) -> Pin<Box<dyn Future<Output = Result<String, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn get_mobile_pre_auth_url_with<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
redirect_uri: &'life1 str,
auth_type: Option<&'life2 str>,
biz_appid: Option<&'life3 str>,
) -> Pin<Box<dyn Future<Output = Result<String, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
getMobilePreAuthUrl(String redirectUri, String authType, String bizAppid))。Source§fn route<'life0, 'life1, 'async_trait>(
&'life0 self,
message: &'life1 WxOpenXmlMessage,
) -> Pin<Box<dyn Future<Output = Result<String, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn route<'life0, 'life1, 'async_trait>(
&'life0 self,
message: &'life1 WxOpenXmlMessage,
) -> Pin<Box<dyn Future<Output = Result<String, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
route(WxOpenXmlMessage wxMessage),POST 回调消息解密 + 分发)。 Read moreSource§fn get_query_auth<'life0, 'life1, 'async_trait>(
&'life0 self,
authorization_code: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<WxOpenQueryAuthResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_query_auth<'life0, 'life1, 'async_trait>(
&'life0 self,
authorization_code: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<WxOpenQueryAuthResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
getQueryAuth(String authorizationCode))。 Read moregetAuthorizerInfo(String authorizerAppid))。getAuthorizerList(int begin, int len))。 Read moregetAuthorizerOption(String authorizerAppid, String optionName),
以授权方 access_token 为 key 调用)。setAuthorizerOption(String authorizerAppid, String optionName, String optionValue))。getAuthorizerAccessToken(String appid, boolean forceRefresh),
三方 token 刷新链:refresh_token 换新 token)。Source§fn oauth2_get_access_token<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
code: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<WxOAuth2AccessToken, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn oauth2_get_access_token<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
code: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<WxOAuth2AccessToken, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
oauth2getAccessToken (String appid, String code))。 Read moreSource§fn oauth2_refresh_access_token<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
refresh_token: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<WxOAuth2AccessToken, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn oauth2_refresh_access_token<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
refresh_token: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<WxOAuth2AccessToken, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
oauth2refreshAccessToken(String appid, String refreshToken))。Source§fn miniapp_jscode2_session<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
js_code: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Value, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn miniapp_jscode2_session<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
js_code: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Value, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
miniappJscode2Session(String appId, String jsCode))。 Read moreSource§fn get_template_draft_list<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<WxOpenMaCodeTemplate>>, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_template_draft_list<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<WxOpenMaCodeTemplate>>, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
getTemplateDraftList())。 Read moreSource§fn get_template_list<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<WxOpenMaCodeTemplate>>, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_template_list<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<WxOpenMaCodeTemplate>>, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
getTemplateList(),
Java @Deprecated,请使用 Self::get_template_list_with_type)。Source§fn get_template_list_with_type<'life0, 'async_trait>(
&'life0 self,
template_type: Option<i32>,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<WxOpenMaCodeTemplate>>, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_template_list_with_type<'life0, 'async_trait>(
&'life0 self,
template_type: Option<i32>,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<WxOpenMaCodeTemplate>>, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
getTemplateList(Integer templateType);template_type 可空,
默认全部,0 普通模板,1 标准模板)。Source§fn add_to_template<'life0, 'async_trait>(
&'life0 self,
draft_id: i64,
) -> Pin<Box<dyn Future<Output = Result<(), WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn add_to_template<'life0, 'async_trait>(
&'life0 self,
draft_id: i64,
) -> Pin<Box<dyn Future<Output = Result<(), WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
addToTemplate(long draftId),Java @Deprecated,请使用
Self::add_to_template_with_type)。Source§fn add_to_template_with_type<'life0, 'async_trait>(
&'life0 self,
draft_id: i64,
template_type: i32,
) -> Pin<Box<dyn Future<Output = Result<(), WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn add_to_template_with_type<'life0, 'async_trait>(
&'life0 self,
draft_id: i64,
template_type: i32,
) -> Pin<Box<dyn Future<Output = Result<(), WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
addToTemplate(long draftId, int templateType);template_type:普通模板 0,标准模板 1)。Source§fn delete_template<'life0, 'async_trait>(
&'life0 self,
template_id: i64,
) -> Pin<Box<dyn Future<Output = Result<(), WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_template<'life0, 'async_trait>(
&'life0 self,
template_id: i64,
) -> Pin<Box<dyn Future<Output = Result<(), WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
deleteTemplate(long templateId))。Source§fn create_open_account<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
app_id_type: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<WxOpenCreateResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn create_open_account<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
app_id_type: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<WxOpenCreateResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
createOpenAccount(String appId, String appIdType);
app_id_type:mp-公众号 / mini-小程序)。 Read moreSource§fn bind_open_account<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
app_id_type: &'life2 str,
open_appid: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<bool, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn bind_open_account<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
app_id_type: &'life2 str,
open_appid: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<bool, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
bindOpenAccount(String appId, String appIdType, String openAppid))。 Read moreSource§fn unbind_open_account<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
app_id_type: &'life2 str,
open_appid: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<bool, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn unbind_open_account<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
app_id_type: &'life2 str,
open_appid: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<bool, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
unbindOpenAccount(String appId, String appIdType, String openAppid))。 Read moreSource§fn get_open_account<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
app_id_type: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<WxOpenGetResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_open_account<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
app_id_type: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<WxOpenGetResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
getOpenAccount(String appId, String appIdType))。 Read moreSource§fn have_open<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<WxOpenHaveResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn have_open<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<WxOpenHaveResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
haveOpen(),
走 component_access_token,注入键 “access_token”)。Source§fn fast_register_weapp<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'life6, 'async_trait>(
&'life0 self,
name: &'life1 str,
code: &'life2 str,
code_type: &'life3 str,
legal_persona_wechat: &'life4 str,
legal_persona_name: &'life5 str,
component_phone: &'life6 str,
) -> Pin<Box<dyn Future<Output = Result<WxOpenResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
'life6: 'async_trait,
fn fast_register_weapp<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'life6, 'async_trait>(
&'life0 self,
name: &'life1 str,
code: &'life2 str,
code_type: &'life3 str,
legal_persona_wechat: &'life4 str,
legal_persona_name: &'life5 str,
component_phone: &'life6 str,
) -> Pin<Box<dyn Future<Output = Result<WxOpenResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
'life6: 'async_trait,
fastRegisterWeapp(String name, String code, String codeType, String legalPersonaWechat, String legalPersonaName, String componentPhone))。Source§fn fast_register_weapp_search<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
name: &'life1 str,
legal_persona_wechat: &'life2 str,
legal_persona_name: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<WxOpenResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn fast_register_weapp_search<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
name: &'life1 str,
legal_persona_wechat: &'life2 str,
legal_persona_name: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<WxOpenResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fastRegisterWeappSearch(String name, String legalPersonaWechat, String legalPersonaName))。Source§fn fast_register_personal_weapp<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
idname: &'life1 str,
wxuser: &'life2 str,
component_phone: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<WxOpenRegisterPersonalWeappResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn fast_register_personal_weapp<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
idname: &'life1 str,
wxuser: &'life2 str,
component_phone: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<WxOpenRegisterPersonalWeappResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fastRegisterPersonalWeapp(String idname, String wxuser, String componentPhone))。Source§fn fast_register_personal_weapp_search<'life0, 'life1, 'async_trait>(
&'life0 self,
taskid: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<WxOpenRegisterPersonalWeappResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn fast_register_personal_weapp_search<'life0, 'life1, 'async_trait>(
&'life0 self,
taskid: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<WxOpenRegisterPersonalWeappResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fastRegisterPersonalWeappSearch(String taskid))。Source§fn fast_register_beta_weapp<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
openid: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<WxOpenRegisterBetaWeappResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn fast_register_beta_weapp<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
openid: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<WxOpenRegisterBetaWeappResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fastRegisterBetaWeapp(String name, String openid);注入键 “access_token”)。Source§fn register_shop<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
&'life0 self,
wx_name: &'life1 str,
id_card_name: &'life2 str,
id_card_number: &'life3 str,
channel_id: Option<&'life4 str>,
api_openstore_type: Option<i32>,
auth_page_url: Option<&'life5 str>,
) -> Pin<Box<dyn Future<Output = Result<WxOpenResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
fn register_shop<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
&'life0 self,
wx_name: &'life1 str,
id_card_name: &'life2 str,
id_card_number: &'life3 str,
channel_id: Option<&'life4 str>,
api_openstore_type: Option<i32>,
auth_page_url: Option<&'life5 str>,
) -> Pin<Box<dyn Future<Output = Result<WxOpenResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
registerShop(String wxName, String idCardName, String idCardNumber, String channelId, Integer apiOpenstoreType, String authPageUrl))。Source§fn check_audit_status<'life0, 'life1, 'async_trait>(
&'life0 self,
wx_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<String, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn check_audit_status<'life0, 'life1, 'async_trait>(
&'life0 self,
wx_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<String, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
checkAuditStatus(String wxName),
component_access_token 查询小商店注册状态)。Source§fn check_audit_status_with_appid<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
wx_name: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<String, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn check_audit_status_with_appid<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
wx_name: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<String, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
checkAuditStatus(String appId, String wxName))。Source§fn submit_merchant_info<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'life6, 'life7, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
subject_type: &'life2 str,
busi_license: &'life3 MinishopBusiLicense,
organization_code_info: Option<&'life4 MinishopOrganizationCodeInfo>,
idcard_info: Option<&'life5 MinishopIdcardInfo>,
super_administrator_info: Option<&'life6 MinishopSuperAdministratorInfo>,
merchant_shortname: Option<&'life7 str>,
) -> Pin<Box<dyn Future<Output = Result<WxOpenResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
'life6: 'async_trait,
'life7: 'async_trait,
fn submit_merchant_info<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'life6, 'life7, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
subject_type: &'life2 str,
busi_license: &'life3 MinishopBusiLicense,
organization_code_info: Option<&'life4 MinishopOrganizationCodeInfo>,
idcard_info: Option<&'life5 MinishopIdcardInfo>,
super_administrator_info: Option<&'life6 MinishopSuperAdministratorInfo>,
merchant_shortname: Option<&'life7 str>,
) -> Pin<Box<dyn Future<Output = Result<WxOpenResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
'life6: 'async_trait,
'life7: 'async_trait,
submitMerchantInfo(String appId, String subjectType, MinishopBusiLicense busiLicense, MinishopOrganizationCodeInfo organizationCodeInfo, MinishopIdcardInfo idcardInfo, MinishopSuperAdministratorInfo superAdministratorInfo, String merchantShoprtName),授权方
access_token)。Source§fn submit_basic_info<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
name_info: &'life2 MinishopNameInfo,
return_info: &'life3 MinishopReturnInfo,
) -> Pin<Box<dyn Future<Output = Result<WxOpenResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn submit_basic_info<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
name_info: &'life2 MinishopNameInfo,
return_info: &'life3 MinishopReturnInfo,
) -> Pin<Box<dyn Future<Output = Result<WxOpenResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
submitBasicInfo(String appId, MinishopNameInfo nameInfo, MinishopReturnInfo returnInfo),
授权方 access_token)。Source§fn upload_minishop_image_pic_file<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
height: i32,
width: i32,
file_path: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<WxMinishopImageUploadResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn upload_minishop_image_pic_file<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
height: i32,
width: i32,
file_path: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<WxMinishopImageUploadResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
uploadMinishopImagePicFile(String appId, Integer height, Integer width, File file))。 Read moreSource§fn get_minishop_categories<'life0, 'life1, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
f_cat_id: i32,
) -> Pin<Box<dyn Future<Output = Result<MinishopCategories, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_minishop_categories<'life0, 'life1, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
f_cat_id: i32,
) -> Pin<Box<dyn Future<Output = Result<MinishopCategories, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
getMinishopCategories(String appId, Integer fCatId),f_cat_id 可先填 0 获取根部类目)。Source§fn get_minishop_brands<'life0, 'life1, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<MinishopBrandList, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_minishop_brands<'life0, 'life1, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<MinishopBrandList, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
getMinishopBrands(String appId))。Source§fn get_minishop_delivery_template<'life0, 'life1, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<MinishopDeliveryTemplateResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_minishop_delivery_template<'life0, 'life1, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<MinishopDeliveryTemplateResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
getMinishopDeliveryTemplate(String appId))。Source§fn get_minishop_cat_list<'life0, 'life1, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<MinishopShopCatList, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_minishop_cat_list<'life0, 'life1, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<MinishopShopCatList, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
getMinishopCatList(String appId))。Source§fn get_minishop_delivery_company<'life0, 'life1, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<WxMinishopAddGoodsSpuResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_minishop_delivery_company<'life0, 'life1, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<WxMinishopAddGoodsSpuResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
getMinishopDeliveryCompany(String appId),返回
WxMinishopAddGoodsSpuResult<List<WxMinishopDeliveryCompany>>;
Rust 侧 WxMinishopAddGoodsSpuResult.data 为 serde_json::Value
承载 company_list 数组,ADAPTED)。Source§fn minishop_create_coupon<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
coupon_info: &'life2 WxMinishopCoupon,
) -> Pin<Box<dyn Future<Output = Result<i32, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn minishop_create_coupon<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
coupon_info: &'life2 WxMinishopCoupon,
) -> Pin<Box<dyn Future<Output = Result<i32, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
minishopCreateCoupon(String appId, WxMinishopCoupon couponInfo),返回 couponId)。Source§fn minishop_get_coupon_list<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
_start_create_time: &'life2 str,
_end_create_time: &'life3 str,
_status: i32,
_page: i32,
_page_size: i32,
) -> Pin<Box<dyn Future<Output = Result<Option<WxMinishopCouponStock>, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn minishop_get_coupon_list<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
_start_create_time: &'life2 str,
_end_create_time: &'life3 str,
_status: i32,
_page: i32,
_page_size: i32,
) -> Pin<Box<dyn Future<Output = Result<Option<WxMinishopCouponStock>, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
minishopGetCouponList(String appId, String startCreateTime, String endCreateTime, Integer status, Integer page, Integer pageSize))。 Read moreSource§fn minishop_push_coupon_to_user<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
open_id: &'life2 str,
coupon_id: i32,
) -> Pin<Box<dyn Future<Output = Result<WxOpenResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn minishop_push_coupon_to_user<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
open_id: &'life2 str,
coupon_id: i32,
) -> Pin<Box<dyn Future<Output = Result<WxOpenResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
minishopPushCouponToUser(String appid, String openId, Integer couponId))。Source§fn minishop_update_coupon<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
coupon_info: &'life2 WxMinishopCoupon,
) -> Pin<Box<dyn Future<Output = Result<i32, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn minishop_update_coupon<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
coupon_info: &'life2 WxMinishopCoupon,
) -> Pin<Box<dyn Future<Output = Result<i32, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
minishopUpdateCoupon(String appId, WxMinishopCoupon couponInfo),返回 couponId)。Source§fn minishop_update_coupon_status<'life0, 'life1, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
coupon_id: i32,
status: i32,
) -> Pin<Box<dyn Future<Output = Result<WxOpenResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn minishop_update_coupon_status<'life0, 'life1, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
coupon_id: i32,
status: i32,
) -> Pin<Box<dyn Future<Output = Result<WxOpenResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
minishopUpdateCouponStatus(String appId, Integer couponId, Integer status);1 创建 2 生效 4 作废 5 删除)。Source§fn minishop_goods_add_spu<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
spu: &'life2 WxMinishopSpu,
) -> Pin<Box<dyn Future<Output = Result<WxMinishopAddGoodsSpuResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn minishop_goods_add_spu<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
spu: &'life2 WxMinishopSpu,
) -> Pin<Box<dyn Future<Output = Result<WxMinishopAddGoodsSpuResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
minishopGoodsAddSpu(String appId, WxMinishopSpu spu),添加后需上架并过审才展示)。Source§fn minishop_goods_del_spu<'life0, 'life1, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
product_id: i64,
out_product_id: i64,
) -> Pin<Box<dyn Future<Output = Result<WxOpenResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn minishop_goods_del_spu<'life0, 'life1, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
product_id: i64,
out_product_id: i64,
) -> Pin<Box<dyn Future<Output = Result<WxOpenResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
minishopGoodsDelSpu(String appId, Long productId, Long outProductId),直接删除不进回收站)。Source§fn minishop_goods_update_spu<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
spu: &'life2 WxMinishopSpu,
) -> Pin<Box<dyn Future<Output = Result<WxMinishopAddGoodsSpuResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn minishop_goods_update_spu<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
spu: &'life2 WxMinishopSpu,
) -> Pin<Box<dyn Future<Output = Result<WxMinishopAddGoodsSpuResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
minishopGoodsUpdateSpu(String appId, WxMinishopSpu spu),更新入草稿箱,需上架过审)。Source§fn minishop_goods_listing_spu<'life0, 'life1, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
product_id: i64,
out_product_id: i64,
) -> Pin<Box<dyn Future<Output = Result<WxOpenResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn minishop_goods_listing_spu<'life0, 'life1, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
product_id: i64,
out_product_id: i64,
) -> Pin<Box<dyn Future<Output = Result<WxOpenResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
minishopGoodsListingSpu(String appId, Long productId, Long outProductId))。Source§fn minishop_goods_delisting_spu<'life0, 'life1, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
product_id: i64,
out_product_id: i64,
) -> Pin<Box<dyn Future<Output = Result<WxOpenResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn minishop_goods_delisting_spu<'life0, 'life1, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
product_id: i64,
out_product_id: i64,
) -> Pin<Box<dyn Future<Output = Result<WxOpenResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
minishopGoodsDelistingSpu(String appId, Long productId, Long outProductId))。Source§fn minishop_goods_add_sku<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
sku: &'life2 WxMinishopSku,
) -> Pin<Box<dyn Future<Output = Result<WxMinishopAddGoodsSpuResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn minishop_goods_add_sku<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
sku: &'life2 WxMinishopSku,
) -> Pin<Box<dyn Future<Output = Result<WxMinishopAddGoodsSpuResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
minishiopGoodsAddSku(String appId, WxMinishopSku sku),Java 方法名拼写为 minishop + Goods 少 i)。Source§fn minishop_goods_batch_add_sku<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
sku_list: &'life2 [WxMinishopSku],
) -> Pin<Box<dyn Future<Output = Result<WxOpenResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn minishop_goods_batch_add_sku<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
sku_list: &'life2 [WxMinishopSku],
) -> Pin<Box<dyn Future<Output = Result<WxOpenResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
minishopGoodsBatchAddSku(String appId, List<WxMinishopSku> skuList))。Source§fn minishop_goods_del_sku<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
product_id: i64,
out_product_id: i64,
out_sku_id: &'life2 str,
sku_id: i64,
) -> Pin<Box<dyn Future<Output = Result<WxOpenResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn minishop_goods_del_sku<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
product_id: i64,
out_product_id: i64,
out_sku_id: &'life2 str,
sku_id: i64,
) -> Pin<Box<dyn Future<Output = Result<WxOpenResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
minishopGoodsDelSku(String appId, Long productId, Long outProductId, String outSkuId, Long skuId))。Source§fn minishop_goods_update_sku<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
sku: &'life2 WxMinishopSku,
) -> Pin<Box<dyn Future<Output = Result<WxOpenResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn minishop_goods_update_sku<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
sku: &'life2 WxMinishopSku,
) -> Pin<Box<dyn Future<Output = Result<WxOpenResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
minishopGoodsUpdateSku(String appId, WxMinishopSku sku))。Source§fn minishop_goods_update_sku_price<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
product_id: i64,
out_product_id: i64,
out_sku_id: &'life2 str,
sku_id: i64,
_sale_price: i64,
_market_price: i64,
) -> Pin<Box<dyn Future<Output = Result<WxOpenResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn minishop_goods_update_sku_price<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
product_id: i64,
out_product_id: i64,
out_sku_id: &'life2 str,
sku_id: i64,
_sale_price: i64,
_market_price: i64,
) -> Pin<Box<dyn Future<Output = Result<WxOpenResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
minishopGoodsUpdateSkuPrice(String appId, Long productId, Long outProductId, String outSkuId, Long skuId, Long salePrice, Long marketPrice))。 Read moreSource§fn minishop_goods_update_sku_stock<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
product_id: i64,
out_product_id: i64,
out_sku_id: &'life2 str,
sku_id: i64,
type: i32,
stock_num: i32,
) -> Pin<Box<dyn Future<Output = Result<WxOpenResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn minishop_goods_update_sku_stock<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
product_id: i64,
out_product_id: i64,
out_sku_id: &'life2 str,
sku_id: i64,
type: i32,
stock_num: i32,
) -> Pin<Box<dyn Future<Output = Result<WxOpenResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
minishopGoodsUpdateSkuStock(String appId, Long productId, Long outProductId, String outSkuId, Long skuId, Integer type, Integer stockNum))。Source§fn minishop_common_post<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_app_id: &'life1 str,
_url: &'life2 str,
_request_param: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<Option<String>, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn minishop_common_post<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_app_id: &'life1 str,
_url: &'life2 str,
_request_param: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<Option<String>, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
minishopCommonPost(String appId, String url, String requestParam))。 Read moreSource§fn add_limit_discount_goods<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
limit_discount_goods: &'life2 LimitDiscountGoods,
) -> Pin<Box<dyn Future<Output = Result<i32, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn add_limit_discount_goods<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
limit_discount_goods: &'life2 LimitDiscountGoods,
) -> Pin<Box<dyn Future<Output = Result<i32, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
addLimitDiscountGoods(String appId, LimitDiscountGoods limitDiscountGoods),返回 taskId)。Source§fn get_limit_discount_list<'life0, 'life1, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
status: Option<i32>,
) -> Pin<Box<dyn Future<Output = Result<Vec<LimitDiscountGoods>, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_limit_discount_list<'life0, 'life1, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
status: Option<i32>,
) -> Pin<Box<dyn Future<Output = Result<Vec<LimitDiscountGoods>, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
getLimitDiscountList(String appId, Integer status);status 0 未结束 1 已结束,不填则都拉取)。Source§fn update_limit_discount_status<'life0, 'life1, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
task_id: i64,
status: i32,
) -> Pin<Box<dyn Future<Output = Result<WxOpenResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_limit_discount_status<'life0, 'life1, 'async_trait>(
&'life0 self,
app_id: &'life1 str,
task_id: i64,
status: i32,
) -> Pin<Box<dyn Future<Output = Result<WxOpenResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
updateLimitDiscountStatus(String appId, Long taskId, Integer status),结束后不可再开启)。getShareCloudBaseEnv(List<String> appids))。Source§fn get_tcb_env_list<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<GetTcbEnvListResponse, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_tcb_env_list<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<GetTcbEnvListResponse, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
getTcbEnvList())。Source§fn change_tcb_env<'life0, 'life1, 'async_trait>(
&'life0 self,
env: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<WxOpenResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn change_tcb_env<'life0, 'life1, 'async_trait>(
&'life0 self,
env: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<WxOpenResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
changeTcbEnv(String env))。shareCloudBaseEnv(ShareCloudBaseEnvRequest request))。Source§fn clear_quota_v2<'life0, 'life1, 'async_trait>(
&'life0 self,
appid: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<WxOpenResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn clear_quota_v2<'life0, 'life1, 'async_trait>(
&'life0 self,
appid: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<WxOpenResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
clearQuotaV2(String appid),裸 post 不经 token 注入)。Source§fn apply_set_order_path_info<'life0, 'life1, 'async_trait>(
&'life0 self,
info: &'life1 WxOpenMaApplyOrderPathInfo,
) -> Pin<Box<dyn Future<Output = Result<WxOpenResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn apply_set_order_path_info<'life0, 'life1, 'async_trait>(
&'life0 self,
info: &'life1 WxOpenMaApplyOrderPathInfo,
) -> Pin<Box<dyn Future<Output = Result<WxOpenResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
applySetOrderPathInfo(WxOpenMa ApplyOrderPathInfo info),一次提交不超过 100 个 appid)。Source§fn modify_wxa_server_domain<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'life6, 'life7, 'async_trait>(
&'life0 self,
action: &'life1 str,
request_domains: &'life2 [String],
ws_request_domains: &'life3 [String],
upload_domains: &'life4 [String],
download_domains: &'life5 [String],
udp_domains: &'life6 [String],
tcp_domains: &'life7 [String],
) -> Pin<Box<dyn Future<Output = Result<WxOpenMaDomainResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
'life6: 'async_trait,
'life7: 'async_trait,
fn modify_wxa_server_domain<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'life6, 'life7, 'async_trait>(
&'life0 self,
action: &'life1 str,
request_domains: &'life2 [String],
ws_request_domains: &'life3 [String],
upload_domains: &'life4 [String],
download_domains: &'life5 [String],
udp_domains: &'life6 [String],
tcp_domains: &'life7 [String],
) -> Pin<Box<dyn Future<Output = Result<WxOpenMaDomainResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
'life6: 'async_trait,
'life7: 'async_trait,
modifyWxaServerDomain(String action, List<String> requestDomains, ...);action:add 添加 /
delete 删除 / set 覆盖 / get 获取,get 时不需要域名参数)。Source§fn get_domain_confirm_file<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<WxOpenMaDomainConfirmFileResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_domain_confirm_file<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<WxOpenMaDomainConfirmFileResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
getDomainConfirmFile())。Source§fn modify_wxa_jump_domain<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
action: &'life1 str,
domain_list: &'life2 [String],
) -> Pin<Box<dyn Future<Output = Result<String, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn modify_wxa_jump_domain<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
action: &'life1 str,
domain_list: &'life2 [String],
) -> Pin<Box<dyn Future<Output = Result<String, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
modifyWxaJumpDomain(String action, List<String> domainList),直接返回字符串)。Source§fn modify_wxa_jump_domain_info<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
action: &'life1 str,
domain_list: &'life2 [String],
) -> Pin<Box<dyn Future<Output = Result<WxOpenMaWebDomainResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn modify_wxa_jump_domain_info<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
action: &'life1 str,
domain_list: &'life2 [String],
) -> Pin<Box<dyn Future<Output = Result<WxOpenMaWebDomainResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
modifyWxaJumpDomainInfo(String action, List<String> domainList),解析为 webview domain 信息)。Source§fn check_signature(&self, timestamp: &str, nonce: &str, signature: &str) -> bool
fn check_signature(&self, timestamp: &str, nonce: &str, signature: &str) -> bool
checkSignature(String, String, String))。 Read moreSource§fn wx_open_config_storage(&self) -> Option<Arc<dyn WxOpenConfigStorage>>
fn wx_open_config_storage(&self) -> Option<Arc<dyn WxOpenConfigStorage>>
getWxOpenConfigStorage(),委托门面)。 Read moreSource§fn check_signature_with_appid(
&self,
_app_id: &str,
_timestamp: &str,
_nonce: &str,
_signature: &str,
) -> bool
fn check_signature_with_appid( &self, _app_id: &str, _timestamp: &str, _nonce: &str, _signature: &str, ) -> bool
checkSignature(String appid, String timestamp, String nonce, String signature))。 Read moreoauth2buildAuthorizationUrl(String appid, String redirectUri, String scope, String state))。 Read more