added model
This commit is contained in:
8
modules/commons/model/PageParams.go
Normal file
8
modules/commons/model/PageParams.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package model
|
||||
|
||||
type PageParams struct {
|
||||
PageNo int `json:"pageNo,omitempty"`
|
||||
CountPerPage int `json:"countPerPage,omitempty"`
|
||||
SortCol string `json:"sortCol,omitempty"`
|
||||
SortDirection string `json:"sortDirection,omitempty"`
|
||||
}
|
||||
12
modules/commons/model/PublishMessage.go
Normal file
12
modules/commons/model/PublishMessage.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package model
|
||||
|
||||
type PublishMessage struct {
|
||||
Targets []string `json:"targets,omitempty"`
|
||||
Message *PublishMessageBody `json:"message,omitempty"`
|
||||
}
|
||||
|
||||
|
||||
type PublishMessageBody struct {
|
||||
Method string `json:"method,omitempty"`
|
||||
Params []string `json:"params,omitempty"`
|
||||
}
|
||||
6
modules/commons/model/SessionMetadata.go
Normal file
6
modules/commons/model/SessionMetadata.go
Normal file
@@ -0,0 +1,6 @@
|
||||
package model
|
||||
|
||||
type SessionMetadata struct {
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user