wx_applet/custom_service/
param.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Deserialize)]
4#[serde(rename_all = "camelCase")]
5pub struct Service {
6 pub entity_name: Option<String>,
7 pub corpid: Option<String>,
8 pub bind_time: Option<u32>,
9}
10
11#[derive(Clone, Debug, Serialize)]
12pub struct BindReq {
13 corpid: String,
14}
15
16impl BindReq {
17 pub fn new<T>(id: T) -> Self
18 where
19 T: AsRef<str>,
20 {
21 Self {
22 corpid: id.as_ref().to_owned(),
23 }
24 }
25}
26#[derive(Clone, Debug, Deserialize)]
27pub struct BindRes;