85 lines
2.9 KiB
Go
85 lines
2.9 KiB
Go
package models
|
|
|
|
// Utils model
|
|
type Utils struct {
|
|
AppVersion string `json:"app_version"`
|
|
}
|
|
|
|
type Apptypes struct {
|
|
Apptypeid int `json:"apptypeid"`
|
|
Typename string `json:"typename"`
|
|
Mapid int `json:"mapid"`
|
|
Tag string `json:"tag"`
|
|
Status string `json:"status"`
|
|
}
|
|
|
|
type FcmNotification struct {
|
|
Title string `json:"title"`
|
|
Body string `json:"body"`
|
|
}
|
|
|
|
type Appsubcategories struct {
|
|
Subcategoryid int `json:"subcategoryid"`
|
|
Categoryid int `json:"categoryid"`
|
|
Subcategoryname string `json:"subcategoryname"`
|
|
Categoryname string `json:"catgeoryname"`
|
|
Moduleid int `json:"moduleid"`
|
|
Status string `json:"status"`
|
|
}
|
|
|
|
type Applocations struct {
|
|
Applocationid int `json:"applocationid" gorm:"Primary_Key"`
|
|
Locationname string `json:"locationname"`
|
|
Image string `json:"image"`
|
|
City string `json:"city"`
|
|
State string `json:"state"`
|
|
Postcode string `json:"postcode"`
|
|
Latitude string `json:"latitude"`
|
|
Longitude string `json:"longitude"`
|
|
Opentime string `json:"opentime"`
|
|
Closetime string `json:"closetime"`
|
|
Radius int `json:"radius"`
|
|
Applocationadmins []Applocationadmins `json:"applocationadmins" gorm:"ForeignKey:applocationid"`
|
|
}
|
|
|
|
type Applocationadmins struct {
|
|
Applocationconfigid int `json:"applocationconfigid" gorm:"Primary_Key"`
|
|
Applocationid int `json:"applocationid"`
|
|
Userid int `json:"userid"`
|
|
Userfcmtoken string `json:"userfcmtokem"`
|
|
Notify string `json:"notify"`
|
|
}
|
|
|
|
type Appconfig struct {
|
|
Configid int `json:"configid"`
|
|
Appname string `json:"appname"`
|
|
Paymentdevkey string `json:"paymentdevkey"`
|
|
Paymentlivekey string `json:"paymentlivekey"`
|
|
Fcmkey string `json:"fcmkey"`
|
|
Googleapikey string `json:"googleapikey"`
|
|
Applocationradius int `json:"applocationradius"`
|
|
Smsproviderid int `json:"smsproviderid"`
|
|
Providerapi string `json:"providerapi"`
|
|
Providerkey string `json:"providerkey"`
|
|
Sender string `json:"sender"`
|
|
Templateid string `json:"templateid"`
|
|
Defaultprovider int `json:"defaultprovider"`
|
|
Created string `json:"created"`
|
|
Updated string `json:"updated"`
|
|
}
|
|
|
|
type AppCategory struct {
|
|
Categoryid int `json:"categoryid" gorm:"Primary_Key"`
|
|
Categoryname string `json:"categoryname"`
|
|
Categorytype int `json:"categorytype"`
|
|
Sortorder int `json:"sortorder"`
|
|
Imageurl string `json:"imageurl"`
|
|
Iconurl string `json:"iconurl"`
|
|
Profileurl string `json:"profileurl"`
|
|
Crossaxis int `json:"crossaxis"`
|
|
Mainaxis int `json:"mainaxis"`
|
|
Status string `json:"status"`
|
|
Created string `json:"created"`
|
|
Updated string `json:"updated"`
|
|
}
|