24 lines
403 B
Go
24 lines
403 B
Go
package kog
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
var _ ApiInterface = (*CmbToBBRequest)(nil)
|
|
var _ ApiInterface = (*BBToWechatRequest)(nil)
|
|
var _ ApiInterface = (*WechatToBBRequest)(nil)
|
|
|
|
type ApiInterface interface {
|
|
GetNotice() *Notice
|
|
}
|
|
|
|
type Notice struct {
|
|
OutBizBo string
|
|
Type NoticeType
|
|
BizContent ApiInterface
|
|
}
|
|
|
|
func (this *Notice) Marshal() ([]byte, error) {
|
|
return json.Marshal(this)
|
|
}
|