mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
add interface
This commit is contained in:
+1
-14
@@ -40,21 +40,8 @@ export class RoomLocalDataSourceService {
|
||||
|
||||
async createRoom(data: RoomOutPutDTO) {
|
||||
|
||||
const roomData = {
|
||||
createdBy: {
|
||||
wxUserId: 0,
|
||||
wxFullName: "",
|
||||
wxeMail: "",
|
||||
userPhoto: ""
|
||||
},
|
||||
roomName: data.data.roomName,
|
||||
id: data.data.id,
|
||||
roomType: 21,
|
||||
expirationDate: '',
|
||||
}
|
||||
|
||||
try {
|
||||
const result = await roomDataSource.room.add(roomData)
|
||||
const result = await roomDataSource.room.add(data.data)
|
||||
return ok(result)
|
||||
} catch (e) {
|
||||
return err(false)
|
||||
|
||||
Reference in New Issue
Block a user