
import 'package:gmalpha_flutter/Annotations/anno/Get.dart';
import 'package:gmalpha_flutter/Annotations/anno/Query.dart';
import 'package:gmalpha_flutter/Annotations/anno/ServiceCenter.dart';
import 'package:gmalpha_flutter/newMessageModel/service/remote/entity/LatestMessageEntity.dart';
import 'package:gmalpha_flutter/newMessageModel/service/remote/entity/MyMessageEntity.dart';
import 'package:gmalpha_flutter/newMessageModel/service/remote/entity/UnreadMessageEntity.dart';
@ServiceCenter()
abstract class MessageApi{

  @Get("api/v1/message/my")
  MyMessageEntity getMyMessage(@Query('page') int page, @Query('count') int count);

  @Get("api/v1/message/unread")
  UnreadMessageEntity getUnreadMessage(@Query('type') int type);

  @Get('api/v1/push/newest/info')
  LatestMessageEntity getLatestMessage();

}