role_handler.go 542 B

123456789101112131415161718192021222324
  1. // Package handler 角色管理
  2. package handler
  3. import (
  4. "context"
  5. "dashoo.cn/common_definition/comm_def"
  6. "fmt"
  7. )
  8. type RoleHandler struct{}
  9. // GetRoleList 获取角色名称列表(id、name)
  10. func (o *RoleHandler) GetRoleList(ctx context.Context, param interface{}, rsp *comm_def.CommonMsg) error {
  11. rsp.Code = 200
  12. rsp.Data = "111111111"
  13. rsp.Msg = "success"
  14. return nil
  15. }
  16. func (o *RoleHandler) UpdateRole(ctx context.Context, param interface{}, rsp *comm_def.CommonMsg) error {
  17. fmt.Println("param")
  18. fmt.Println(param)
  19. return nil
  20. }