ContactService

@Service
class ContactService(contactRepository: ContactRepository, tagRepository: TagRepository)(source)

Constructors

Link copied to clipboard
constructor(contactRepository: ContactRepository, tagRepository: TagRepository)

Functions

Link copied to clipboard
@Transactional
fun createContact(tenantId: String, req: CreateContactRequest): ContactResponse
Link copied to clipboard
@Transactional
fun createTag(tenantId: String, req: CreateTagRequest): TagResponse
Link copied to clipboard
@Transactional
fun deleteContact(tenantId: String, contactId: String)
Link copied to clipboard
fun getContact(tenantId: String, contactId: String): ContactResponse
Link copied to clipboard
@Transactional
fun importContacts(tenantId: String, file: MultipartFile, tagIdToAssign: String?): ImportResult
Link copied to clipboard
fun listContacts(tenantId: String, query: String?, pageable: Pageable): Page<ContactResponse>
Link copied to clipboard
fun listTags(tenantId: String): List<TagResponse>
Link copied to clipboard
@Transactional
fun updateContact(tenantId: String, contactId: String, req: UpdateContactRequest): ContactResponse