Skip to content

Commit ebc9bc2

Browse files
author
Amit
committed
Added response domain model
1 parent 4e92940 commit ebc9bc2

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

Readme.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ func main() {
3636
}
3737
```
3838

39+
### Models/Domains
40+
41+
```go
42+
1. DmlModel // import from mongodb_domain.DmlModel
43+
2. ResponseModel // import from mongodb_domain.ResponseModel
44+
```
45+
3946
### Get database by name
4047

4148
```go

mongodb_domain/response.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package mongodb_domain
2+
3+
type ResponseModel struct {
4+
Error bool `json:"error" bson:"error"`
5+
Message string `json:"message" bson:"message"`
6+
Code int `json:"code" bson:"code"`
7+
Data any `json:"data" bson:"data"`
8+
}

0 commit comments

Comments
 (0)