12345678910111213141516171819202122232425262728293031323334353637383940 |
- package controllers
-
- import "sws_xcx/service"
-
- type SysDicApiController struct {
- BaseApiController
- }
-
-
-
-
-
-
- func (c *SysDicApiController) GetIllness() {
- s := service.NewSysDicService()
- dics, err := s.GetDicsByType("ILLNESS")
- if err != nil {
- c.ServeDynamicFailJsonSend(err.Error())
- return
- }
-
- c.ServeSuccessJSON(s.Transform(dics))
- }
-
-
-
-
-
-
- func (c *SysDicApiController) GetRenalStatus() {
- s := service.NewSysDicService()
- dics, err := s.GetDicsByType("RENAL")
- if err != nil {
- c.ServeDynamicFailJsonSend(err.Error())
- return
- }
-
- c.ServeSuccessJSON(s.Transform(dics))
- }
|