/
types.go
59 lines (51 loc) · 1.77 KB
/
types.go
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// @Author: abbeymart | Abi Akindele | @Created: 2020-12-23 | @Updated: 2020-12-23
// @Company: mConnect.biz | @License: MIT
// @Description: shared types
package mctypes
import "time"
type BaseModelType struct {
Id string `json:"id"`
Language string `json:"language"`
Desc string `json:"desc"`
AppId string `json:"appId"` // application-id in a multi-hosted apps environment (e.g. cloud-env)
IsActive bool `json:"isActive"` // => activate by modelOptionsType settings...
CreatedBy string `json:"createdBy"`
CreatedAt time.Time `json:"createdAt"`
UpdatedBy string `json:"updatedBy"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt time.Time `json:"deletedAt"`
}
type AuditStampType struct {
IsActive bool `json:"isActive"` // => activate by modelOptionsType settings...
CreatedBy string `json:"createdBy"`
CreatedAt time.Time `json:"createdAt"`
UpdatedBy string `json:"updatedBy"`
UpdatedAt time.Time `json:"updatedAt"`
}
type AppParamsType struct {
AppId string `json:"appId"`
AccessKey string `json:"accessKey"`
AppName string `json:"appName"`
}
type AppType struct {
BaseModelType
AppName string `json:"appName"`
AccessKey string `json:"accessKey"`
AppCategory string `json:"appCategory"`
OwnerId string `json:"ownerId"`
}
type UserInfoType struct {
UserId string `json:"userId" form:"userId"`
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
Language string `json:"language"`
LoginName string `json:"loginName" form:"loginName"`
Token string `json:"token"`
Expire int64 `json:"expire"`
Email string `json:"email" form:"email"`
Group string `json:"group"`
}
type ValueType struct {
Value interface{} `json:"value"`
Type string `json:"type"`
}