group

package
v0.0.0-...-d4762d9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteGroupShare_SignatureStr

func DeleteGroupShare_SignatureStr(parent_dna string, updated int,
	account_id, sub_account_id string) (string, *dtcpv1.GroupShareDelete, error)

func DeleteQuitGroupMemberWhitelist_SignatureStr

func DeleteQuitGroupMemberWhitelist_SignatureStr(parent_dna string, updated int,
	account_id, sub_account_id string) (string, *dtcpv1.GroupMemberWhitelistDelete, error)

func DeleteQuitGroupOrKickMemberOut_SignatureStr

func DeleteQuitGroupOrKickMemberOut_SignatureStr(parent_dna string, updated int,
	account_id, sub_account_id string) (string, *dtcpv1.GroupMemberDelete, error)

func GetGroupAvatarRawImage

func GetGroupAvatarRawImage(group_id string) ([]byte, error)

func PostAddGroupMemberWhitelist_SignatureStr

func PostAddGroupMemberWhitelist_SignatureStr(src_id, dest_id, account_id, sub_account_id, sub_account_name string, created int,
	application_status string) (string, *dtcpv1.GroupMemberWhitelistPost, error)

func PostApproveOrDeclineGroupMemberWhitelist_SignatureStr

func PostApproveOrDeclineGroupMemberWhitelist_SignatureStr(parent_dna string, updated int,
	account_id, sub_account_id string, application_status string) (string, *dtcpv1.GroupMemberWhitelistPut, error)

func PostGroup_SignatureStr

func PostGroup_SignatureStr(title, account_id, sub_account_id, sub_account_name, avatar, abstract, language, category string,
	created int, allow_join, allow_post string) (string, *dtcpv1.GroupPost, error)

func PostJoinGroup_SignatureStr

func PostJoinGroup_SignatureStr(src_id, dest_id, account_id, sub_account_id, sub_account_name string, created int,
	application_status string, application_expire int) (string, *dtcpv1.GroupMemberPost, error)

func PostShareToGroup_SignatureStr

func PostShareToGroup_SignatureStr(src_id, dest_id, account_id, sub_account_id, sub_account_name string, hp, created int,
	share_id, application_status string, application_expire int) (string, *dtcpv1.GroupSharePost, error)

func PutApproveOrDeclineShareApplication_SignatureStr

func PutApproveOrDeclineShareApplication_SignatureStr(parent_dna string, updated int, account_id, sub_account_id,
	application_status string) (string, *dtcpv1.GroupShareAppPut, error)

func PutMemberApplication_SignatureStr

func PutMemberApplication_SignatureStr(parent_dna string, updated int, account_id, sub_account_id,
	application_status string) (string, *dtcpv1.GroupMemberApplicationPut, error)

Types

type DelAddGroupMemberWhiteResponse

type DelAddGroupMemberWhiteResponse struct {
	core.Response
	Data *DelAddGroupMemberWhiteResult `json:"data"`
}

func DeleteQuitGroupMemberWhitelist

func DeleteQuitGroupMemberWhitelist(group_id, whitelist_id, signature string,
	preObj *dtcpv1.GroupMemberWhitelistDelete) (*DelAddGroupMemberWhiteResponse, error)

type DelAddGroupMemberWhiteResult

type DelAddGroupMemberWhiteResult struct {
	Dna string `json:"dna"` // Group member whitelist DNA.
}

type DeleteGroupShareResponse

type DeleteGroupShareResponse struct {
	core.Response
	Data *DeleteGroupShareResult `json:"data"`
}

func DeleteGroupShare

func DeleteGroupShare(share_id, signature string, preObj *dtcpv1.GroupShareDelete) (*DeleteGroupShareResponse, error)

type DeleteGroupShareResult

type DeleteGroupShareResult struct {
	Dna string `json:"dna"` // Share DNA.
}

type GetGroupContentResponse

type GetGroupContentResponse struct {
	core.Response
	Data *dtcpv1.ContentGet `json:"data"`
}

func GetGroupAvatarMetadata

func GetGroupAvatarMetadata(group_id string) (*GetGroupContentResponse, error)

type GetGroupMemberWhitelistResponse

type GetGroupMemberWhitelistResponse struct {
	core.Response
	Data []dtcpv1.GroupMemberWhitelistGet `json:"data"`
}

func GetGroupMemberWhitelist

func GetGroupMemberWhitelist(group_id string, page, pageSize int, application_status string) (*GetGroupMemberWhitelistResponse, error)

type GetGroupMembersResponse

type GetGroupMembersResponse struct {
	core.Response
	Data []dtcpv1.GroupMemberGet `json:"data"`
}

func GetGroupMembers

func GetGroupMembers(group_id string, page, pageSize int, application_status string) (*GetGroupMembersResponse, error)

type GetGroupMetadataResponse

type GetGroupMetadataResponse struct {
	core.Response
	Data *dtcpv1.GroupGet `json:"data"`
}

func GetGroupMetadata

func GetGroupMetadata(group_id, account_id string) (*GetGroupMetadataResponse, error)

type GetGroupSharesResponse

type GetGroupSharesResponse struct {
	core.Response
	Data []dtcpv1.Share `json:"data"`
}

func GetGroupShares

func GetGroupShares(group_id string, page, pageSize int, application_status string) (*GetGroupSharesResponse, error)

type MemberApplication

type MemberApplication struct {
	Dna string `json:"dna"` // Group member DNA.
}

type PostAddGroupMemberWhiteResponse

type PostAddGroupMemberWhiteResponse struct {
	core.Response
	Data *PostAddGroupMemberWhiteResult `json:"data"`
}

func PostAddGroupMemberWhitelist

func PostAddGroupMemberWhitelist(signature string, preObj *dtcpv1.GroupMemberWhitelistPost) (*PostAddGroupMemberWhiteResponse, error)

type PostAddGroupMemberWhiteResult

type PostAddGroupMemberWhiteResult struct {
	Id  string `json:"id"`  // Group member whitelist id.
	Dna string `json:"dna"` // Group member whitelist DNA.
}

type PostGroupResponse

type PostGroupResponse struct {
	core.Response
	Data *PostGroupResult `json:"data"`
}

func PostGroup

func PostGroup(signature string, preObj *dtcpv1.GroupPost) (*PostGroupResponse, error)

type PostGroupResult

type PostGroupResult struct {
	Id  string `json:"id"`  // The id of the group.
	Dna string `json:"dna"` // The DNA of the group.
}

type PostJoinGroupResponse

type PostJoinGroupResponse struct {
	core.Response
	Data *PostJoinGroupResult `json:"data"`
}

func PostJoinGroup

func PostJoinGroup(signature string, preObj *dtcpv1.GroupMemberPost) (*PostJoinGroupResponse, error)

type PostJoinGroupResult

type PostJoinGroupResult struct {
	Id  string `json:"id"`  // Group member id.
	Dna string `json:"dna"` // Group member DNA.
}

type PostShareGroupResponse

type PostShareGroupResponse struct {
	core.Response
	Data *PostShareGroupResult `json:"data"`
}

func PostShareToGroup

func PostShareToGroup(signature string, preObj *dtcpv1.GroupSharePost) (*PostShareGroupResponse, error)

type PostShareGroupResult

type PostShareGroupResult struct {
	Id  string `json:"id"`  // Share id.
	Dna string `json:"dna"` // Share DNA.
}

type PutAddGroupMemberWhiteResponse

type PutAddGroupMemberWhiteResponse struct {
	core.Response
	Data *PutAddGroupMemberWhiteResult `json:"data"`
}

func PostApproveOrDeclineGroupMemberWhitelist

func PostApproveOrDeclineGroupMemberWhitelist(group_id, whitelist_id, signature string,
	preObj *dtcpv1.GroupMemberWhitelistPut) (*PutAddGroupMemberWhiteResponse, error)

type PutAddGroupMemberWhiteResult

type PutAddGroupMemberWhiteResult struct {
	Dna string `json:"dna"` // Group member whitelist DNA.
}

type PutMemberApplicationResponse

type PutMemberApplicationResponse struct {
	core.Response
	Data *MemberApplication `json:"data"`
}

func PutMemberApplication

func PutMemberApplication(group_id, group_member_id, signature string,
	preObj *dtcpv1.GroupMemberApplicationPut) (*PutMemberApplicationResponse, error)

type PutShareApplication

type PutShareApplication struct {
	Dna string `json:"dna"` // Group member DNA.
}

type PutShareApplicationResponse

type PutShareApplicationResponse struct {
	core.Response
	Data *PutShareApplication `json:"data"`
}

func PutApproveOrDeclineShareApplication

func PutApproveOrDeclineShareApplication(share_id, signature string, preObj *dtcpv1.GroupShareAppPut) (*PutShareApplicationResponse, error)

type QuitGroupMemberOutResponse

type QuitGroupMemberOutResponse struct {
	core.Response
	Data *QuitGroupMemberOutResult `json:"data"`
}

func DeleteQuitGroupOrKickMemberOut

func DeleteQuitGroupOrKickMemberOut(group_id, group_member_id, signature string,
	preObj *dtcpv1.GroupMemberDelete) (*QuitGroupMemberOutResponse, error)

type QuitGroupMemberOutResult

type QuitGroupMemberOutResult struct {
	Dna string `json:"dna"` // Group member DNA.
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL