1234567891011121314151617181920212223242526272829303132 |
- package v1
- import (
- "github.com/gin-gonic/gin"
- )
- import (
- "auth-server/common"
- "auth-server/service"
- )
- func GetPatientType(c *gin.Context) {
- res, err := service.ProtocolService.GetPatientType(common.GC2GM(c), common.IsEnabled(c))
- if err != nil {
- common.HttpErr(c, err)
- return
- }
- common.HttpSuccess(c, res)
- }
- func GetBodyPart(c *gin.Context) {
- res, err := service.ProtocolService.GetBodyPart(common.GC2GM(c),
- common.GetQueryString(c, "patient_type"),
- common.GetQueryString(c, "category"),
- common.IsEnabled(c))
- if err != nil {
- common.HttpErr(c, err)
- return
- }
- common.HttpSuccess(c, res)
- }
|