Merge remote-tracking branch 'origin/feature/notification' into self-order+notification
# Conflicts: # go.mod # go.sum # internal/app/app.go # internal/router/router.go
This commit is contained in:
@@ -31,6 +31,7 @@ type Config struct {
|
||||
Log Log `mapstructure:"log"`
|
||||
S3Config S3Config `mapstructure:"s3"`
|
||||
Fonnte Fonnte `mapstructure:"fonnte"`
|
||||
FCM FCM `mapstructure:"fcm"`
|
||||
}
|
||||
|
||||
var (
|
||||
@@ -95,3 +96,7 @@ func (c *Config) LogFormat() string {
|
||||
func (c *Config) GetFonnte() *Fonnte {
|
||||
return &c.Fonnte
|
||||
}
|
||||
|
||||
func (c *Config) GetFCM() *FCM {
|
||||
return &c.FCM
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
package config
|
||||
|
||||
type FCM struct {
|
||||
CredentialsFile string `mapstructure:"credentials_file"`
|
||||
ProjectID string `mapstructure:"project_id"`
|
||||
}
|
||||
|
||||
func (f *FCM) GetCredentialsFile() string {
|
||||
return f.CredentialsFile
|
||||
}
|
||||
|
||||
func (f *FCM) GetProjectID() string {
|
||||
return f.ProjectID
|
||||
}
|
||||
Reference in New Issue
Block a user