-
Notifications
You must be signed in to change notification settings - Fork 0
/
response.go
35 lines (31 loc) · 992 Bytes
/
response.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*******************************************************************/
/*
/* Blog project
/*
/* Copyright (C) 2019 Sergey Denisov.
/*
/* Written by Sergey Denisov aka LittleBuster (DenisovS21@gmail.com)
/* Github: https://github.com/LittleBuster
/* https://github.com/futcamp
/*
/* This library is free software; you can redistribute it and/or
/* modify it under the terms of the GNU General Public Licence 3
/* as published by the Free Software Foundation; either version 3
/* of the Licence, or (at your option) any later version.
/*
/*******************************************************************/
package server
type IndexResponse struct {
Service string `json:"service"`
Result bool `json:"result"`
}
type ErrorResponse struct {
Service string `json:"service"`
Result bool `json:"result"`
Reason string `json:"reason"`
}
type DataResponse struct {
Service string `json:"service"`
Data interface{} `json:"data"`
Result bool `json:"result"`
}