Khởi tạo ban đầu
This commit is contained in:
11
utils/tranform.ts
Normal file
11
utils/tranform.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
export function transformEntityResponse(
|
||||
raw: Model.EntityResponse
|
||||
): Model.TransformedEntity {
|
||||
return {
|
||||
id: raw.id,
|
||||
value: raw.v,
|
||||
valueString: raw.vs,
|
||||
time: raw.t,
|
||||
type: raw.type,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user