forked from wechaty/wechaty
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Corp Tag in Wechaty #14
Comments
This was referenced Jul 25, 2022
After reading dll doc, we should also have abstract corpTagTagContactList (corpTagGroupId: string, corpTagId: string): Promise<string[]> |
Update: After reading the dll doc, we redesigned tag module and put tag and corp tag together. enum TagType {
Personal = 0,
Corporation = 1,
}
interface TagPayload {
id: string,
name: string,
groupId?: string,
type: TagType
}
interface TagGroupPayload {
id: string,
name: string,
}
export {
type TagPayload,
type TagGroupPayload,
TagType,
} abstract class abstract class CorpTagMixin {
abstract tagContactTagAdd(tagGroupId: string | undefined, tagId: string, contactId: string): Promise<void>
abstract tagContactTagRemove(tagGroupId: string | undefined, tagId: string, contactId: string): Promise<void>
abstract tagGroupAdd(tagGroupName: string): Promise<TagGroupPayload | void>
abstract tagGroupDelete(tagGroupId: string): Promise<void>
abstract tagTagAdd(tagGroupId: string | undefined, tagName: string): Promise<TagPayload | void>
abstract tagTagDelete(tagGroupId: string | undefined, tagId: string): Promise<void>
abstract tagGroupList(): Promise<TagGroupPayload[]>
abstract tagGroupTagList(tagGroupId: string | undefined): Promise<TagPayload[]>
abstract tagTagList(): Promise<TagPayload[]>
abstract tagContactTagList(contactId: string): Promise<TagPayload[]>
abstract tagTagContactList(tagGroupId: string | undefined, tagId: string): Promise<string[]>
} |
This was referenced Jul 27, 2022
Merged
Merged |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In wechaty we already have tags for contact, however some IM (e.g. WeCom) supports tag with groups. We can call that corp tags and implement that in wechaty.
data structure:
method signatures:
wechaty methods:
The text was updated successfully, but these errors were encountered: