-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChatService.java
More file actions
45 lines (33 loc) · 963 Bytes
/
ChatService.java
File metadata and controls
45 lines (33 loc) · 963 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package com.example.account.service;
import java.util.List;
import java.util.Optional;
import com.example.account.models.Chat;
import com.example.account.repository.ChatRepository;
import com.example.account.repository.UserRepository;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
;
@Service
public class ChatService implements IChatService{
@Autowired
ChatRepository chatRepository;
@Override
public Chat addChat(Chat c) {
chatRepository.save(c);
return c;
}
@Override
public void deleteChat(Long id) {
// TODO Auto-generated method stub
}
@Override
public Chat updateChat(Chat c) {
// TODO Auto-generated method stub
return null;
}
@Override
public Chat retrieveChat(Long id) {
// TODO Auto-generated method stub
return null;
}
}