12345678910111213141516171819202122232425262728293031323334353637383940 |
- package routers
- import (
- "eta_gn/eta_bridge/controller/gn"
- "github.com/gin-gonic/gin"
- )
- // InitGn 国能接口
- func InitGn(r *gin.RouterGroup) {
- control := new(gn.GuoNengController)
- group := r.Group("gn/")
- group.GET("auth/getToken", control.GetToken)
- group.GET("auth/getUserInfo", control.GetUserInfo)
- //group.GET("user/sync", control.SyncUser)
- // 4A身份供应接口
- init4A(r)
- // OA接口
- initOA(r)
- }
- func init4A(r *gin.RouterGroup) {
- control := new(gn.GuoNengController)
- group := r.Group("gn/")
- group.POST("user/add4AUser", control.AddAccount)
- group.POST("user/modify4AUser", control.ModifyAccount)
- group.POST("user/delete4AUser", control.DeleteAccount)
- group.POST("user/suspend4AUser", control.SuspendAccount)
- group.POST("user/restore4AUser", control.RestoreAccount)
- group.POST("user/ChangePassword", control.ChangePassword)
- group.POST("user/syncMdmComstru", control.SyncMdmOrganization)
- group.POST("user/syncMdmEmployee", control.SyncMdmEmployee)
- }
- func initOA(r *gin.RouterGroup) {
- control := new(gn.GuoNengController)
- group := r.Group("gn/")
- group.POST("oa", control.OA)
- }
|