Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hilo-common
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujiebin
hilo-common
Commits
d8809d0a
Commit
d8809d0a
authored
May 09, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GemConfig
parent
aa09a770
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
config.go
resource/config/config.go
+13
-0
No files found.
resource/config/config.go
View file @
d8809d0a
...
...
@@ -183,6 +183,10 @@ type BeanConfig struct {
DIAMOND_BEAN_RATE
int
}
type
GemConfig
struct
{
DIAMOND_GEM_RATE
int
}
type
H5Config
struct
{
USER_LEVEL
string
GROUP_SUPPORT
string
...
...
@@ -337,6 +341,7 @@ var onlineData OnlineConfig
var
sessionData
SessionConfig
var
videoData
VideoConfig
var
beanData
BeanConfig
var
gemData
GemConfig
var
h5Data
H5Config
var
groupImData
GroupImConfig
var
gradeData
GradeConfig
...
...
@@ -503,6 +508,10 @@ func GetBeanConfig() BeanConfig {
return
beanData
}
func
GetGemConfig
()
GemConfig
{
return
gemData
}
func
GetH5Config
()
H5Config
{
return
h5Data
}
...
...
@@ -692,6 +701,10 @@ func init() {
mylogrus
.
MyLog
.
Fatal
(
err
)
}
if
err
:=
conf
.
Section
(
"GEM"
)
.
MapTo
(
&
gemData
);
err
!=
nil
{
mylogrus
.
MyLog
.
Fatal
(
err
)
}
if
err
:=
conf
.
Section
(
"H5"
)
.
MapTo
(
&
h5Data
);
err
!=
nil
{
mylogrus
.
MyLog
.
Fatal
(
err
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment