package document

import (
	"fmt"
)

func (dc *docCli) GenerateURLFromDocumentID(documentId string, isWiki bool) string {
	typ := "docx"
	if isWiki {
		typ = "wiki"
	}

	return fmt.Sprintf("https://%s/%s/%s", dc.larkBaseURL, typ, documentId)
}
