-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #423 from ArtisanCloud/develop
Develop
- Loading branch information
Showing
3 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
src/work/externalContact/moment/request/requestAddMomentTask.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package request | ||
|
||
type ExternalContactList struct { | ||
TagList []string `json:"tag_list"` | ||
} | ||
|
||
type SenderList struct { | ||
UserList []string `json:"user_list"` | ||
DepartmentList []int `json:"department_list"` | ||
} | ||
|
||
type VisibleRange struct { | ||
SenderList SenderList `json:"sender_list"` | ||
ExternalContactList ExternalContactList `json:"external_contact_list"` | ||
} | ||
|
||
type Text struct { | ||
Content string `json:"content"` | ||
} | ||
|
||
type Image struct { | ||
MediaId string `json:"media_id"` | ||
} | ||
|
||
type Link struct { | ||
Title string `json:"title"` | ||
Url string `json:"url"` | ||
MediaId string `json:"media_id"` | ||
} | ||
|
||
type Video struct { | ||
MediaId string `json:"media_id"` | ||
} | ||
|
||
type Attachment struct { | ||
Msgtype string `json:"msgtype"` | ||
Image Image `json:"image,omitempty"` | ||
Video Video `json:"video,omitempty"` | ||
Link Link `json:"link,omitempty"` | ||
} | ||
|
||
type RequestAddMomentTask struct { | ||
Text Text `json:"text"` | ||
Attachments []Attachment `json:"attachments"` | ||
VisibleRange *VisibleRange `json:"visible_range"` | ||
} |
26 changes: 26 additions & 0 deletions
26
src/work/externalContact/moment/response/responseAddMomentTask.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package response | ||
|
||
import "github.com/ArtisanCloud/PowerWeChat/v3/src/kernel/response" | ||
|
||
type InvalidSenderList struct { | ||
UserList []string `json:"user_list"` | ||
DepartmentList []int `json:"department_list"` | ||
} | ||
|
||
type InvalidExternalContactList struct { | ||
TagList []string `json:"tag_list"` | ||
} | ||
|
||
type Result struct { | ||
response.ResponseWork | ||
MomentId string `json:"moment_id"` | ||
InvalidSenderList InvalidSenderList `json:"invalid_sender_list"` | ||
InvalidExternalContactList InvalidExternalContactList `json:"invalid_external_contact_list"` | ||
} | ||
|
||
type ResponseAddMomentTask struct { | ||
response.ResponseWork | ||
Status int `json:"status"` | ||
Type string `json:"type"` | ||
Result Result `json:"result"` | ||
} |