| 123456789101112131415161718192021222324 |
- // Package handler 角色管理
- package handler
- import (
- "context"
- "dashoo.cn/common_definition/comm_def"
- "fmt"
- )
- type RoleHandler struct{}
- // GetRoleList 获取角色名称列表(id、name)
- func (o *RoleHandler) GetRoleList(ctx context.Context, param interface{}, rsp *comm_def.CommonMsg) error {
- rsp.Code = 200
- rsp.Data = "111111111"
- rsp.Msg = "success"
- return nil
- }
- func (o *RoleHandler) UpdateRole(ctx context.Context, param interface{}, rsp *comm_def.CommonMsg) error {
- fmt.Println("param")
- fmt.Println(param)
- return nil
- }
|