import { Parameters, Result } from './UpdateDeclare';
import { ServiceClient } from 'cn.keytop.stc.midend.ms.client';


const client = new ServiceClient()
const method = 'POST'
const enctype = 'application/json'

/**
* 更新用户记录 
* method:POST
* enctype:application/json
* pid:stc.ms.UserAdmin
* sid:stc.ms.UserAdminupdate
* version:1.2
* @param parameters
*/
export async function update(parameters: Parameters): Promise<Result> {
    const headers = {
        'pid': 'stc.ms.UserAdmin',
        'sid': 'stc.ms.UserAdminupdate',
        'uri': 'user/update',
        'version': '1.2'
    }
    return await client.request(method, enctype, headers, parameters)
}
