Skip to content

Commit

Permalink
hot fix struct (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
tommitoan authored Jul 21, 2024
1 parent a85b6e0 commit f7dbfa0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions get_bazi_chart.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ func GetBaziChart(dateTime time.Time, loc *time.Location, gender int, prefixPath
return nil, err
}
baziChart.FourPillar = fourPillar
baziChart.PersonalInfo.LuckPassed = passed
baziChart.PersonalInfo.LuckRemaining = remaining

lucksPillar, err := luckpillars.GetLuckPillars(fourPillar, gender, passed, remaining, dateTime, path)
if err != nil {
Expand Down
6 changes: 2 additions & 4 deletions model/model_bazi-chart.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ type BaziChart struct {
}

type PersonalInfo struct {
Name string `json:"name"`
Gender int `json:"gender"`
LuckPassed int `json:"luck_passed"`
LuckRemaining int `json:"luck_remaining"`
Name string `json:"name"`
Gender int `json:"gender"`
}

type FourPillars struct {
Expand Down

0 comments on commit f7dbfa0

Please sign in to comment.