2024-05-20 17:57:25 +08:00
|
|
|
enum PusherConfigType {
|
|
|
|
AnPush = 1,
|
|
|
|
Email
|
|
|
|
}
|
|
|
|
|
|
|
|
struct PusherConfig {
|
2024-05-17 18:02:10 +08:00
|
|
|
1: i64 id
|
|
|
|
2: i64 createdAt
|
2024-05-20 17:57:25 +08:00
|
|
|
3: PusherConfigType type
|
|
|
|
4: required string name
|
2024-05-17 18:02:10 +08:00
|
|
|
5: string remark
|
2024-05-20 17:57:25 +08:00
|
|
|
6: required string option
|
|
|
|
}
|
|
|
|
|
2024-05-21 14:01:28 +08:00
|
|
|
struct PusherOption {
|
|
|
|
1: string title
|
|
|
|
2: PusherConfigType type
|
|
|
|
3: list<FormItem> formItems
|
|
|
|
}
|
|
|
|
|
2024-05-20 17:57:25 +08:00
|
|
|
struct FormItem {
|
|
|
|
1: string param
|
|
|
|
2: string type
|
|
|
|
3: bool require
|
|
|
|
}
|
|
|
|
|
|
|
|
struct AnPush {
|
|
|
|
1: string token
|
|
|
|
2: string channel
|
|
|
|
}
|
|
|
|
|
|
|
|
struct EmailPush {
|
|
|
|
1: string from
|
|
|
|
2: string to
|
|
|
|
3: string username
|
|
|
|
4: string password
|
|
|
|
5: string host
|
|
|
|
6: i32 port
|
2024-05-17 18:02:10 +08:00
|
|
|
}
|