Exemplo n.º 1
0
        public ApiResult <IndexResDto> PersonalIndexData(long uid)
        {
            PersonalService service = new PersonalService();

            uid = uid > 0 ? uid : UserInfo.UserId;
            IndexResDto resDto = service.GetPersonalIndexData(uid);

            if (resDto == null)
            {
                return(new ApiResult <IndexResDto>(60000, "登录超时,需要重新登录"));
            }

            return(new ApiResult <IndexResDto>()
            {
                Data = resDto
            });
        }