| Required role: | super-admin |
| 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 .xml suffix or ?format=xml
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: application/xml
Content-Type: application/xml
Content-Length: length
<UserPartyGroupRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/tvpl.api.ServiceModel">
<PartyGroupId>0</PartyGroupId>
<UserId>0</UserId>
</UserPartyGroupRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <UpdateUserResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/tvpl.api.ServiceModel"> <Code>0</Code> <Message>String</Message> <UpdatedId>0</UpdatedId> </UpdateUserResponse>