pdd 0.1.4

拼多多开放平台sdk
Documentation
use crate::Request;

use serde::{Deserialize, Serialize};


/// 多多客授权工具商暂停或恢复多多礼金推广
#[derive(Serialize, Deserialize, Debug, Default)]
pub struct PddDdkOauthCashgiftStatusUpdate {
    
    /// 多多礼金ID
    #[serde(rename = "cash_gift_id")]
    pub cash_gift_id: Option<i64>,
    
    /// 礼金更新类型:0-停止礼金推广,1-恢复礼金推广
    #[serde(rename = "update_type")]
    pub update_type: Option<i32>,
    
}


/// 多多客授权工具商暂停或恢复多多礼金推广
impl Request for PddDdkOauthCashgiftStatusUpdate {
    fn get_type() -> String {
        "pdd.ddk.oauth.cashgift.status.update".to_string()
    }

    fn get_response_name() -> String {
        "update_cashgift_response".to_string()
    }
}