tvpl.api

<back to all web services

UserPartyGroupRequest

Requires Authentication
Required role:super-admin
The following routes are available for this service:
POST/users/update-PartyGroup
import 'package:servicestack/servicestack.dart';

class UpdateUserResponse implements IResponseRequest, IConvertible
{
    int? updatedId;
    int? code;
    String? message;

    UpdateUserResponse({this.updatedId,this.code,this.message});
    UpdateUserResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        updatedId = json['updatedId'];
        code = json['code'];
        message = json['message'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'updatedId': updatedId,
        'code': code,
        'message': message
    };

    getTypeName() => "UpdateUserResponse";
    TypeContext? context = _ctx;
}

class UserPartyGroupRequest implements IConvertible
{
    int? userId;
    int? partyGroupId;

    UserPartyGroupRequest({this.userId,this.partyGroupId});
    UserPartyGroupRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        userId = json['userId'];
        partyGroupId = json['partyGroupId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'userId': userId,
        'partyGroupId': partyGroupId
    };

    getTypeName() => "UserPartyGroupRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'etc_api.vsmlab.vn', types: <String, TypeInfo> {
    'UpdateUserResponse': TypeInfo(TypeOf.Class, create:() => UpdateUserResponse()),
    'UserPartyGroupRequest': TypeInfo(TypeOf.Class, create:() => UserPartyGroupRequest()),
});

Dart UserPartyGroupRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /users/update-PartyGroup HTTP/1.1 
Host: etc-api.vsmlab.vn 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"userId":0,"partyGroupId":0}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"updatedId":0,"code":0,"message":"String"}